With kind regards,Check this link for more details:Hi,You have loops=-1 what infinitely loops you tone, that why you need to press a button to terminate it:
"Adds a repeating (loop) 800Hz tone with a duration of 100ms and a 15 second intervening silence to a session:"
https://freeswitch.org/confluence/display/FREESWITCH/Tone_streamJurijsOn Wed, Aug 3, 2016 at 7:15 AM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:_________________________________________________________________________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?<document type="text/freeswitch-httapi"><work><speak name="speak" loop="1" engine="flite" voice="kal" text="Please leave a message after the beep." language="en"></speak><execute application="playback" data="tone_stream://%(100,15000,800);loops=-1"/><execute action="redacted"application="record"data="/usr/share/freeswitch/htdocs/recordings/z0jnu8h6-898958.wav 25 20"data="RECORD_STEREO=true"data="playback_terminators=*"></execute></work></document>
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org