<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Save() function of the "registrar"
      module always saves Contact and can save real source to the
      "received" field of a location record.<br>
      lookup() function uses Contact to form R-URI and puts ip:port from
      the received field to the $du.<br>
      If $du is present t_relay() uses it to forward a request to a
      correct destination.<br>
      <br>
      <br>
    </div>
    <blockquote
cite="mid:CAN+NExGQpsaEryeyu+V5qt2QxMVexZQTY6t3JGqa=WAMWJoi7g@mail.gmail.com"
      type="cite">
      <div dir="ltr">@Jason
        <div><br>
        </div>
        <div>I'm not using any NAT protocol (STUN, ICE, ...) at client.
          I'm using the default Kamalio config file 3.3.5. If it is the
          NAT helping code in Kamalio, it means that Kamalio is using 3.
          IP from IP packet ?</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Apr 2, 2013 at 1:19 PM, Jason
          Penton <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jason.penton@smilecoms.com" target="_blank">jason.penton@smilecoms.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">There is probably some NAT helping code in
              your Kamailio config file. Either that or you are using
              one the NAT protocols, (STUN,ICE,etc).
              <div>
                <br>
              </div>
              <div>cheers</div>
              <div>Jason</div>
            </div>
            <div class="gmail_extra">
              <div>
                <div class="h5">
                  <br>
                  <br>
                  <div class="gmail_quote">On Tue, Apr 2, 2013 at 2:39
                    AM, Khoa Pham <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:onmyway133@gmail.com"
                        target="_blank">onmyway133@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">@Jason
                        <div><br>
                        </div>
                        <div>Thanks, but it strange. I only send 1
                          REGISTER to the server, with the Contact field
                          contains my local IP address. How can I still
                          receive incoming call ?</div>
                      </div>
                      <div class="gmail_extra">
                        <br>
                        <br>
                        <div class="gmail_quote">
                          <div>
                            <div>On Mon, Apr 1, 2013 at 8:10 PM, Jason
                              Penton <span dir="ltr">&lt;<a
                                  moz-do-not-send="true"
                                  href="mailto:jason.penton@smilecoms.com"
                                  target="_blank">jason.penton@smilecoms.com</a>&gt;</span>
                              wrote:<br>
                            </div>
                          </div>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div>
                              <div>
                                <p dir="ltr">2</p>
                                <p dir="ltr">--<br>
                                  This email has been sent using my
                                  phone. It may be brief, to the point
                                  or contain typos. <br>
                                  --</p>
                                <div class="gmail_quote">
                                  <div>
                                    <div>On 1 Apr 2013 14:57, "Khoa
                                      Pham" &lt;<a
                                        moz-do-not-send="true"
                                        href="mailto:onmyway133@gmail.com"
                                        target="_blank">onmyway133@gmail.com</a>&gt;
                                      wrote:<br type="attribution">
                                    </div>
                                  </div>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div>
                                      <div>
                                        <div dir="ltr">Hi, when client
                                          send REGISTER message to
                                          Kamalio. Kamailio will save
                                          that client's IP to database.&nbsp;
                                          <div>But what is this IP ? Is
                                            is 1,2 or 3 ?</div>
                                          <div>1. The IP from Via field</div>
                                          <div>2. The IP from Contact
                                            field</div>
                                          <div>3. The IP from the IP
                                            packet</div>
                                          <div><br>
                                          </div>
                                          <div>Many thanks<br
                                              clear="all">
                                            <div><br>
                                            </div>
                                            -- <br>
                                            <span>Khoa Pham</span><br>
                                            <span>HCMC University of
                                              Science</span><br>
                                            <span>Faculty of Information
                                              Technology</span><br>
                                          </div>
                                        </div>
                                        <br>
                                      </div>
                                    </div>
_______________________________________________<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"
                                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                              </div>
                            </div>
                            <pre>This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at <a moz-do-not-send="true" href="http://www.smilecoms.com/disclaimer" target="_blank">http://www.smilecoms.com/disclaimer</a>

</pre>
                            <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"
                                target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                              <br>
                            </div>
                          </blockquote>
                        </div>
                        <div><br>
                          <br clear="all">
                          <div><br>
                          </div>
                          -- <br>
                          <span>Khoa Pham</span><br>
                          <span>HCMC University of Science</span><br>
                          <span>Faculty of Information Technology</span><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"
                        target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">Jason Penton<br>
                  Senior Manager: Applications and Services<br>
                  Smile Communications<br>
                  Johannesburg, South Africa<br>
                  Phone: +27 83 283 7000<br>
                  <br>
                </font></span></div>
            <div class="HOEnZb">
              <div class="h5">
                <pre>This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at <a moz-do-not-send="true" href="http://www.smilecoms.com/disclaimer" target="_blank">http://www.smilecoms.com/disclaimer</a>

</pre>
              </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">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"
              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <span style="color:rgb(0,0,0)">Khoa Pham</span><br
          style="color:rgb(0,0,0)">
        <span style="color:rgb(0,0,0)">HCMC University of Science</span><br
          style="color:rgb(0,0,0)">
        <span style="color:rgb(0,0,0)">Faculty of Information Technology</span><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>