Jurijs, Thank you for your time, problem resolved! I also had to change the silence after the tone stream "15000" to "1000". Here is the new XML for reference if anyone has this issue in the future. <document type="text/freeswitch-httapi"> <work> <speak name="speak" loops="0" engine="flite" voice="kal" text="Please leave a message after the beep." language="en"></speak> <execute application="playback" data="tone_stream://%(100,1000,800);loops=0"/> <execute action="redacted" application="record" data="/usr/share/freeswitch/htdocs/recordings/rd5s4nqq-898958.wav 25 20" data="RECORD_STEREO=true" data="playback_terminators=*"> </execute> </work> </document> On Wed, Aug 3, 2016 at 12:44 AM, Jurijs Ivolga <jurijs.ivolga@gmail.com> wrote:
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:"
Check this link for more details:
https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream
With kind regards,
Jurijs
On 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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044