<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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 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 12/30/21 2:50 PM, Sergey Pisanko
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANbQ6FKuXhExp6-UY1F4jd0GArQba6zUHS3bFgNqacnd5psePQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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="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">12/30/21,
                      02:49:47 PM</span></td>
                  <td> <br>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <img class="mailtrack-img" alt="" style="display:flex"
src="https://mailtrack.io/trace/mail/a24133cf2ef3a8a82a46940b70c2d41a93facfe3.png?u=6916461"
          moz-do-not-send="true" width="0" height="0"></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>