<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start">I am working on the same project.</span>
<div style="font-size:12pt;margin:0px;text-align:start">This issue has a bad impact, some calls are lost.</div>
<div style="font-size:12pt;margin:0px;text-align:start"><br>
</div>
<div style="font-size:12pt;margin:0px;text-align:start">I see that there is a issue on Github: <a href="https://github.com/signalwire/freeswitch/issues/1041" style="margin:0px">https://github.com/signalwire/freeswitch/issues/1041</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1" style="font-size:14px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;margin:0px;text-align:start">
<div class="LPBorder497047" style="margin:16px 0px;max-width:800px;min-width:424px">
<table style="padding:12px 36px 12px 12px;width:424px;border-width:1px;border-style:solid;border-color:rgb(200, 200, 200);border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div style="margin:0px 12px 0px 0px;height:120px;overflow:hidden"><a target="_blank" href="https://github.com/signalwire/freeswitch/issues/1041" style="margin:0px"><img alt="" height="120" width="240" style="margin:0px;display:block" src="https://opengraph.githubassets.com/4e12492b46ac88ed6577f3abc386901b70d2c46c2c65714cc448439d62ef425e/signalwire/freeswitch/issues/1041"></a></div>
</td>
<td style="width:112px">
<div style="font-weight:300;font-size:21px;font-family:wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;margin:0px 8px 12px 0px">
<a target="_blank" href="https://github.com/signalwire/freeswitch/issues/1041" style="margin:0px;color:var(--themePrimary)">sip.js websocket terminated by Freeswitch · Issue #1041 - GitHub</a></div>
<div style="font-family:wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;margin:0px 8px 12px 0px;color:rgb(102, 102, 102);max-height:100px;overflow:hidden">
Hi everyone, we are currently running a custom-build phone application using sip.js which registers to the websocket of our Freeswitch. Our Freeswitch uses version 1.10.3 64 bit on a Debian buster....</div>
<div style="font-family:wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;margin:0px;color:rgb(166, 166, 166)">
github.com</div>
</td>
</tr>
</tbody>
</table>
<div class="BteeS" tabindex="0" title="Remove link preview" style="margin:0px;cursor:pointer;height:32px;pointer-events:all;right:4px;text-align:center;top:4px">
<i data-icon-name="Cancel" class="w6wS4 root-205" style="display:block;font-style:normal;font-weight:300;speak:none;font-family:controlIcons;color:var(--neutralSecondary);font-size:17px;line-height:32px;margin:auto;pointer-events:none"></i></div>
</div>
</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start">We made logs and pcap traces, the websocket close happen on effective trafic, often after the 200 OK from (WebRTC) callee which is a big packet.</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start">It should be linked with TCP segmentation, sometimes the issue occur when the OK packet is coming in 2 segments from network.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start">I send 2 pcap traces with SIP on a-leg and TCP:7443 on WebRTC leg, on both trace the Websocket is closed by Freeswitch.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start">What is your advice:</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<ul>
<li>Do we have to use Nginx or Kamalio to handle wss before Freeswitch ?</li><li>Are there any settings we should find to reduce the occurence ??</li></ul>
<div><br>
</div>
<div>Best regards.</div>
<div><br>
</div>
<div>Rémi Marand.</div>
<div>rmarand@yahoo.fr / remi.marand@odigo.com</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-size:12pt;margin:0px;text-align:start"><br>
</span></div>
<div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt" class="elementToProof"><b>From:</b> Kakiman Expert <jolexpert@gmail.com><br>
<b>Sent:</b> Wednesday, August 24, 2022 11:25<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> [Freeswitch-users] Fwd: websocket disconnection issue - error 1006</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div dir="ltr">Hello
<div><br>
</div>
<div>I am working on FreeSWITCH 1.10.6 ans sip.js 0.16, and very often, I have a deconnection of the WSS session.</div>
<div>The error message on javascript console on Chrome is "error 1006 - websocket unexpectly closed"</div>
<div><br>
</div>
<div>This issue is very random but very often, and it breaks the incoming call.</div>
<div><br>
</div>
<div>Do you experiment such issue ? Do you know how to solve it ?</div>
<div><br>
</div>
<div>thanks</div>
<div>Franck</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>