What are you using to do the recording of the audio? The record app has built-in silence detection. If you are using record_session then I can see your dilemma. It&#39;s almost as if you&#39;d need &quot;execute_on_silence&quot; as opposed to wait_for_silence.<div>
<br>Anyone out there have any suggestions for Hector on how to do this?</div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 11:31 AM, Hector Geraldino <span dir="ltr">&lt;<a href="mailto:Hector.Geraldino@ip-soft.net">Hector.Geraldino@ip-soft.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to use the wait_for_silence application to stop recording audio from a channel, and I need to use it not from a FS dialplan but from an ESL application. <u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">So far I can execute the wait_for_silence application using ‘execute wait_for_silence <i>arguments</i>’ with no issues. I can even see the result of the execution of this command on the fs_cli console:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:.5in"><a href="tel:2012-01-05%2019" value="+12012010519" target="_blank">2012-01-05 19</a>:04:40.266001 [DEBUG] switch_ivr.c:576 sofia/internal/<a href="mailto:5512@192.168.8.11" target="_blank">5512@192.168.8.11</a> Command Execute wait_for_silence(200 15 15 5000)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">EXECUTE sofia/internal/<a href="mailto:5512@192.168.8.11" target="_blank">5512@192.168.8.11</a> wait_for_silence(200 15 15 5000)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The problem is that I don’t know if this is working or not, as it is not raising any event that can be received by the application. I don’t see any event related to this application (or to detect silence using any other mechanism) on the wiki Events List page [<a href="http://wiki.freeswitch.org/wiki/Event_list" target="_blank">http://wiki.freeswitch.org/wiki/Event_list</a>], so I’m not sure it is usable in an socket outbound mode. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Resuming: is it possible to detect the silence on a channel and then perform an action in an ESL application, using wait_for_silence app or any other mechanism? <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Hector<u></u><u></u></p></div></div><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-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>