<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>