<p></p>
<p>yes <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/arsperger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/arsperger">@arsperger</a>, you are correct. here is the wrong Route header used in <code>ACK</code> message.<br>
Wrong route header used because of Kamailio inserter wrong <code>Record-Route</code> header.</p>
<p>WebRTC client really connected to the socket <code>tls:3.236.25.254:7001</code> but Record-Route header generated like</p>
<pre><code>INVITE sips:safarov@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss SIP/2.0
Record-Route: <sips:3.236.25.254;transport=ws;r2=on;lr=on;ftag=j4aU17p3BvH0e;did=698.6e42>
Record-Route: <sips:[2600:1f18:578:5701::7e];transport=tcp;r2=on;lr=on;ftag=j4aU17p3BvH0e;did=698.6e42>
Record-Route: <sip:[2600:1f14:6d8:5408::100]:5080;transport=tcp;r2=on;lr=on;ftag=j4aU17p3BvH0e>
Record-Route: <sip:[2600:1f14:6d8:5408::100];transport=tcp;r2=on;lr=on;ftag=j4aU17p3BvH0e>
Via: SIP/2.0/WSS 3.236.25.254;branch=z9hG4bKa53e.f43ae42f2fefe414dabc1a6739b19bbe.0;i=3
</code></pre>
<p>Here is top <code>Record-Route</code> should contain port "7001" but really is not.</p>
<p>I was replaced use of <code>record_route</code> by</p>
<pre><code>record_route_preset("3.236.25.254:7001;transport=ws;r2=on", "[2600:1f18:578:5701::7e];transport=tcp;r2=on");
</code></pre>
<p>This alow me to specify which sockets need to use for call dialog and now ACK properly delivered to WebRTC client.</p>
<p>The issue about missed port in <code>Record-Route</code> header will be created.<br>
This ticket is resolved.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2849#issuecomment-917392342">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIPPUBSZDGMBJYEWEDUBM52BANCNFSM5DZTHTOQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZIPKVVNV75ROQJ3JM3UBM52BA5CNFSM5DZTHTO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG2XEXVQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2849#issuecomment-917392342",
"url": "https://github.com/kamailio/kamailio/issues/2849#issuecomment-917392342",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>