[Freeswitch-users] Re- Sending "api <conferencename> hup all" after Lua service script detects local hangup

Giovanni Maruzzelli gmaruzz at gmail.com
Thu Jun 9 11:26:11 MSD 2016


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> 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
> 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
> 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/52223c61/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list