<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][14591] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14591">14591</a></dd>
<dt>Author</dt> <dd>anthm</dd>
<dt>Date</dt> <dd>2009-08-21 17:29:44 -0500 (Fri, 21 Aug 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>add record_start and record_stop events</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunklibseslphpesl_wrapcpp">freeswitch/trunk/libs/esl/php/esl_wrap.cpp</a></li>
<li><a href="#freeswitchtrunklibseslrubyesl_wrapcpp">freeswitch/trunk/libs/esl/ruby/esl_wrap.cpp</a></li>
<li><a href="#freeswitchtrunklibseslsrcesl_eventc">freeswitch/trunk/libs/esl/src/esl_event.c</a></li>
<li><a href="#freeswitchtrunklibseslsrcincludeesl_eventh">freeswitch/trunk/libs/esl/src/include/esl_event.h</a></li>
<li><a href="#freeswitchtrunksrcincludeswitch_typesh">freeswitch/trunk/src/include/switch_types.h</a></li>
<li><a href="#freeswitchtrunksrcswitch_channelc">freeswitch/trunk/src/switch_channel.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_eventc">freeswitch/trunk/src/switch_event.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_ivr_asyncc">freeswitch/trunk/src/switch_ivr_async.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_ivr_play_sayc">freeswitch/trunk/src/switch_ivr_play_say.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunklibseslphpesl_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/libs/esl/php/esl_wrap.cpp (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/libs/esl/php/esl_wrap.cpp        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/libs/esl/php/esl_wrap.cpp        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -1091,7 +1091,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1159,7 +1159,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</ins><span class="cx">   convert_to_long_ex(args[1]);
</span><span class="cx">   arg2 = (int) Z_LVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1213,13 +1213,13 @@
</span><span class="cx">   WRONG_PARAM_COUNT;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[0]);
</span><span class="cx">   arg1 = (char *) Z_STRVAL_PP(args[0]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   if(arg_count &gt; 1) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[1]);
</span><span class="cx">     arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -1254,7 +1254,7 @@
</span><span class="cx">     }
</span><span class="cx">   }
</span><span class="cx">   if(arg_count &gt; 1) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</ins><span class="cx">     convert_to_long_ex(args[1]);
</span><span class="cx">     arg2 = (int) Z_LVAL_PP(args[1]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -1384,7 +1384,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   if(arg_count &gt; 1) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[1]);
</span><span class="cx">     arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -1460,7 +1460,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1557,7 +1557,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1591,13 +1591,13 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[2]);
</span><span class="cx">   arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1630,7 +1630,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1718,19 +1718,19 @@
</span><span class="cx">   }
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[0]);
</span><span class="cx">   arg1 = (char *) Z_STRVAL_PP(args[0]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[2]);
</span><span class="cx">   arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1756,7 +1756,7 @@
</span><span class="cx">   }
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</ins><span class="cx">   convert_to_long_ex(args[0]);
</span><span class="cx">   arg1 = (int) Z_LVAL_PP(args[0]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1917,7 +1917,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1950,7 +1950,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -1986,13 +1986,13 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   if(arg_count &gt; 2) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[2]);
</span><span class="cx">     arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -2029,13 +2029,13 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   if(arg_count &gt; 2) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[2]);
</span><span class="cx">     arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -2127,7 +2127,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</ins><span class="cx">   convert_to_long_ex(args[1]);
</span><span class="cx">   arg2 = (int) Z_LVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -2161,13 +2161,13 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[2]);
</span><span class="cx">   arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -2201,13 +2201,13 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[2]);
</span><span class="cx">   arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -2244,20 +2244,20 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   if(arg_count &gt; 2) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[2]);
</span><span class="cx">     arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="cx">     
</span><span class="cx">   }
</span><span class="cx">   if(arg_count &gt; 3) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[3]);
</span><span class="cx">     arg4 = (char *) Z_STRVAL_PP(args[3]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -2295,20 +2295,20 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="cx">   
</span><span class="cx">   if(arg_count &gt; 2) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[2]);
</span><span class="cx">     arg3 = (char *) Z_STRVAL_PP(args[2]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="cx">     
</span><span class="cx">   }
</span><span class="cx">   if(arg_count &gt; 3) {
</span><del>-    /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+    /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">     convert_to_string_ex(args[3]);
</span><span class="cx">     arg4 = (char *) Z_STRVAL_PP(args[3]);
</span><span class="cx">     /*@SWIG@*/;
</span><span class="lines">@@ -2342,7 +2342,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -2375,7 +2375,7 @@
</span><span class="cx">   }
</span><span class="cx">   if(!arg1) SWIG_PHP_Error(E_ERROR, &quot;this pointer is NULL&quot;);
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,26,CONVERT_STRING_IN@*/
</ins><span class="cx">   convert_to_string_ex(args[1]);
</span><span class="cx">   arg2 = (char *) Z_STRVAL_PP(args[1]);
</span><span class="cx">   /*@SWIG@*/;
</span><span class="lines">@@ -2426,7 +2426,7 @@
</span><span class="cx">   }
</span><span class="cx">   
</span><span class="cx">   
</span><del>-  /*@SWIG:/usr/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</del><ins>+  /*@SWIG:/usr/local/share/swig/1.3.35/php4/utils.i,7,CONVERT_INT_IN@*/
</ins><span class="cx">   convert_to_long_ex(args[0]);
</span><span class="cx">   arg1 = (int) Z_LVAL_PP(args[0]);
</span><span class="cx">   /*@SWIG@*/;
</span></span></pre></div>
<a id="freeswitchtrunklibseslrubyesl_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/libs/esl/ruby/esl_wrap.cpp (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/libs/esl/ruby/esl_wrap.cpp        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/libs/esl/ruby/esl_wrap.cpp        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -1902,7 +1902,7 @@
</span><span class="cx"> } 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-/*@SWIG:/usr/share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
</del><ins>+/*@SWIG:/usr/local/share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
</ins><span class="cx"> SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
</span><span class="cx"> {
</span><span class="cx">   VALUE obj = args[0];
</span></span></pre></div>
<a id="freeswitchtrunklibseslsrcesl_eventc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/libs/esl/src/esl_event.c (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/libs/esl/src/esl_event.c        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/libs/esl/src/esl_event.c        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -126,6 +126,8 @@
</span><span class="cx">         &quot;RECV_INFO&quot;,
</span><span class="cx">         &quot;CALL_SECURE&quot;,
</span><span class="cx">         &quot;NAT&quot;,
</span><ins>+        &quot;RECORD_START&quot;,
+        &quot;RECORD_STOP&quot;,
</ins><span class="cx">         &quot;ALL&quot;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunklibseslsrcincludeesl_eventh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/libs/esl/src/include/esl_event.h (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/libs/esl/src/include/esl_event.h        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/libs/esl/src/include/esl_event.h        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -114,6 +114,8 @@
</span><span class="cx">         ESL_EVENT_RECV_INFO,
</span><span class="cx">         ESL_EVENT_CALL_SECURE,
</span><span class="cx">         ESL_EVENT_NAT,
</span><ins>+        ESL_EVENT_RECORD_START,
+        ESL_EVENT_RECORD_STOP,
</ins><span class="cx">         ESL_EVENT_ALL
</span><span class="cx"> } esl_event_types_t;
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunksrcincludeswitch_typesh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/include/switch_types.h (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/include/switch_types.h        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/src/include/switch_types.h        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -1280,6 +1280,8 @@
</span><span class="cx">         SWITCH_EVENT_RECV_INFO,
</span><span class="cx">         SWITCH_EVENT_CALL_SECURE,
</span><span class="cx">         SWITCH_EVENT_NAT,
</span><ins>+        SWITCH_EVENT_RECORD_START,
+        SWITCH_EVENT_RECORD_STOP,
</ins><span class="cx">         SWITCH_EVENT_ALL
</span><span class="cx"> } switch_event_types_t;
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_channelc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_channel.c (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_channel.c        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/src/switch_channel.c        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -1365,6 +1365,8 @@
</span><span class="cx">                 event-&gt;event_id == SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE ||
</span><span class="cx">                 event-&gt;event_id == SWITCH_EVENT_SESSION_HEARTBEAT ||
</span><span class="cx">                 event-&gt;event_id == SWITCH_EVENT_API ||
</span><ins>+                event-&gt;event_id == SWITCH_EVENT_RECORD_START ||
+                event-&gt;event_id == SWITCH_EVENT_RECORD_STOP ||
</ins><span class="cx">                 event-&gt;event_id == SWITCH_EVENT_CUSTOM
</span><span class="cx">                 ) {
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_eventc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_event.c (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_event.c        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/src/switch_event.c        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -180,6 +180,8 @@
</span><span class="cx">         &quot;RECV_INFO&quot;,
</span><span class="cx">         &quot;CALL_SECURE&quot;,
</span><span class="cx">         &quot;NAT&quot;,
</span><ins>+        &quot;RECORD_START&quot;,
+        &quot;RECORD_STOP&quot;,
</ins><span class="cx">         &quot;ALL&quot;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_ivr_asyncc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_ivr_async.c (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_ivr_async.c        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/src/switch_ivr_async.c        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -432,9 +432,16 @@
</span><span class="cx">         switch_core_session_t *session = switch_core_media_bug_get_session(bug);
</span><span class="cx">         switch_channel_t *channel = switch_core_session_get_channel(session);
</span><span class="cx">         struct record_helper *rh = (struct record_helper *) user_data;
</span><ins>+        switch_event_t *event;
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx">         switch (type) {
</span><span class="cx">         case SWITCH_ABC_TYPE_INIT:
</span><ins>+                if (switch_event_create(&amp;event, SWITCH_EVENT_RECORD_START) == SWITCH_STATUS_SUCCESS) {
+                        switch_channel_event_set_data(channel, event);
+                        switch_event_fire(&amp;event);
+                }
+
</ins><span class="cx">                 break;
</span><span class="cx">         case SWITCH_ABC_TYPE_CLOSE:
</span><span class="cx">                 {
</span><span class="lines">@@ -444,6 +451,11 @@
</span><span class="cx">                         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, &quot;Stop recording file %s\n&quot;, rh-&gt;file);
</span><span class="cx">                         switch_channel_set_private(channel, rh-&gt;file, NULL);
</span><span class="cx">                         
</span><ins>+                        if (switch_event_create(&amp;event, SWITCH_EVENT_RECORD_STOP) == SWITCH_STATUS_SUCCESS) {
+                                switch_channel_event_set_data(channel, event);
+                                switch_event_fire(&amp;event);
+                        }
+
</ins><span class="cx">                         if (rh-&gt;fh) {
</span><span class="cx">                                 if (switch_channel_test_flag(channel, CF_ANSWERED) || !switch_core_media_bug_test_flag(bug, SMBF_RECORD_ANSWER_REQ)) {
</span><span class="cx">                                         switch_size_t len;
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_ivr_play_sayc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_ivr_play_say.c (14590 => 14591)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_ivr_play_say.c        2009-08-21 22:20:31 UTC (rev 14590)
+++ freeswitch/trunk/src/switch_ivr_play_say.c        2009-08-21 22:29:44 UTC (rev 14591)
</span><span class="lines">@@ -393,8 +393,8 @@
</span><span class="cx">     switch_codec_implementation_t read_impl = {0};
</span><span class="cx">         switch_frame_t write_frame = { 0 };
</span><span class="cx">         unsigned char write_buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = { 0 };
</span><ins>+        switch_event_t *event;
</ins><span class="cx"> 
</span><del>-
</del><span class="cx">     switch_core_session_get_read_impl(session, &amp;read_impl);
</span><span class="cx"> 
</span><span class="cx">         if (!switch_channel_ready(channel)) {
</span><span class="lines">@@ -575,6 +575,12 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+
+        if (switch_event_create(&amp;event, SWITCH_EVENT_RECORD_START) == SWITCH_STATUS_SUCCESS) {
+                switch_channel_event_set_data(channel, event);
+                switch_event_fire(&amp;event);
+        }
+
</ins><span class="cx">         for (;;) {
</span><span class="cx">                 switch_size_t len;
</span><span class="cx"> 
</span><span class="lines">@@ -685,6 +691,11 @@
</span><span class="cx"> 
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        if (switch_event_create(&amp;event, SWITCH_EVENT_RECORD_STOP) == SWITCH_STATUS_SUCCESS) {
+                switch_channel_event_set_data(channel, event);
+                switch_event_fire(&amp;event);
+        }
+
</ins><span class="cx">         if (waste_resources) {
</span><span class="cx">                 switch_core_codec_destroy(&amp;write_codec);
</span><span class="cx">         }
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>