<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>For me in Lua it works:</div><div><br></div><div> api:executeString("sched_hangup +30 uuid normal_clearing")<br></div><div><br></div><div>and then if needed:</div><div><br></div><div> api:executeString("sched_hangup +60 uuid normal_clearing")</div><div><br></div><div>I suppose it should work in fs_cli too...<br></div><div><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 1, 2019 at 10:45 AM 王聡 <<a href="mailto:cong.wang.itsherpa@gmail.com">cong.wang.itsherpa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hey all,<div><br></div><div>I made a prepaid call system and applied sched_hangup in dialplan to limit the call duration like(lua) :</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><span>session:execute("sched_hangup", “+60")</span></blockquote><div><span><br></span><span>Recently I updated my system to allow user buy points during calling, but when I tried to recall sched_hangup like [</span>sched_hangup +30 <uuid>] in fs_cli it still hangup at 60s (which hopes to hangup at 90s).</div><div>Is there any mistake in my usage? Or any solutions for this?</div><div><br></div><div>Regards.</div><div>C.Wang</div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>