[Freeswitch-users] Remove scheduled broadcast in javascript

Michael Collins msc at freeswitch.org
Thu Jul 25 02:35:35 MSD 2013

Hi Matt,

I hope you're willing to try a few things and report back. You'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:

However, there are some that are different: sched_del (API) vs.
sched_cancel (dialplan app). If you're confused don't worry - it happens to
everyone until they firmly grasp the difference between an API command and
a dialplan application.

To remove the scheduled broadcast try this:

If it works then you can maybe add sched_cancel to the dptools wiki

Let us know how it goes,

On Wed, Jul 24, 2013 at 6:50 AM, Matt Broad <matt at inveroak.com> wrote:

> Hi,
> is it possible to remove a sheduled broadcast within javascript?
> I have:
> session.execute("sched_broadcast", "+60 /tmp/test.mp3 both");
> But if for some reason I no longer need the broadcast to occur I need to
> delete it.  Looking on the Wiki I have found "sched_del" but cannot see
> how to get the task id for the broadcast to implement it.
> Any help would be appreciated.
> thanks
> Matt
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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

Michael S Collins
Twitter: @mercutioviz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130724/514b912c/attachment.html 

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