<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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><div dir="ltr"><div>It has nothing in common with esl socket (besides I&#39;m using &quot;linger&quot; 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 &quot;sofia/external/&quot; always have HANGUP_COMPLETE, but from &quot;sofia/vlan25&quot; 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<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 &quot;linger&quot;. See: <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><div><div><div><div><font color="#000000">Regards,</font></div></div></div></div></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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hello,<br><br></div>I have another issue that is unclear to me. After &quot;hangup&quot; esl returns events ESL_EVENT_CHANNEL_HANGUP (always), ESL_EVENT_CHANNEL_STATE (twice, but I really don&#39;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&#39;t do this when previous call (in another session) is not fully released.<br>




</div></div>
<br></div></div><div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br>
<span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></span><br>
<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>