<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>are you doing lookup(location) for the BYE that is attempted to
be routed on the old connection?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 17.05.18 17:45, Idris AVCI wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKmcd97qD4GDmjxux1Jx45aBHvv6UGSVsgmve7SjHPZb=2Ohqw@mail.gmail.com">
<div dir="ltr">Hi,
<div><br>
</div>
<div>We use kamailio as a backend for JSSIP based WebRTC UAs.</div>
<div>We use SIP over Weboscket as transport and everythings work
fine generally.</div>
<div><br>
</div>
<div>Some websocket connections to kamailio drop during an
active call and JSSIP reconnects immediately. New websocket
connection has a different port than the dropped one but
kamailio tries to send to old websocket port which is not
active anymore.</div>
<div><br>
</div>
<div>We use GRUU and configured all the related parameters in
registrar, dialog, tm, websocket, tls, xhttp and userloc
modules both for versions 4.4 and 5.1 but couldn't find a
solution yet.</div>
<div><br>
</div>
<div>For a typical call below are the ordered events:</div>
<div><br>
</div>
<div>1. UA register to kamailio over wss (Code: WS1)</div>
<div>2. Kamailio send an INVITE to the UA (Code: Call1)</div>
<div>3. UA answer and media starts</div>
<div>4. UA drops WS1 to kamailio and reconnect (Code: WS2)</div>
<div>5. UA has an active websocket (WS2) to kamailio</div>
<div>6. Kamailio tries to send BYE message of Call1 to WS1 which
is no longer active and complains that websocket could not be
found</div>
<div>7. Kamailio send an INVTE to the UA (Code: Call2) over WS2</div>
<div>8. UA answer and media starts</div>
<div>9. Kamailio send BYE message of Call2 to UA over WS2 and
everything work as expected (No websocket drop)</div>
<div><br>
</div>
<div>Error log:</div>
<div>
<span></span>
<p class="gmail-p1"
style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgb(0,0,0)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">WARNING:
<core> [msg_translator.c:2761]: via_builder():
TCP/TLS connection (id: 0) for WebSocket could not be
found</span></p>
</div>
<div><br>
</div>
<div>I think we need a mechanism that will update the dialog
information of Call1 to use WS2 after reconnection.</div>
<div><br>
</div>
<div>Any help greatly appreciated.</div>
<div><br>
</div>
<div>Thanks.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>