<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Denys,<br>
      <br>
      Unfortunately this is not possible from script level - to pick the
      spot where the `received` will be inserted. Of course, there is
      all the time to options to put your fingers into the code :D .<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>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 28.05.2024 10:37, Denys Pozniak
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3AxqtWFmoVu+D-Ufq-gRQPTe8HOS0d=SbmocK1mfTao7Z7Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello!
        <div><br>
        </div>
        <div>Is it possible to change where the received parameter is
          added to the Via header using force_rport()?<br>
          I need to put it after the branch parameter, since this turned
          out to be important for very ancient SIP terminals.<br>
        </div>
        <div><br>
        </div>
        <div>REGISTER sip:<a href="http://sip.local.net"
            moz-do-not-send="true">sip.local.net</a> SIP/2.0<br>
          Via: SIP/2.0/UDP
          192.168.1.216:5060;branch=z9hG4bK59d0cba274f66fa62e82a5a7d383b461;rport<br>
          <br>
          REGISTER sip:<a href="http://sip.local.net"
            moz-do-not-send="true">sip.local.net</a> SIP/2.0<br>
          Via: SIP/2.0/UDP
          185.99.99.99:5060;branch=z9hG4bK92e8.8d908052.0;cid=1<br>
          Via: SIP/2.0/UDP <a href="http://192.168.1.216:5060"
            moz-do-not-send="true">192.168.1.216:5060</a>;<b>received=185.44.44.44</b>;branch=z9hG4bK59d0cba274f66fa62e82a5a7d383b461;rport=5060<br>
          <div><br>
          </div>
        </div>
        <div>Thanks in advance!<br>
        </div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
          <span class="gmail_signature_prefix">-- </span><br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr"><br>
              <div>
                <div>BR,</div>
                <div>Denys Pozniak<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></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>