[Freeswitch-users] Recording with a beep please

Jurijs Ivolga jurijs.ivolga at gmail.com
Wed Aug 3 09:44:35 MSD 2016


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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160803/3abba895/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list