<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Sergey,<br>
<br>
Manually altering the RR hdr is a receipt for disaster :). Somehow
I suspect you do not do double RR (as the protocol changes for the
call). This double RR is automatically done (by default) when
doing `record_route()`. Do you get 2 RR hdrs when routing the
initial INVITE ?<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div class="moz-cite-prefix">On 1/4/22 11:27 AM, Sergey Pisanko
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANbQ6FJe-aYyBqWpx=ZP8csP9ivZck9XaXvAYBCxwBFaegHhyg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hello, Bogdan, .<br>
<br>
Thank you for your answer. I've solved my issue recently just
rewriting Record - Route header with appropriate port within
"onreply route block" by subst function.<br>
<br>
Best Regards,<br>
Sergey Pysanko.<br>
<br>
<br>
<br>
<div id="mt-signature">
<table style="user-select: none;" cellspacing="0"
cellpadding="8" border="0">
<tbody>
<tr>
<td> <a id="signatureLink-logo"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
class="" style="text-decoration:none"
moz-do-not-send="true"> <img
src="https://s3.amazonaws.com/mailtrack-signature/sender-notified-72.gif"
alt="Mailtrack" class="" moz-do-not-send="true"
width="32" height="32"> </a> </td>
<td> <span style="color:#777">Sender notified by</span>
<br>
<a id="signatureLink-text"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
class="mt-install" style="color:#4374f7"
moz-do-not-send="true">Mailtrack</a> </td>
<td><span style="color:transparent;font-size:0">01/04/22,
11:27:07 AM</span></td>
<td> <br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<img class="mailtrack-img" alt="" style="display:flex"
src="https://mailtrack.io/trace/mail/f79992017713f0cbfd4057e05f459518ca470ce6.png?u=6916461"
moz-do-not-send="true" width="0" height="0">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пн, 3 янв. 2022 г. в 17:59,
Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org"
moz-do-not-send="true">bogdan@opensips.org</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div> <font face="monospace">Hello Sergey,<br>
<br>
Could you provide a SIP capture (and calling scenario)
to underline the issue you have ?<br>
<br>
Best regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021
<a href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/" target="_blank" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div>On 12/30/21 2:50 PM, Sergey Pisanko wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello!<br>
<br>
I try to realize the next scenario with UAs,
Opensips-2.4 and Asterisk.<br>
UAs are registered onto Asterisk through Opensips and
also - on Opensips if the 200 OK is came back from
Asterisk.<br>
Calls between UAs are relayed to Asterisk by Opensips.<br>
This scenario works fine with udp. But it needs to do
with tls. And here I have the problem. What happens.<br>
Unlike udp, tcp cannot listen its port and
create clients connection at the same time. Opensips
listens tls port for clients connection <br>
whereas it creates dynamic tcp port to connect to
Asterisk. As a result, I see that port in Record-Route
header in 200 OK addressed to caller.<br>
Thus, callers ACK comes to that dynamic port instead
of Opensips listened port and Opensips dropped it.<br>
And question is how to force Opensips to put right
port for caller?
<div><br>
</div>
<div>Regards,</div>
<div>Serhii Pysanko.<br>
<br>
<br>
<br>
<div id="gmail-m_-5447805212921776049mt-signature">
<table cellspacing="0" cellpadding="8" border="0">
<tbody>
<tr>
<td> <a
id="gmail-m_-5447805212921776049signatureLink-logo"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
style="text-decoration:none"
target="_blank" moz-do-not-send="true">
<img
src="https://s3.amazonaws.com/mailtrack-signature/sender-notified-72.gif"
alt="Mailtrack" moz-do-not-send="true"
width="32" height="32"> </a> </td>
<td> <span style="color:rgb(119,119,119)">Sender
notified by</span> <br>
<a
id="gmail-m_-5447805212921776049signatureLink-text"
href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&"
style="color:rgb(67,116,247)"
target="_blank" moz-do-not-send="true">Mailtrack</a>
</td>
<td><span
style="color:transparent;font-size:0px">12/30/21,
02:49:47 PM</span></td>
<td> <br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<img alt="" style="display: flex;"
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
moz-do-not-send="true" width="0" height="0"></div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>