Re- Sending "api <conferencename> hup all" after Lua service script detects local hangup
To FreeSWITCH Users, I have just come across an issue when my Lua script hangs up while inside a conference (let's call it conference name: "testconf"). I would like to be able to terminate everyone in the conference when this happens, however when I try to call session:execute("conference", "testconf hup all") nothing happens. There is some mention of zombie_exec setting inside the DEBUG logging, however I have no idea where that is and how that is used. If someone has a neat trick to enable this to work I would appreciate it. Kind Regards, Andrew Keil Visytel Pty Ltd
At that point you probably have an invalid "session" object. I would try an hangup hook, that is executed after hangup in a freshly spawned process. another way is, earlier in your script, create an API object, then use that API object to terminate the conference. -giovanni On Thu, Jun 9, 2016 at 9:17 AM, Andrew Keil <andrew.keil@visytel.com> wrote:
To FreeSWITCH Users,
I have just come across an issue when my Lua script hangs up while inside a conference (let’s call it conference name: “testconf”). I would like to be able to terminate everyone in the conference when this happens, however when I try to call session:execute(“conference”, “testconf hup all”) nothing happens. There is some mention of zombie_exec setting inside the DEBUG logging, however I have no idea where that is and how that is used.
If someone has a neat trick to enable this to work I would appreciate it.
Kind Regards,
Andrew Keil
*Visytel Pty Ltd*
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Thanks for you fast response. When you say API object do you mean something like this: Early in my Lua script: api = freeswitch.API() After HUNGUP detected: api:execute(“conference”, “testconf hup all”) Do I then have to dispose of the api object in some way prior to the Lua script exiting? Or is this done automatically? Thanks, Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Thursday, 9 June 2016 5:26 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Re- Sending "api <conferencename> hup all" after Lua service script detects local hangup At that point you probably have an invalid "session" object. I would try an hangup hook, that is executed after hangup in a freshly spawned process. another way is, earlier in your script, create an API object, then use that API object to terminate the conference. -giovanni On Thu, Jun 9, 2016 at 9:17 AM, Andrew Keil <andrew.keil@visytel.com<mailto:andrew.keil@visytel.com>> wrote: To FreeSWITCH Users, I have just come across an issue when my Lua script hangs up while inside a conference (let’s call it conference name: “testconf”). I would like to be able to terminate everyone in the conference when this happens, however when I try to call session:execute(“conference”, “testconf hup all”) nothing happens. There is some mention of zombie_exec setting inside the DEBUG logging, however I have no idea where that is and how that is used. If someone has a neat trick to enable this to work I would appreciate it. Kind Regards, Andrew Keil Visytel Pty Ltd _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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 -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
On Thu, Jun 9, 2016 at 9:40 AM, Andrew Keil <andrew.keil@visytel.com> wrote:
Thanks for you fast response. When you say API object do you mean something like this:
Early in my Lua script:
api = freeswitch.API()
After HUNGUP detected:
api:execute(“conference”, “testconf hup all”)
yes
Do I then have to dispose of the api object in some way prior to the Lua script exiting? Or is this done automatically?
is done automatically -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
participants (2)
-
Andrew Keil
-
Giovanni Maruzzelli