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)I've never encountered such a problem. Usually GetDigit-like functions have timeout parameter, so they don't block forever.
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)
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@gmail.com>
Hello,
Can you pastebin your script?
http://pastebin.freeswitch.org
On 02/10/2010 01:17 PM, Chia-Yen Wu wrote:_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.orgHello,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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org