You need to use the &quot;system&quot; application. Probably this is what you need:<br><br> command_args = &quot;record_post_process_exec_app=system /usr/local/freeswitch/bin/post_recording  /usr/local/freeswitch/temp_recording/victor8.wav&quot;;<div>
<br>-MC<br></div><br><br><div class="gmail_quote">On Wed, Mar 7, 2012 at 3:28 PM,  <span dir="ltr">&lt;<a href="mailto:victor.velo@videotron.ca">victor.velo@videotron.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br><br>I get the latest code, and now I have an  error message &quot;Invalid application ...&quot;<br>Do I have to build a module to use as a post recording app?<br><br>Thanks,<br><br>----- Original Message -----<br>
From: &lt;<a href="mailto:victor.velo@videotron.ca" target="_blank">victor.velo@videotron.ca</a>&gt;<br>Date: Tuesday, March 6, 2012 3:24 pm<br>Subject: post recording<br>To: <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank">freeswitch-dev@lists.freeswitch.org</a><br>
<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Hello,<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>I&#39;m trying to activate a post recording program from an ESL script using the &quot;record_post_process_exec_app&quot; channel variable.<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Like this:<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>    command_args = &quot;record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording  /usr/local/freeswitch/temp_recording/victor8.wav&quot;;<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>            myconn.execute(&quot;set&quot;, command_args.c_str(), legA_uuid.c_str());<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>and then wait for the execution to complete... etc.<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Afterward I start the recording...<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>    command_args = &quot;api uuid_record &quot;+legA_uuid+&quot; start /usr/local/freeswitch/temp-recording/victor8.wav&quot;;<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>            current_event = myconn.sendRecv(command_args.c_str());<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>My understanding is that the &quot;record_post_process_exec_app&quot; will be started (automatically) when the recording ends.This is but not happen..., <br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Do I miss something?<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>--------------------<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Another question is about the possibility to record legA in mono 8bit (mixed) like LegB recording. <br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>How could I overwrite this setting?<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Thanks in advance,<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">&gt; </font>Victor<br>
 
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>