<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>you may need msg_apply_changes() there, see the details from:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or">https://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 11.10.17 00:36, Marrold wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC-Lcd9iYo-vrzUJ37LU5+BW3Sy78Jerd1=1GXfiMz=njd+a9A@mail.gmail.com">
      <div dir="ltr"><font face="arial, helvetica, sans-serif">Hi All,<br>
          <br>
          I am wondering if the following is possible. For simplicity
          imagine two asterisk boxes and two kamailio proxies. Kamailio
          on the edge, asterisk in the 'core'</font>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">Kamailio
            <=> Asterisk    Asterisk <=> Kamailio</font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">A user may
            register to either kamailio proxy, and a call may originate
            from either Asterisk box where it will be sent to its <i>local
            </i>Kamailio proxy. From there I'd like Kamailio to forward
            the request to the AoR, following the same path the
            registration took if it registered to the other proxy, to
            avoid NAT issues.</font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">I think this
            requires a shared USRLOC table, and also for the proxy that
            handled the registration to insert itself in the path of the
            USRLOC table.</font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">The registrar
            module has the '<span
              style="background-color:rgb(252,255,252)"><font
                color="#000000">path_check_local' parameter which sounds
                relevant, ignoring the path if the first hop is local.</font></span></font></div>
        <div><font face="arial, helvetica, sans-serif"><span
              style="background-color:rgb(252,255,252)"><font
                color="#000000"><br>
              </font></span></font></div>
        <div><font face="arial, helvetica, sans-serif"><span
              style="background-color:rgb(252,255,252)"><font
                color="#000000">I've included </font></span></font><font
            face="arial, helvetica, sans-serif" color="#000000">add_path_received()
            in my REGISTRAR routing block, however I see 'Path: [not
            set]' in the USRLOC table.</font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000">Is
            it possible to force the insertion of the local proxy into
            the path field? </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000">One
            additional question, in the case of NAT keepalives, is it
            possible to only send these from the proxy the received the
            register request? </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000">Thanks
            in advance,</font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif" color="#000000">Matthew</font></div>
      </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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>