<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><a href="https://wiki.freeswitch.org/wiki/Reporting_Bugs">https://wiki.freeswitch.org/wiki/Reporting_Bugs</a><div><br><div style=""><div>On Feb 19, 2014, at 7:09 AM, Marcin S &lt;<a href="mailto:ms4esl@gmail.com">ms4esl@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Here are more lines from /var/log/freeswitch/freeswitch.log:<br><br><div><br>2014-02-14 14:27:05.079484 [DEBUG] mod_sofia.c:503 Channel sofia/vlan25/379 hanging up, cause: NORMAL_CLEARING<br>2014-02-14 14:27:05.079484 [DEBUG] mod_sofia.c:552 Sending BYE to sofia/vlan25/379<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:48 sofia/vlan25/379 Standard HANGUP, cause: NORMAL_CLEARING<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:667 (sofia/vlan25/379) State HANGUP going to sleep<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:446 (sofia/vlan25/379) State Change CS_HANGUP -&gt; CS_REPORTING<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_session.c:1287 Send signal sofia/vlan25/379 [BREAK]<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:415 (sofia/vlan25/379) Running State Change CS_REPORTING<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:749 (sofia/vlan25/379) State REPORTING<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:92 sofia/vlan25/379 Standard REPORTING, cause: NORMAL_CLEARING<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:749 (sofia/vlan25/379) State REPORTING going to sleep<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:440 (sofia/vlan25/379) State Change CS_REPORTING -&gt; CS_DESTROY<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_session.c:1287 Send signal sofia/vlan25/379 [BREAK]<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_session.c:1492 Session 131 (sofia/vlan25/379) Locked, Waiting on external entities<br>2014-02-14 14:27:05.079484 [NOTICE] switch_core_session.c:1510 Session 131 (sofia/vlan25/379) Ended<br>
2014-02-14 14:27:05.079484 [NOTICE] switch_core_session.c:1514 Close Channel sofia/vlan25/379 [CS_DESTROY]<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:556 (sofia/vlan25/379) Callstate Change HANGUP -&gt; DOWN<br>
2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:559 (sofia/vlan25/379) Running State Change CS_DESTROY<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:569 (sofia/vlan25/379) State DESTROY<br>
2014-02-14 14:27:05.079484 [DEBUG] mod_sofia.c:396 sofia/vlan25/379 SOFIA DESTROY<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:99 sofia/vlan25/379 Standard DESTROY<br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_state_machine.c:569 (sofia/vlan25/379) State DESTROY going to sleep<br>
<br><br><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-19 6:32 GMT+01:00 Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div dir="auto"><div>Logs, data and JIRA?<br><br>Sent from my iPad</div><div><div class="h5"><div><br>On Feb 17, 2014, at 8:39 AM, Marcin S &lt;<a href="mailto:ms4esl@gmail.com" target="_blank">ms4esl@gmail.com</a>&gt; wrote:<br>
<br></div><blockquote type="cite"><div dir="ltr"><div>It has nothing in common with esl socket (besides I'm using "linger" anyway). My application originates 2 or 3 calls from within one esl socket connection, and HANGUP_COMPLETE sometimes is generated, sometimes not.<br>

</div>The only difference I see, is that calls originated from "sofia/external/" always have HANGUP_COMPLETE, but from "sofia/vlan25" not.<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2014-02-17 13:50 GMT+01:00 Kenn Leth Hansen <span dir="ltr">&lt;<a href="mailto:klh@justfone.dk" target="_blank">klh@justfone.dk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">

<div dir="ltr">Hi Marcin,<div><br></div><div>This is due to a race condition. The socket can be closed before all events are send.</div><div><br></div><div>You need to tell FreeSWITCH to "linger". See:&nbsp;<a href="https://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Events" target="_blank">https://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Events</a>.</div>



<div><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><font>Regards,</font></div><div><span>Kenn</span><br></div>

<div><span><br></span></div></div></div><br><div class="gmail_quote"><div>On Mon, Feb 17, 2014 at 1:18 PM, Marcin S <span dir="ltr">&lt;<a href="mailto:ms4esl@gmail.com" target="_blank">ms4esl@gmail.com</a>&gt;</span> wrote:<br>



</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div><div dir="ltr"><div><div><div>Hello,<br><br></div>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).<br>




<br></div>Why ESL_EVENT_CHANNEL_HANGUP_COMPLETE is not always generated?<br><br></div>In /var/log/freeswitch/freeswitch.log there are some entries which may have something in common with this issue:<br><div><br>2014-02-14 14:27:05.079484 [DEBUG] switch_core_session.c:1492 Session 131 (sofia/vlan25/379) Locked, Waiting on external entities<br>




2014-02-14 14:27:05.079484 [NOTICE] switch_core_session.c:1510 Session 131 (sofia/vlan25/379) Ended<br><br></div><div>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.<br>




</div></div>
</div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div><br></div></body></html>