<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">As there is no support for 1.6 anymore, we prepare to upgrade to 1.8.2. However in the 1.6 freeswitch logs there was nothing special to see, I only saw in the ESL trace that the CHANNEL_HANGLUP_COMPLETE event was missing. If we reproduce this on 1.8.2 is there anything special we should configure to better analyze if there is a deadlock?</div><div class=""><br class=""></div><div class="">Best regards</div><div class=""><br class=""></div><div class="">Markus <br class=""><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Am 22.10.2018 um 21:01 schrieb Brian West <<a href="mailto:brian@freeswitch.com" class="">brian@freeswitch.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">It;s not that it was never received, it was probably deadlocked and never sent.<div class=""><br class=""></div><div class="">/b</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Oct 15, 2018 at 7:46 AM Vallimamod Abdullah <<a href="mailto:vma@vallimamod.org" class="">vma@vallimamod.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="">
<br class="">
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:<br class="">
<br class="">
[NOTICE] switch_core_session.c:1683 Session XXX (sofia/internal/YYY) Ended<br class="">
[NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/YYY [CS_DESTROY]<br class="">
<br class="">
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.<br class="">
<br class="">
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.<br class="">
<br class="">
<br class="">
<br class="">
Best Regards,<br class="">
-- <br class="">
Vallimamod Abdullah<br class="">
SIP Solutions<br class="">
<a href="mailto:vma@sip.solutions" class="">vma@sip.solutions</a><br class="">
<a href="http://linkedin.com/in/vallimamod" rel="noreferrer" target="_blank" class="">linkedin.com/in/vallimamod</a><br class="">
.<br class="">
<br class="">
<br class="">
> On 10 Oct 2018, at 15:54, Markus Bönke <<a href="mailto:mbodbg@gmx.net" target="_blank" class="">mbodbg@gmx.net</a>> wrote:<br class="">
> <br class="">
> 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.<br class="">
> <br class="">
> Thanks and regards<br class="">
> <br class="">
> Markus<br class="">
> <br class="">
> <br class="">
>> Am 10.10.2018 um 14:03 schrieb Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank" class="">steveayre@gmail.com</a>>:<br class="">
>> <br class="">
>> 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.<br class="">
>> However the gcore will pause the process for a while, so it will impact on any other calls on that box.<br class="">
>> <br class="">
>> Have you tried reproducing it on 1.8?<br class="">
>> <br class="">
>> On Tue, 9 Oct 2018 at 20:36, Markus Bönke <<a href="mailto:mbodbg@gmx.net" target="_blank" class="">mbodbg@gmx.net</a>> wrote:<br class="">
>> Hello All,<br class="">
>> <br class="">
>> 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“.<br class="">
>> ...<br class="">
>> 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 (<a href="mailto:sofia/internal/anonymous@anonymous.invalid" class="">sofia/internal/anonymous@anonymous.invalid</a>) State Change CS_REPORTING -> CS_DESTROY<br class="">
>> 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 (<a href="mailto:sofia/internal/anonymous@anonymous.invalid" class="">sofia/internal/anonymous@anonymous.invalid</a>) Locked, Waiting on external entities<br class="">
>> ...<br class="">
>> 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?<br class="">
>> <br class="">
>> Thanks and regards<br class="">
>> <br class="">
>> Markus <br class="">
>> _________________________________________________________________________<br class="">
>> Professional FreeSWITCH Services<br class="">
>> <a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
>> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
>> <br class="">
>> Official FreeSWITCH Sites<br class="">
>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
>> <a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
>> <br class="">
>> FreeSWITCH-users mailing list<br class="">
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
>> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
>> _________________________________________________________________________<br class="">
>> Professional FreeSWITCH Services<br class="">
>> <a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
>> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
>> <br class="">
>> Official FreeSWITCH Sites<br class="">
>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
>> <a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
>> <br class="">
>> FreeSWITCH-users mailing list<br class="">
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
>> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
> <br class="">
> _________________________________________________________________________<br class="">
> Professional FreeSWITCH Services<br class="">
> <a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
> <br class="">
> Official FreeSWITCH Sites<br class="">
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
> <a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
> <br class="">
> FreeSWITCH-users mailing list<br class="">
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
> <a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
<br class="">
<br class="">
_________________________________________________________________________<br class="">
Professional FreeSWITCH Services<br class="">
<a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
<a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div style="font-size:12.8px" class=""><font class=""><img src="https://hipchat.freeswitch.org/files/1/9111/w0eGOzyOVyZQdMg/email_logo.png" width="200" height="66" class=""><br class=""></font></div><div style="font-size:12.8px" class=""><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Brian West | Co-founder and Developer</font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a> </font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank" class="">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><font class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><a href="mailto:brian@freeswitch.com" target="_blank" class="">brian@freeswitch.com</a></span></font></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Mobile: 918-424-9378</font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><font class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">https://www.FreeSWITCH.com</span></a></font></div><div style="font-size: 12.8px; line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;" class=""><span style="background-color: transparent; font-size: 9pt; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;" class=""><a href="https://www.facebook.com/freeswitch" target="_blank" class=""><img alt="https://www.facebook.com/signalwireinc?src=email " src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border:none" class=""></a> </span><span style="background-color: transparent; font-size: 9pt; font-family: Tahoma; vertical-align: baseline; white-space: pre-wrap;" class=""><a href="https://twitter.com/freeswitch" target="_blank" class=""><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border:none" class=""></a></span><br class=""></div></div></div></div></div></div></div></div></div></div></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></body></html>