<div dir="ltr"><div><div><div>Hi,<br><br></div>You have loops=-1 what infinitely loops you tone, that why you need to press a button to terminate it:<br><br>&quot;Adds a repeating (loop) 800Hz tone with a duration of 100ms and a 15 second intervening silence to a session:&quot;<br><br></div>Check this link for more details:<br><br><a href="https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream</a><br><br></div>With kind regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 3, 2016 at 7:15 AM, Don Hawkins <span dir="ltr">&lt;<a href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Using httapi, the code below plays the beep BUT will not begin the recording until I press the terminator key, * in this case. How can I make it start recording right away and have * terminate the recording?<div><br></div><div><div>&lt;document type=&quot;text/freeswitch-httapi&quot;&gt;</div><div>&lt;work&gt;</div><div>&lt;speak name=&quot;speak&quot; loop=&quot;1&quot; engine=&quot;flite&quot; voice=&quot;kal&quot; text=&quot;Please leave a message after the beep.&quot; language=&quot;en&quot;&gt;&lt;/speak&gt;</div><div>&lt;execute application=&quot;playback&quot; data=&quot;tone_stream://%(100,15000,800);loops=-1&quot;/&gt;</div><div>&lt;execute action=&quot;redacted&quot;</div><div>application=&quot;record&quot;</div><div>data=&quot;/usr/share/freeswitch/htdocs/recordings/z0jnu8h6-898958.wav 25 20&quot;</div><div>data=&quot;RECORD_STEREO=true&quot;</div><div>data=&quot;playback_terminators=*&quot;&gt;</div><div>&lt;/execute&gt;</div><div>&lt;/work&gt;</div><div>&lt;/document&gt;</div></div><div><br></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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>