<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>"Adds a repeating (loop) 800Hz tone with a duration of 100ms and a 15 second intervening silence to a session:"<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"><<a href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>></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><document type="text/freeswitch-httapi"></div><div><work></div><div><speak name="speak" loop="1" engine="flite" voice="kal" text="Please leave a message after the beep." language="en"></speak></div><div><execute application="playback" data="tone_stream://%(100,15000,800);loops=-1"/></div><div><execute action="redacted"</div><div>application="record"</div><div>data="/usr/share/freeswitch/htdocs/recordings/z0jnu8h6-898958.wav 25 20"</div><div>data="RECORD_STEREO=true"</div><div>data="playback_terminators=*"></div><div></execute></div><div></work></div><div></document></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>