<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";
mso-fareast-language:DE;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi,<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Yes, bgapi helps to solve the ESL issue. ESL does not block any more. <o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">However, the Channel still blocks when trying to leave the conference.<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">During FreeSWITCH shutdown, the following issue is logged:<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">2017-10-09 09:42:51.115212 [NOTICE] switch_loadable_module.c:1055 Deleting Application 'conference'<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">2017-10-09 09:43:01.134791 [ERR] switch_loadable_module.c:1062 Giving up on 'conference' waiting for existing references.<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">2017-10-09 09:43:01.134791 [NOTICE] switch_loadable_module.c:1110 Deleting API Function 'conference'<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">2017-10-09 09:43:11.155363 [ERR] switch_loadable_module.c:1118 Giving up on 'conference' waiting for existing references.<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Regards,<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Tobias<o:p></o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span lang="EN-GB">Hi,<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">since updating from FreeSWITCH 1.6.8 to FreeSWITCH 1.6.17 (Windows Server 2012 R2), the Event Socket Handler(inbound mode) sporadically stops sending Channel related Event Info.<o:p></o:p></span></pre>
<pre><span lang="EN-GB">Once in this situation, the Event Socket Handler does not recover until either reset of the ESL connection by the Host that established the ESL connection or reload of mod_event_socket.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">Shortly before Event Socket connection drops it seems that there is a problem trying to close a channel.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">Example Log for failure case: Channel with uuid d9be476b-6a9d-4c96-95fb-5d8728bcc08e is never closed after leavig the conference.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:35.399989 [NOTICE] switch_channel.c:1104 New Channel sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> [d9be476b-6a9d-4c96-95fb-5d8728bcc08e]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:35.399989 [INFO] mod_dialplan_xml.c:637 Processing 149 <149>->4600 in context public<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:35.399989 [NOTICE] switch_ivr.c:2172 Transfer sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> to XML[</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">4600 at default</span></a><span lang="EN-GB">]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:35.419958 [INFO] mod_dialplan_xml.c:637 Processing 149 <149>->4600 in context default<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:35.439966 [NOTICE] mod_dptools.c:1312 Channel [sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB">] has been answered<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:55.940144 [NOTICE] sofia.c:1012 Hangup sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> [CS_EXECUTE] [NORMAL_CLEARING]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e 2017-08-29 10:59:55.940144 [INFO] conference_loop.c:1469 Channel leaving conference, cause: NORMAL_CLEARING<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">Example Log for regular case: Channel with uuid 982453be-a321-4825-a944-ecfffa715914 is closed correctly after leaving the conference):<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:55:51.340132 [NOTICE] switch_channel.c:1104 New Channel sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> [982453be-a321-4825-a944-ecfffa715914]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:55:51.340132 [INFO] mod_dialplan_xml.c:637 Processing 149 <149>->4600 in context public<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:55:51.360126 [NOTICE] switch_ivr.c:2172 Transfer sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> to XML[</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">4600 at default</span></a><span lang="EN-GB">]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:55:51.360126 [INFO] mod_dialplan_xml.c:637 Processing 149 <149>->4600 in context default<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:55:51.380148 [NOTICE] mod_dptools.c:1312 Channel [sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB">] has been answered<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:56:11.900321 [NOTICE] sofia.c:1012 Hangup sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> [CS_EXECUTE] [NORMAL_CLEARING]<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:56:11.900321 [INFO] conference_loop.c:1469 Channel leaving conference, cause: NORMAL_CLEARING<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:56:11.900321 [NOTICE] switch_core_session.c:1683 Session 9744 (sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB">) Ended<o:p></o:p></span></pre>
<pre><span lang="EN-GB">982453be-a321-4825-a944-ecfffa715914 2017-08-29 10:56:11.900321 [NOTICE] switch_core_session.c:1687 Close Channel sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB"> [CS_DESTROY]<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">The channel with uuid d9be476b-6a9d-4c96-95fb-5d8728bcc08e will still be displayed at fs_cli on request of "show channels"<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">freeswitch at 1250-0110</span></a><span lang="EN-GB">> show channels<o:p></o:p></span></pre>
<pre><span lang="EN-GB">uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context<o:p></o:p></span></pre>
<pre><span lang="EN-GB">d9be476b-6a9d-4c96-95fb-5d8728bcc08e,inbound,2017-08-29 10:59:35,1503997175,sofia/external/</span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">149 at dialin</span></a><span lang="EN-GB">,CS_EXECUTE,149,149,dialin,4600,playback,{playBackId=2573}us/announcement.wav,XML,default,L16,8000,128000,PCMA,8000,64000,,1250-0110,,,,ACTIVE,,,,,,,149,149,dialin,4600,XML,public<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">1 total.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">However, trying to retrieve the channel data for this channel e.g. "uuid_dump" fails.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"><span lang="EN-GB">freeswitch at 1250-0110</span></a><span lang="EN-GB">> uuid_dump d9be476b-6a9d-4c96-95fb-5d8728bcc08e<o:p></o:p></span></pre>
<pre><span lang="EN-GB">-ERR No such channel!<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">Same issue exists with FreeSWITCH 1.6.19.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">We are continuously sending api commands to the channel.<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre><span lang="EN-GB">Could this be a race condition, receiving an api, while the Channel is trying to close ?<o:p></o:p></span></pre>
<pre><span lang="EN-GB">Would bgapi help ?<o:p></o:p></span></pre>
<pre><span lang="EN-GB">Why is it not an issue with FreeSWITCH 1.6.8 ?<o:p></o:p></span></pre>
<pre><span lang="EN-GB"><o:p> </o:p></span></pre>
<pre>Regards,<o:p></o:p></pre>
<pre>Tobias<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>