[Freeswitch-users] Re- Sending "api <conferencename> hup all" after Lua service script detects local hangup
Andrew Keil
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?
Thanks,
Andrew
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.
-giovanni
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.
Kind Regards,
Andrew Keil
Visytel Pty Ltd
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at 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 at lists.freeswitch.org<mailto: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
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160609/b1fe68a2/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list