<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>the Contact address is not set by Kamailio, unless it is a NOTIFY
      of a presence server in Kamailio.</p>
    <p>Record-Route should be the advertised address. You have to grab
      the pcap or ngrep output for such a call for more analysis.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06.02.18 13:41, Wilkins, Steve
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:SN6PR0901MB233328FEEE0B7306D1A9E934A0FD0@SN6PR0901MB2333.namprd09.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Light";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsochpdefault, li.xmsochpdefault, div.xmsochpdefault
        {mso-style-name:x_msochpdefault;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.xemailstyle17
        {mso-style-name:x_emailstyle17;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello Samuel,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I do listen on - <o:p></o:p></p>
        <p class="MsoNormal">listen=udp:localIP:port advertise
          externalIP:port<o:p></o:p></p>
        <p class="MsoNormal">listen=tcp:localIP:port advertise
          externalIP:port<o:p></o:p></p>
        <p class="MsoNormal">However, it is the localIP that is being
          used in contact and record-route.  I do have Asterisk in the
          mix, could that be what is causing the IP to be local?<o:p></o:p></p>
        <p class="MsoNormal">Also, what is strange is that some
          providers are able to use the local IP.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thank you,<o:p></o:p></p>
        <p class="MsoNormal">-Steve<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><a name="_MailEndCompose"
            moz-do-not-send="true"><o:p> </o:p></a></p>
        <span style="mso-bookmark:_MailEndCompose"></span>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> sr-users
              [<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.kamailio.org">mailto:sr-users-bounces@lists.kamailio.org</a>]
              <b>On Behalf Of </b>Samuel F.<br>
              <b>Sent:</b> Monday, February 5, 2018 6:57 PM<br>
              <b>To:</b> Kamailio (SER) - Users Mailing List
              <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a><br>
              <b>Subject:</b> Re: [SR-Users] Contact and Record-Route
              are using Private IP Address- is this correct?<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black">I'm assuming you are
              interfacing with an external party, and then, yes, the
              external IP should be used for the RR header assuming that
              party should be able to route to that route.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black">Furthermore I assume
              you have multiple interfaces on your machine, in such case
              you need to set the listen/advertise param:<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black"><a
                href="https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen"
                moz-do-not-send="true">https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen</a><o:p></o:p></span></p>
        </div>
        <div style="margin-top:12.0pt;margin-bottom:12.0pt;min-width:
          424px"
id="LPBorder_GTaHR0cHM6Ly93d3cua2FtYWlsaW8ub3JnL3dpa2kvY29va2Jvb2tzLzUuMS54L2NvcmUjbGlzdGVu">
          <table class="MsoNormalTable" style="width:100.0%;border:solid
            #C8C8C8 1.0pt" cellspacing="4" cellpadding="0" width="100%"
            border="1">
            <tbody>
              <tr>
                <td style="width:100.0%;border:none;padding:9.0pt 27.0pt
                  9.0pt 9.0pt" valign="top" width="100%">
                  <div style="margin-right:6.0pt;margin-bottom:9.0pt"
                    id="LPTitle149164">
                    <p class="MsoNormal"><span
                        style="font-size:16.0pt;font-family:"Segoe
                        UI Light",sans-serif"><a
                          href="https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen"
                          target="_blank" moz-do-not-send="true"><span
                            style="color:#008299;text-decoration:none">cookbooks:5.1.x:core
                            [Kamailio SIP Server Wiki]</span></a><o:p></o:p></span></p>
                  </div>
                  <div
                    style="margin-right:6.0pt;margin-bottom:9.0pt;max-height:
                    100px;overflow:hidden" id="LPDescription956756">
                    <p class="MsoNormal"><span
                        style="font-size:10.5pt;font-family:"Segoe
                        UI",sans-serif;color:#666666">This is the
                        second section of the configuration file,
                        containing the directives to load modules and
                        set their parameters. It contains the directives
                        loadmodule and ...<o:p></o:p></span></p>
                  </div>
                  <div id="LPMetadata142351">
                    <p class="MsoNormal"><span
                        style="font-size:10.5pt;font-family:"Segoe
                        UI",sans-serif;color:#A6A6A6"><a
                          href="http://www.kamailio.org"
                          moz-do-not-send="true">www.kamailio.org</a><o:p></o:p></span></p>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black">Cheers,<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;color:black">Samuel<o:p></o:p></span></p>
        </div>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr align="center" size="4" width="98%">
        </div>
        <div id="divRplyFwdMsg">
          <p class="MsoNormal"><b><span style="color:black">From:</span></b><span
              style="color:black"> sr-users <<a
                href="mailto:sr-users-bounces@lists.kamailio.org"
                moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
              on behalf of Wilkins, Steve <<a
                href="mailto:swwilkins@mitre.org" moz-do-not-send="true">swwilkins@mitre.org</a>><br>
              <b>Sent:</b> Tuesday, February 6, 2018 00:32<br>
              <b>To:</b> Kamailio (SER) - Users Mailing List<br>
              <b>Subject:</b> [SR-Users] Contact and Record-Route are
              using Private IP Address- is this correct?</span>
            <o:p></o:p></p>
          <div>
            <p class="MsoNormal"> <o:p></o:p></p>
          </div>
        </div>
        <div>
          <div>
            <p class="xmsonormal">Hello All,<o:p></o:p></p>
            <p class="xmsonormal"> <o:p></o:p></p>
            <p class="xmsonormal">Contact and Record-Route are using
              Private IP Address - is this correct? I though the Public
              IP should be used.  I do not know what setting is causing
              this to happen.  Does anyone have any ideas?<o:p></o:p></p>
            <p class="xmsonormal"> <o:p></o:p></p>
            <p class="xmsonormal">Thank you,<o:p></o:p></p>
            <p class="xmsonormal">-Steve<o:p></o:p></p>
          </div>
        </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 - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>