[Freeswitch-users] Sometimes "hanging" channels

Brian West brian at freeswitch.com
Mon Oct 22 19:01:22 UTC 2018


It;s not that it was never received, it was probably deadlocked and never
sent.

/b


On Mon, Oct 15, 2018 at 7:46 AM Vallimamod Abdullah <vma at vallimamod.org>
wrote:

> Hi,
>
> The message "Locked, Waiting on external entities" is not alarming by
> itself as it is always logged on hangup. But it should be followed by:
>
> [NOTICE] switch_core_session.c:1683 Session XXX (sofia/internal/YYY) Ended
> [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/YYY
> [CS_DESTROY]
>
> If it is not the case then, you have an app or a module that is holding a
> lock on the session and preventing its release.
>
> And this happens after the reporting state i.e. after the hangup_complete
> event and CDR posting. So there may be other causes for your missing events.
>
>
>
> Best Regards,
> --
> Vallimamod Abdullah
> SIP Solutions
> vma at sip.solutions
> linkedin.com/in/vallimamod
> .
>
>
> > On 10 Oct 2018, at 15:54, Markus Bönke <mbodbg at gmx.net> wrote:
> >
> > So far I found out that the channel was kept open, because our ESL
> application never received a CHANNEL_HANGUP and CHANNEL_HANGUP_COMPLETE
> event. I’m running an ESL trace with tshark now. If it happens again I can
> see if those events are really not send by FS or they get lost in our app.
> If it turns out that FS sometimes is not sending the events we will upgrade
> to 1.8.2.
> >
> > Thanks and regards
> >
> > Markus
> >
> >
> >> Am 10.10.2018 um 14:03 schrieb Steven Ayre <steveayre at gmail.com>:
> >>
> >> If you take a gcore it'll generate a core dump. You could then dig into
> it with gdb to find the thread for that channel and see what lock it's
> waiting on.
> >> However the gcore will pause the process for a while, so it will impact
> on any other calls on that box.
> >>
> >> Have you tried reproducing it on 1.8?
> >>
> >> On Tue, 9 Oct 2018 at 20:36, Markus Bönke <mbodbg at gmx.net> wrote:
> >> Hello All,
> >>
> >> we are running freeswitch 1.6.20, calls are controlled via ESL, CDRs
> are written with mod_xml_cdrl. Sometimes we see „hanging“ channels. In such
> a case the CDR via mod_xml_cdr is written and the last log entry for such a
> call is "Locked, Waiting on external entities“.
> >> ...
> >>
> freeswitch.log.2018-10-09-10-19-07.1:db2908e3-c06b-4293-88b1-e18cffb66263
> 2018-10-09 10:18:15.197345 [DEBUG] switch_core_state_machine.c:610
> (sofia/internal/anonymous at anonymous.invalid) State Change CS_REPORTING ->
> CS_DESTROY
> >>
> freeswitch.log.2018-10-09-10-19-07.1:db2908e3-c06b-4293-88b1-e18cffb66263
> 2018-10-09 10:18:15.197345 [DEBUG] switch_core_session.c:1665 Session
> 166111 (sofia/internal/anonymous at anonymous.invalid) Locked, Waiting on
> external entities
> >> ...
> >> How can I proceed to further analyze the problem ? In the last log line
> I also see the session number (Session 166111) - is there a way to find out
> on which external entity it is waiting?
> >>
> >> Thanks and regards
> >>
> >> Markus
> >>
> _________________________________________________________________________
> >> Professional FreeSWITCH Services
> >> sales at freeswitch.com
> >> https://freeswitch.com
> >>
> >> Official FreeSWITCH Sites
> >> https://freeswitch.com/oss
> >> https://freeswitch.org/confluence
> >> https://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
> >> https://freeswitch.com
> >>
> _________________________________________________________________________
> >> Professional FreeSWITCH Services
> >> sales at freeswitch.com
> >> https://freeswitch.com
> >>
> >> Official FreeSWITCH Sites
> >> https://freeswitch.com/oss
> >> https://freeswitch.org/confluence
> >> https://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
> >> https://freeswitch.com
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Services
> > sales at freeswitch.com
> > https://freeswitch.com
> >
> > Official FreeSWITCH Sites
> > https://freeswitch.com/oss
> > https://freeswitch.org/confluence
> > https://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
> > https://freeswitch.com
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://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
> https://freeswitch.com



-- 

Brian West | Co-founder and Developer

Need Commercial support? email sales at freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>

Email: brian at freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>

[image: https://www.facebook.com/signalwireinc?src=email]
<https://www.facebook.com/freeswitch> [image:
https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181022/824ec3b9/attachment-0001.html>


More information about the FreeSWITCH-users mailing list