<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>MC,</span></div><div><br><span></span></div><div><span>I tried the syntax you suggested but I does not seem to be working</span></div><div><br><span></span></div><div><span>&lt;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})"/&gt;</span></div><div><br></div><div><br><span></span></div><div><span>I also tried this syntax and still no luck</span></div><div><br><span></span></div><div>&lt;action application="export" data="api_on_answer_1=sched_broadcast +1 ${uuid}&nbsp;
playback::sound1.wav"/&gt;
<br>&lt;action application="export" data="api_on_answer_2=sched_hangup +15 ${uuid}"/&gt;
</div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Michael Collins &lt;msc@freeswitch.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 17, 2011 3:05 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] Simulating Asterisk dial(x:y:z)<br></font><br><div id="yiv544965436">You can do multiple api_on_answer calls by using a relatively new syntax:<div><br></div><div>api_on_answer_1=api(arg),api_on_answer_2=api2(arg2),api_on_answer_3=api3(arg3)</div><div><br></div><div>Same syntax applies to the execute_on_xxx variables.</div>
<div><br></div><div>-MC<br><br><div class="yiv544965436gmail_quote">
On Wed, Aug 17, 2011 at 12:33 AM, Sam <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:lakersman2006@yahoo.com" target="_blank" href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv544965436gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>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?<br>

</div></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div><br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br><br></div></div></div></body></html>