[Freeswitch-users] About sched_hangup

Ryan Harris ryharris at airmail.cc
Fri Mar 1 15:48:41 UTC 2019


On 3/1/19 3:45 AM, 王聡 wrote:
> Hey all,
>
> I made a prepaid call system and applied sched_hangup in dialplan to
> limit the call duration like(lua) :
>
>     session:execute("sched_hangup", “+60")
>
>
> Recently I updated my system to allow user buy points during calling,
> but when I tried to recall sched_hangup like [sched_hangup +30 <uuid>]
> in fs_cli it still hangup at 60s (which hopes to hangup at 90s).
> Is there any mistake in my usage? Or any solutions for this?
>
> Regards.
> C.Wang

Give sched_cancel a try:
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+sched+cancel

Then schedule the new hangup.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190301/50e521cd/attachment.html>


More information about the FreeSWITCH-users mailing list