You need to use the "system" application. Probably this is what you need:<br><br> command_args = "record_post_process_exec_app=system /usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav";<div>
<br>-MC<br></div><br><br><div class="gmail_quote">On Wed, Mar 7, 2012 at 3:28 PM, <span dir="ltr"><<a href="mailto:victor.velo@videotron.ca">victor.velo@videotron.ca</a>></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 "Invalid application ..."<br>Do I have to build a module to use as a post recording app?<br><br>Thanks,<br><br>----- Original Message -----<br>
From: <<a href="mailto:victor.velo@videotron.ca" target="_blank">victor.velo@videotron.ca</a>><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">> </font>Hello,<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>I'm trying to activate a post recording program from an ESL script using the "record_post_process_exec_app" channel variable.<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>Like this:<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font> command_args = "record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav";<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font> myconn.execute("set", 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">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </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">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>Afterward I start the recording...<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font> command_args = "api uuid_record "+legA_uuid+" start /usr/local/freeswitch/temp-recording/victor8.wav";<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </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">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>My understanding is that the "record_post_process_exec_app" 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">> </font>Do I miss something?<br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>--------------------<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </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">> </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">> </font><br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font>Thanks in advance,<br>
<font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </font><br><font style="font-style:normal;font-weight:normal;background-color:rgb(245,248,240);font-size:14px">> </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>