[Freeswitch-users] sched_api doesn't get launched

Diego Viola diego.viola at gmail.com
Tue Oct 13 11:45:38 PDT 2009


You need to pass the UUID to sched_hangup.

Usage: sched_hangup [+]<time> <uuid> [<cause>]

http://wiki.freeswitch.org/wiki/Mod_commands#sched_hangup


On Tue, Oct 13, 2009 at 10:14 AM, Henry Huang <b_ball_henry at hotmail.com>wrote:

> Hi:
> I am using mod_java. And in my script I was able to achieve using:
>
> execute("sched_hangup", "+300 alloted_timeout");
>
> However, when I try to run sched_api in the same way, system log returns
> that it's an invalid application. I have also tried to trigger it with many
> conditional channel variable api calls , but non of them seemed to execute
> the api command (because I turned on the highest level of debugging and see
> no where the sched_api is being called.
>
> The closest thing I got was by using "api_after_bridge" like the following,
> but it only launches when the bridge is teared down(which is not what I
> want). I originally thought after bridge means right after the 2 party is
> connected. All I want is to be able to play some message to leg A at certain
> time.
>
> setVariable("api_after_bridge", "sched_api +10 none uuid_displace ${uuid}
> start /path/to/some.wav 20 mux");
>
> I have been struggling with different combination for a week now.. Please
> shed some light if you know something.
>
> Thanks,
>
> --
> Henry Huang
> UniC Solution - Communication Unified
> VoIP & Open Source software Consultant
>
> _______________________________________________
> 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/20091013/3641b0ee/attachment-0002.html 


More information about the FreeSWITCH-users mailing list