<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks Mike! Mod_Lua is great. I had experience with a lot of
proprietary IVR systems in the past.<br>
FreeSWITCH and Mod_lua + luasql beats them all. Functionality is really
impressive.<br>
<br>
On 02/11/2010 09:21 AM, Michael Jerris wrote:
<blockquote cite="mid:4CA5432B-5F6E-438E-B6EF-3277847E7922@jerris.com"
 type="cite">lua runs until you finish your script. &nbsp;You need to exit
when you are supposed to. &nbsp;We have session::ready() for you to test
this.
  <div><br>
  </div>
  <div>Mike</div>
  <div><br>
  <div>
  <div>On Feb 10, 2010, at 12:53 PM, Nazim Agabekov wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite">
    <div text="#000000" bgcolor="#ffffff">I think it continues to run
until it finishes. I'll check it tomorrow
on my test system.<br>
    <br>
On 02/10/2010 09:32 PM, Nicolas Brenner wrote:
    <blockquote
 cite="mid:1b46b4e81002100932x7af486ekd4b05f4750cace20@mail.gmail.com"
 type="cite"><br>
      <div class="gmail_quote">On Wed, Feb 10, 2010 at 1:34 PM, Nazim
Agabekov <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:nazim.agabekov@gmail.com">nazim.agabekov@gmail.com</a>&gt;</span>
wrote:<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">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>&nbsp;</div>
      <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">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&nbsp;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've never encountered such a problem. Usually GetDigit-like functions
have timeout parameter, so they don't block forever.<br>
Just check the session status often and it will work like a charm ;
        <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,&nbsp;but shouldnt Lua script terminate when
client
hangs up?</div>
          <div><br>
          </div>
          <div>maybe it will stuck in a few&nbsp;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 moz-do-not-send="true"
 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 moz-do-not-send="true"
 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,&nbsp;</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 moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org/"
 target="_blank">http://www.freeswitch.org</a>
  </pre>
            </blockquote>
            <br>
            </div>
            <br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" 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 moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
        <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
        <a moz-do-not-send="true" href="http://www.freeswitch.org/"
 target="_blank">http://www.freeswitch.org</a><br>
        <br>
      </blockquote>
      </div>
      <br>
      <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.freeswitch.org/">http://www.freeswitch.org</a>
  </pre>
    </blockquote>
    <br>
    </div>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
  </blockquote>
  </div>
  <br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
</body>
</html>