[Freeswitch-users] hangup does not break the Lua loop

Tony Tin tony.tin at noahmedia.com.hk
Wed Jul 7 19:34:54 PDT 2010


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 at 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 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/20100708/129e4ac4/attachment.html 


More information about the FreeSWITCH-users mailing list