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.