[Freeswitch-users] ESL, ESL_EVENT_CHANNEL_HANGUP, ESL_EVENT_CHANNEL_HANGUP_COMPLETE

Kenn Leth Hansen klh at justfone.dk
Mon Feb 17 15:50:17 MSK 2014


Hi Marcin,

This is due to a race condition. The socket can be closed before all events
are send.

You need to tell FreeSWITCH to "linger". See:
https://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Events.


Regards,
Kenn


On Mon, Feb 17, 2014 at 1:18 PM, Marcin S <ms4esl at gmail.com> wrote:

> Hello,
>
> I have another issue that is unclear to me. After "hangup" esl returns
> events ESL_EVENT_CHANNEL_HANGUP (always), ESL_EVENT_CHANNEL_STATE (twice,
> but I really don't care for that) and ESL_EVENT_CHANNEL_HANGUP_COMPLETE
> (sometimes).
>
> Why ESL_EVENT_CHANNEL_HANGUP_COMPLETE is not always generated?
>
> In /var/log/freeswitch/freeswitch.log there are some entries which may
> have something in common with this issue:
>
> 2014-02-14 14:27:05.079484 [DEBUG] switch_core_session.c:1492 Session 131
> (sofia/vlan25/379) Locked, Waiting on external entities
> 2014-02-14 14:27:05.079484 [NOTICE] switch_core_session.c:1510 Session 131
> (sofia/vlan25/379) Ended
>
> Second question - when is ESL_EVENT_CHANNEL_HANGUP generated? After
> hangup? Before hangup? It is important for me, because sometimes I have to
> originate another call somewhere, but I can't do this when previous call
> (in another session) is not fully released.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140217/16ebd18b/attachment.html 


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