<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Matt,<br><br></div>I hope you&#39;re willing to try a few things and report back. You&#39;re using session.execute to execute a dialplan application (sched_boradcast). However, sched_del is actually an API, not a dialplan application (i.e. you type sched_api blah blah at fs_cli). It just so happens that there are some dialplan apps that perform the same function as their API counterparts:<br>
</div>sched_broadcast<br></div>sched_hangup<br>sched_transfer<br><br></div>However, there are some that are different: sched_del (API) vs. sched_cancel (dialplan app). If you&#39;re confused don&#39;t worry - it happens to everyone until they firmly grasp the difference between an API command and a dialplan application.<br>
<br></div>To remove the scheduled broadcast try this:<br></div>session.execute(&quot;sched_cancel&quot;)<br><br></div>If it works then you can maybe add sched_cancel to the <a href="https://wiki.freeswitch.org/wiki/Mod_dptools#S">dptools wiki page</a>. :)<br>
<br></div><div>Let us know how it goes,<br></div><div>Michael<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 6:50 AM, Matt Broad <span dir="ltr">&lt;<a href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
is it possible to remove a sheduled broadcast within javascript?<br>
<br>
I have:<br>
session.execute(&quot;sched_broadcast&quot;, &quot;+60 /tmp/test.mp3 both&quot;);<br>
<br>
But if for some reason I no longer need the broadcast to occur I need to<br>
delete it.  Looking on the Wiki I have found &quot;sched_del&quot; but cannot see<br>
how to get the task id for the broadcast to implement it.<br>
<br>
Any help would be appreciated.<br>
<br>
thanks<br>
Matt<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a 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>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>