Thanks for the reply. It's "while true do" loop, I thought the hangup signal will break it. 1. session:ready will return true between call answered and hangup only, right ? 2. how does it compare to session:getState, "CS_HANGUP" or "CS_DESTROY" means call hung up ? Regards, Tony On Wed, Jul 7, 2010 at 8:15 PM, Brian West <brian@freeswitch.org> wrote:
Post your code for your while loop... sounds like you're not checking session:ready to see if its still true.
/b
On Jul 7, 2010, at 3:48 AM, Tony Tin wrote:
Hi,
I'm writing dialplan with Lua script. There is a while loop in the dialplan, I found that the loop is not broke out even the call has been hung up. I'm wondering whether this is a normal behavior. Thanks.
Regards, Tony
_______________________________________________ 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