[Freeswitch-users] Lua script hangup detect

Nazim Agabekov nazim.agabekov at gmail.com
Wed Feb 10 08:34:01 PST 2010


Lua script is not terminating immediately on hangup.
This behavior allows user to finalize the script nicely (free
dynamically allocated resources, update logs, e.t.c)
> maybe it will stuck in a few situation before it reach to
> session:status check point.
>
> like GetDigit or something else? (sorry, I dont have FS right now,
> need test it tomorrow)
I've never encountered such a problem. Usually GetDigit-like functions
have timeout parameter, so they don't block forever.
Just check the session status often and it will work like a charm ;


On 02/10/2010 08:00 PM, Chia-Yen Wu wrote:
> thx for reply, but shouldnt Lua script terminate when client hangs up?
>
> maybe it will stuck in a few situation before it reach to
> session:status check point.
>
> like GetDigit or something else? (sorry, I dont have FS right now,
> need test it tomorrow)
>
> 2010/2/10 Nazim Agabekov <nazim.agabekov at gmail.com
> <mailto:nazim.agabekov at gmail.com>>
>
>     Hello,
>     Can you pastebin your script?
>
>     http://pastebin.freeswitch.org
>
>
>     On 02/10/2010 01:17 PM, Chia-Yen Wu wrote:
>>     Hello, 
>>     i tried to use Lua script to replace xml macro in dialplan,
>>     but I found out that Lua wont terminate if client hangup,
>>     ,so the session is still on but client is already hangup,
>>     is there a way to avoid this ?
>>
>>
>>     _______________________________________________
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>     http://www.freeswitch.org
>>       
>
>
>     _______________________________________________
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100210/d0c8e3eb/attachment-0002.html 


More information about the FreeSWITCH-users mailing list