<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi,<br>
      <br>
      Are there any errors when the "fixing" is done? The presence of a
      param should not impact here.<br>
      <br>
      Regards,<br>
      Bogdan<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 23rd May - 3rd June 2022
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
    <div class="moz-cite-prefix">On 4/29/22 1:43 PM, Yury Kirsanov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD1_sesGC0z-CVXjsu=F8MccVzz5P6DiXmQxteA=FEV-WmOasg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div>I'm using OpenSIPS 3.2.4 and recently run into following
          issue:</div>
        <div><br>
        </div>
        <div>Imagine simplest proxy setup - OpenSIPS just accepts new
          packet, for example INVITE, changes destination using
          'sethostport(....)' and then issues 't_relay()' to forward the
          packet. Let's ignore replies and so on.</div>
        <div><br>
        </div>
        <div>If I'm doing a 'fix_nated_contact()' before sending this
          packet I'm expecting Contact: field to be replaced with a
          source IP:port as per manual. And this works if the Contact is
          in simple form like '<a
            href="http://sip:7777777@192.168.29.106:65033"
            moz-do-not-send="true">sip:7777777@192.168.29.106:65033</a>'.</div>
        <div><br>
        </div>
        <div>But if following Contact comes in OpenSIPS doesn't change
          it leaving private IP in the contact:</div>
        <div><br>
        </div>
        <div>'Contact:
          <a class="moz-txt-link-freetext" href="sip:7777777@192.168.29.106:65033;rinstance=2f59b175103f1088">sip:7777777@192.168.29.106:65033;rinstance=2f59b175103f1088</a>'<br>
        </div>
        <div><br>
        </div>
        <div>Can you please let me know why is that happening? Thanks!<br>
        </div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Yury.</div>
      </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>