[Freeswitch-users] Delay and exec after answer

Dmitry Mordovin d.mordovin at dwide.com
Tue Sep 1 18:59:36 MSD 2015



api_on_answer_1='sched_api +10 none send_dtmf 1234 at 100'

In Console

[DEBUG] switch_event.c:1698 Parsing variable 
[api_on_answer_1]=[sched_api +10 none send_dtmf 1234 at 100]

Looks good,
...
But in 10 seconds:

[DEBUG] mod_commands.c:4575 Command send_dtmf(1234 at 100):
INVALID COMMAND!

What is wrong??



On 09/01/2015 06:40 PM, Michael Jerris wrote:
> you could use api on answer to schedule an api command
>
> On Tuesday, September 1, 2015, Dmitry Mordovin <d.mordovin at dwide.com 
> <mailto:d.mordovin at dwide.com>> wrote:
>
>     Hello
>
>     Is it possible to execute some api with delay after answer received?
>
>     Trying
>
>     api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec
>     after answer------'
>
>
>     but 'api_on_answer_2' executed at once
>
>     Any ideas?
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <javascript:;>
>     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 <javascript:;>
>     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 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/20150901/12ed3ea6/attachment.html 


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