<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 3/1/19 3:45 AM, 王聡 wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:11ABC180-9C88-4B7F-A794-6C5F3E72B72D@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hey all,
      <div class=""><br class="">
      </div>
      <div class="">I made a prepaid call system and applied
        sched_hangup in dialplan to limit the call duration like(lua) :</div>
      <div class=""><br class="">
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class=""><span class="">session:execute("sched_hangup", “+60")</span></blockquote>
      <div class=""><span class=""><br class="">
        </span><span class="">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 class="">Is there any mistake in my usage? Or any solutions
        for this?</div>
      <div class=""><br class="">
      </div>
      <div class="">Regards.</div>
      <div class="">C.Wang</div>
    </blockquote>
    <p>Give sched_cancel a try:
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+sched+cancel">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+sched+cancel</a></p>
    <p>Then schedule the new hangup. <br>
    </p>
  </body>
</html>