<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>This would not work if I dont have access to the proxy that is
      advertising a private address in the record-route header, thanks
      for the tip though.<br>
      <br>
      <br>
    </tt><br>
    <div class="moz-cite-prefix">On 03/05/18 15:26, Amar Tinawi wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGjMUpiFFGP7wq39+S8N44s7jsjH9JRcxw4CvCo9MMpRsDLCLw@mail.gmail.com">
      <div dir="auto">You may introduce advertise command  in the
        configuration files when defining the interfaces
        <div dir="auto"><br>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Like this way :</div>
          <div dir="auto">listen=private ip  advertise public ip</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, May 3, 2018, 4:52 PM Asgaroth <<a
            href="mailto:00asgaroth00@gmail.com" moz-do-not-send="true">00asgaroth00@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
          <br>
          I've come accros a scenario where a proxy is sitting on a
          private <br>
          address range and inserts a record-route specifying the the
          private address.<br>
          <br>
          This causes issues whereby the BYE to an INVITE attempts to
          relay to the <br>
          private address defined in record-route.<br>
          <br>
          I was wondering, if we were inject a received and rport
          parameter into <br>
          the record-route header of the original invite, whould
          kamailio relay <br>
          the response (BYE) to the receive/rport destination instead of
          the uri <br>
          defined in the record-route header.<br>
          <br>
          As an example, initial invite comes in with a record-route as
          follows:<br>
          <br>
          Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:172.17.0.2:5062;lr;ftag=b4551d29"><sip:172.17.0.2:5062;lr;ftag=b4551d29></a><br>
          <br>
          If we injected received and rport as follows:<br>
          <br>
          Record-Route: <br>
<a class="moz-txt-link-rfc2396E" href="sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212"><sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212></a><br>
          <br>
          and relayed the message to the B2B.<br>
          <br>
          Then, I assume, when the B2B creates its BYE message, the
          Route header <br>
          should look like this:<br>
          <br>
          Route: <br>
<a class="moz-txt-link-rfc2396E" href="sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212"><sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212></a><br>
          <br>
          Once this hits the kamailio instance to relay to the last
          route header <br>
          as mentioned above, would it set $du to received:rport like it
          does with <br>
          Via headers?<br>
          <br>
          Thanks<br>
          <br>
          _______________________________________________<br>
          Kamailio (SER) - Users Mailing List<br>
          <a href="mailto:sr-users@lists.kamailio.org" target="_blank"
            rel="noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>