<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
I think that if you want someone to review this you would have to provide a:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
- Topology</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
- Configuration</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
- PCAP from the Kamailio</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
// Samuel</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Wilkins, Steve <swwilkins@mitre.org><br>
<b>Sent:</b> Tuesday, February 6, 2018 13:41<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Segoe UI Light"}
@font-face
        {font-family:"Segoe UI"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xmsochpdefault, li.x_xmsochpdefault, div.x_xmsochpdefault
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_xemailstyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.x_EmailStyle23
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hello Samuel,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I do listen on - </p>
<p class="x_MsoNormal">listen=udp:localIP:port advertise externalIP:port</p>
<p class="x_MsoNormal">listen=tcp:localIP:port advertise externalIP:port</p>
<p class="x_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?</p>
<p class="x_MsoNormal">Also, what is strange is that some providers are able to use the local IP.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you,</p>
<p class="x_MsoNormal">-Steve</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><a name="x__MailEndCompose"> </a></p>
<span style=""></span>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> sr-users [mailto:sr-users-bounces@lists.kamailio.org]
<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 <sr-users@lists.kamailio.org><br>
<b>Subject:</b> Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div>
<p class="x_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.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_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:</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2F5.1.x%2Fcore%23listen&data=02%7C01%7C%7Cbd2c79e3f7e34393b21c08d56d5f13d9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636535177473458761&sdata=wCH9%2FcGYlML86nnYF%2FgoSUImdoo5eB3afhQIFcqGwSw%3D&reserved=0">https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen</a></span></p>
</div>
<div id="LPBorder_GTaHR0cHM6Ly93d3cua2FtYWlsaW8ub3JnL3dpa2kvY29va2Jvb2tzLzUuMS54L2NvcmUjbGlzdGVu" style="margin-top:12.0pt; margin-bottom:12.0pt; min-width:424px">
<table class="x_MsoNormalTable" border="1" cellspacing="4" cellpadding="0" width="100%" style="width:100.0%; border:solid #C8C8C8 1.0pt">
<tbody>
<tr>
<td width="100%" valign="top" style="width:100.0%; border:none; padding:9.0pt 27.0pt 9.0pt 9.0pt">
<div id="LPTitle149164" style="margin-right:6.0pt; margin-bottom:9.0pt">
<p class="x_MsoNormal"><span style="font-size:16.0pt; font-family:"Segoe UI Light",sans-serif"><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2F5.1.x%2Fcore%23listen&data=02%7C01%7C%7Cbd2c79e3f7e34393b21c08d56d5f13d9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636535177473458761&sdata=wCH9%2FcGYlML86nnYF%2FgoSUImdoo5eB3afhQIFcqGwSw%3D&reserved=0" target="_blank"><span style="color:#008299; text-decoration:none">cookbooks:5.1.x:core
 [Kamailio SIP Server Wiki]</span></a></span></p>
</div>
<div id="LPDescription956756" style="margin-right:6.0pt; margin-bottom:9.0pt; max-height:100px; overflow:hidden">
<p class="x_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 ...</span></p>
</div>
<div id="LPMetadata142351">
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Segoe UI",sans-serif; color:#A6A6A6"><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kamailio.org&data=02%7C01%7C%7Cbd2c79e3f7e34393b21c08d56d5f13d9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636535177473458761&sdata=uWmfTZOc2niEuxnLMOb5hzeigKfqd54zHzmNrONls1g%3D&reserved=0">www.kamailio.org</a></span></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Cheers,</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Samuel</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="4" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org">sr-users-bounces@lists.kamailio.org</a>> on behalf of Wilkins, Steve <<a href="mailto:swwilkins@mitre.org">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>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal">Hello All,</p>
<p class="x_xmsonormal"> </p>
<p class="x_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?</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">Thank you,</p>
<p class="x_xmsonormal">-Steve</p>
</div>
</div>
</div>
</div>
</body>
</html>