<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 24/02/16 10:13, Alberto Sagredo
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADqf3zD7rA13b+YRU6rmuqEOtePArnP12YOKtX7vQbWYrxu0gA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Daniel
        <div><br>
        </div>
        <div>I think i got this solved :)</div>
      </div>
    </blockquote>
    <br>
    Great!<br>
    <br>
    Welcome, Daniel<br>
    <br>
    <blockquote
cite="mid:CADqf3zD7rA13b+YRU6rmuqEOtePArnP12YOKtX7vQbWYrxu0gA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>
          <p class=""><span class="">Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:LOCALIP;r2=on;lr=on;nat=yes"><sip:LOCALIP;r2=on;lr=on;nat=yes></a>.</span></p>
          <p class=""><span class="">Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:EXTERNALIP:25060;r2=on;lr=on;nat=yes"><sip:EXTERNALIP:25060;r2=on;lr=on;nat=yes></a>.</span></p>
          <p class="">Cheers!</p>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-02-24 9:42 GMT+01:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              my remark was related to the fact that you may have
              another record_route*() function executed in the
              configuration file for the same SIP request.<br>
              <br>
              It may be simpler also from routing/security point of view
              to use different ports for internal and external
              communications. E.g., port 5060 for communication with
              internal and port 5080 for external. The you can do
              advertising on the listen with external port:<br>
              <br>
              listen=udp:localip:5060<br>
              listen=udp:localip:5080 advertise externip:5080<br>
              <br>
              Then you just need to force the socket to be used before
              sending out to use the right port and record_route() will
              do the rest.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 24/02/16 09:22, Alberto Sagredo wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Daniel<br>
                      <div><br>
                      </div>
                      <div>I use it once, i have read about double
                        record routing and it seems in kamailio only
                        possible if two ips are configured?:</div>
                      <div><br>
                      </div>
                      <div>Im using Kamailio behind NAT with advertised
                        address and proxy to an external provider but i
                        have seen , with Asterisk behind, Record route
                        is wrong to Asterisk so i plan to change in
                        order to do not lose ACks .</div>
                      <div><br>
                      </div>
                      <div>Any idea to do it better ?</div>
                      <div><br>
                      </div>
                      <div>BR</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2016-02-24 8:56 GMT+01:00
                        Daniel-Constantin Mierla <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:miconda@gmail.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                            <br>
                            can you check in the config and see if there
                            is any other record_route*() function used?<br>
                            <br>
                            Cheers,<br>
                            Daniel
                            <div>
                              <div><br>
                                <br>
                                <br>
                                <div>On 23/02/16 18:43, Alberto Sagredo
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">Im fancing some issues
                                    due to kamailio behind nat and
                                    thought double record route could
                                    help me .
                                    <div><br>
                                    </div>
                                    <div>But enabling that :</div>
                                    <div><br>
                                    </div>
                                    <div>
                                      <p><span>modparam("rr",
                                          "enable_double_rr", 1)</span></p>
                                      <p>And later using<br>
                                      </p>
                                      <p><span> </span></p>
                                      <p><span>record_route_advertised_address("X.X.X.X:5060");</span></p>
                                      <p><span>is giving me this error:</span></p>
                                      <p><span> </span></p>
                                      <p><span> w_record_route_advertised_address():

                                          Double attempt to record-route</span></p>
                                      <p>Off course, only a single
                                        Record Route is present..</p>
                                      <p>What am i doing wrong?</p>
                                      <p>Using Kamailio 4.3.4</p>
                                      <p><span><br>
                                        </span></p>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
                              <span><font color="#888888"> </font></span></blockquote>
                            <span><font color="#888888"> <br>
                                <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, March 7-9, 2016 - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
                              </font></span></div>
                          <br>
_______________________________________________<br>
                          SIP Express Router (SER) and Kamailio
                          (OpenSER) - sr-users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:sr-users@lists.sip-router.org"
                            target="_blank">sr-users@lists.sip-router.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                            rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, March 7-9, 2016 - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, March 7-9, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>