<br><div class="gmail_quote">On Wed, Feb 10, 2010 at 1:34 PM, Nazim Agabekov <span dir="ltr">&lt;<a href="mailto:nazim.agabekov@gmail.com">nazim.agabekov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div text="#000000" bgcolor="#ffffff">
Lua script is not terminating immediately on hangup.<br></div></blockquote><div><br></div><div><br></div><div>When does it terminate then? Will the script terminate when it finishes running or does it need some special instruction?</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">
This behavior allows user to finalize the script nicely (free
dynamically allocated resources, update logs, e.t.c)<div class="im"><br>
<blockquote type="cite">
  <div>maybe it will stuck in a few situation before it reach to
session:status check point.</div>
  <div><br>
  </div>
  <div>like GetDigit or something else? (sorry, I dont have FS right
now, need test it tomorrow)</div>
</blockquote></div>
I&#39;ve never encountered such a problem. Usually GetDigit-like functions
have timeout parameter, so they don&#39;t block forever.<br>
Just check the session status often and it will work like a charm ;<div><div></div><div class="h5"><br>
<br>
<br>
On 02/10/2010 08:00 PM, Chia-Yen Wu wrote:
<blockquote type="cite">
  <div>thx for reply, but shouldnt Lua script terminate when client
hangs up?</div>
  <div><br>
  </div>
  <div>maybe it will stuck in a few situation before it reach to
session:status check point.</div>
  <div><br>
  </div>
  <div>like GetDigit or something else? (sorry, I dont have FS right
now, need test it tomorrow)</div>
  <br>
  <div class="gmail_quote">2010/2/10 Nazim Agabekov <span dir="ltr">&lt;<a href="mailto:nazim.agabekov@gmail.com" target="_blank">nazim.agabekov@gmail.com</a>&gt;</span><br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
    <div text="#000000" bgcolor="#ffffff">Hello,<br>
Can you pastebin your script?<br>
    <br>
    <a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a>
    <div>
    <div><br>
    <br>
On 02/10/2010 01:17 PM, Chia-Yen Wu wrote:
    </div>
    </div>
    <blockquote type="cite">
      <div>
      <div>
      <div>Hello, </div>
      <div>
      <div>i tried to use Lua script to replace xml macro in dialplan,</div>
      </div>
      <div>but I found out that Lua wont terminate if client hangup,</div>
      <div>,so the session is still on but client is already hangup,</div>
      <div>is there a way to avoid this ?</div>
      <div><br>
      </div>
      </div>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </pre>
    </blockquote>
    <br>
    </div>
    <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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
</div></div></div>

<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>