[Freeswitch-users] Simulating Asterisk dial(x:y:z)

Sam lakersman2006 at yahoo.com
Thu Aug 18 03:39:36 MSD 2011


MC,

I tried the syntax you suggested but I does not seem to be working

<action application="export" data="nolocal:api_on_answer_1=sched_broadcast(+1 ${uuid} playback::sound1.wav aleg), nolocal:api_on_answer_2=sched_hangup(+30 ${uuid})"/>


I also tried this syntax and still no luck

<action application="export" data="api_on_answer_1=sched_broadcast +1 ${uuid} 
playback::sound1.wav"/> 
<action application="export" data="api_on_answer_2=sched_hangup +15 ${uuid}"/> 


________________________________
From: Michael Collins <msc at freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Sent: Wednesday, August 17, 2011 3:05 PM
Subject: Re: [Freeswitch-users] Simulating Asterisk dial(x:y:z)


You can do multiple api_on_answer calls by using a relatively new syntax:

api_on_answer_1=api(arg),api_on_answer_2=api2(arg2),api_on_answer_3=api3(arg3)

Same syntax applies to the execute_on_xxx variables.

-MC


On Wed, Aug 17, 2011 at 12:33 AM, Sam <lakersman2006 at yahoo.com> wrote:

I want to simulate the Asterisk dial(x:y:z) app where (x=total call time, y=warning time, z=warning interval) in Freeswitch. I know it can be done with sched_hangup and sched_broadcast, my question is how can I call a series of "api_on_answer" comands to do it?
>
>
>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
>
>


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/20110817/9bfc016b/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list