LUA session prevents channel's DOWN state
Hello I have a LUA script, what runs permamently and listen to callstate-change events. When i attached to a channel by session = freeswitch.session(uuid), it prevents the finish of the channel. (I get some variables from the channel.) It hangs up, the call finishes, but the channel exists until i shutdown FS. state=CS_REPORING and callstate=HANGUP until the end of times... How can i detach from the channel? thx rob
On 12/16/2010 10:39 AM, Tóth Róbert wrote:
Hello
I have a LUA script, what runs permamently and listen to callstate-change events.
When i attached to a channel by session = freeswitch.session(uuid), it prevents the finish of the channel. (I get some variables from the channel.) It hangs up, the call finishes, but the channel exists until i shutdown FS. state=CS_REPORING and callstate=HANGUP until the end of times...
How can i detach from the channel?
Iirc you need to have all your sessions enclosed in while (session:ready() == true) do Regards, Patrick
participants (2)
-
Patrick Lists
-
Tóth Róbert