[Freeswitch-users] Re- Sending "api <conferencename> hup all" after Lua service script detects local hangup
andrew.keil at visytel.com
Thu Jun 9 11:40:44 MSD 2016
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?
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli
Sent: Thursday, 9 June 2016 5:26 PM
To: FreeSWITCH Users Help <freeswitch-users at 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.
On Thu, Jun 9, 2016 at 9:17 AM, Andrew Keil <andrew.keil at visytel.com<mailto:andrew.keil at 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.
Visytel Pty Ltd
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
Official FreeSWITCH Sites
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
Cell : +39-347-2665618
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users