<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Indeed, the ports are different, that's why adding received is
    important in this situation.<br>
    <br>
    While local ip and local port are in most of the cases also unique
    for devices behind a nat router, it is not 100% true, because there
    can be many layers of NATs, which can result in seeing same local
    ip/port for devices.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 14/03/16 13:06, 张顺通 wrote:<br>
    </div>
    <blockquote
cite="mid:CA+igrvwzxUSMvPKE9vzKe=3XZur_jdsn+3LQU1JbSCeW7Y1nTA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:14px">source IP  is same,
           But port is different。</span><br>
        <div><span style="font-size:14px">like INVITE
            <a class="moz-txt-link-freetext" href="sip:Linphone_nat_Ip:Linphone_nat_port;tcp">sip:Linphone_nat_Ip:Linphone_nat_port;tcp</a>;</span></div>
        <div><span style="font-size:14px"><br>
          </span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-03-14 18:26 GMT+08: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"> Adding received
              information to Path helps to identify properly the
              connection to be used. Because both devices are behind the
              same NAT, practically they show the same source IP when
              they send traffic to server.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 14/03/16 04:05, 张顺通 wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><span style="font-size:14px">KA_</span><span
                        style="font-size:14px">EDGE have two IP,external
                        public IP and internal IP.</span><br>
                      <div><span style="font-size:14px">I
                          add modparam("path", "use_received", 1)  and
                          replace add_path() to add_path_received() in
                          edge server.</span></div>
                      <div><span style="font-size:14px">add modparam("registrar",

                          "path_use_received", 1) in </span><span
                          style="font-size:14px">KA_</span><span
                          style="font-size:14px">REGISTER server.</span></div>
                      <div><span style="font-size:14px"><br>
                        </span></div>
                      <div><span style="font-size:14px">DB path
                          info <<a moz-do-not-send="true">sip:aD15fXXXXXXXXXXXXeEpfqRY=@</a><a
                            moz-do-not-send="true"
                            href="http://10.10.10.11" target="_blank">10.10.10.11</a>;lr;ob>

                          --> <sip:</span><span
                          style="font-size:14px">10.10.10.11</span><span
                          style="font-size:14px">;lr;received=<a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="sip:42.129.1.1:43640%3Btransport%3Dtcp">sip:42.129.1.1:43640%3Btransport%3Dtcp</a></a>></span></div>
                      <div><span style="font-size:14px"><br>
                        </span></div>
                      <div><span style="font-size:14px">This kind of
                          situation very little,It is not easy to
                          reappear.</span><br>
                      </div>
                      <div><span style="font-size:14px">Can you tell me
                          why this </span><span style="font-size:14px">situation
                          happen? and Why this change can solve the
                          problem?</span></div>
                      <div><br>
                      </div>
                      <div>Thanks for Your Time.<br>
                      </div>
                      <div><span style="font-size:14px"><br>
                        </span></div>
                      <div><span style="font-size:14px"><br>
                        </span></div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2016-03-09 22:37
                        GMT+08:00 Daniel Tryba <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:d.tryba@pocos.nl"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:d.tryba@pocos.nl">d.tryba@pocos.nl</a></a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex"><span>On Wed, Mar 09,
                            2016 at 10:05:11PM +0800, 张顺通 wrote:<br>
                            > Yes,Use Path in DB. like <<a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="sip:XXxXXXXXXXXXX/ogxZg=@">sip:XXxXXXXXXXXXX/ogxZg=@</a></a><a
                              moz-do-not-send="true"
                              href="http://10.10.232.29"
                              rel="noreferrer" target="_blank">10.10.232.29</a>;lr;ob><br>
                            > KA_REGISTER wile the path info in DB.<br>
                            <br>
                          </span>Should not be a problem if you use the
                          use_received options in<br>
                          <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules/path.html#idp135216"
                            rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/stable/modules/path.html#idp135216</a><br>
                          and<br>
                          <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.p.path_use_received"
                            rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.p.path_use_received</a><br>
                          <br>
                          (and actually add the source as received on
                          the kamailio edge server).<br>
                          <div>
                            <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>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <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>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
              <span class="">
                <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<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 World Conference, Berlin, May 18-20, 2016 - <a moz-do-not-send="true" href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
              </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">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 class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<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 World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>