<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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 Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* 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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I am attaching latest config along with kamailio log file and client trace.<o:p></o:p></p>
<p class="MsoNormal">Please let me know how I can get Kamailio to advertise public ip in record route.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I followed all the steps mentioned here - <a href="http://www.fredposner.com/1457/kamailio-behind-nat/">
http://www.fredposner.com/1457/kamailio-behind-nat/</a> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Pranathi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Pranathi Venkatayogi <br>
<b>Sent:</b> Wednesday, December 28, 2016 5:09 PM<br>
<b>To:</b> 'sr-users@lists.sip-router.org' <sr-users@lists.sip-router.org><br>
<b>Cc:</b> Mick McGrellis <MMcGrellis@cyracom.com>; 'miconda@gmail.com' <miconda@gmail.com><br>
<b>Subject:</b> RE: Kamailio behind NAT, ACK to private IP not advertised public IP.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I implemented full NAT logic as per the sample config. Still unable to resolve the issue.<o:p></o:p></p>
<p class="MsoNormal">How do I let Kamailio change record_route header to use public ip address?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please help!!!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">(attached are latest scripts)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Pranathi Venkatayogi <br>
<b>Sent:</b> Wednesday, December 28, 2016 12:39 PM<br>
<b>To:</b> 'sr-users@lists.sip-router.org' <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<b>Subject:</b> Kamailio behind NAT, ACK to private IP not advertised public IP.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">  I am encountering the same problem described in <a href="https://groups.google.com/forum/#!topic/2600hz-dev/-xvUZUrv4Y4">
google groups</a>. However I dint not find any resolution hence writing again.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  200 OK sent from the server has private Ip in its record route. As you see below, though the message is received on public IP (<span style="font-size:9.0pt;background:yellow;mso-highlight:yellow">63.149.103.72</span><span style="font-size:9.0pt">)
 , </span>the record route is set to private IP <span style="font-size:9.0pt">(<span style="background:red;mso-highlight:red">172.31.211.31</span>)</span><o:p></o:p></p>
<p class="MsoNormal">  I used listen with advertise of public IP, it did not work. Please find attached the config I am using.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:red">  How do I change it send public ip only when talking to external world.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">  Can someone point to me clear documentation how to configure Kamailio for NAT traversal.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>The following message is sent from Kamailio behind NAT to the public computer.<o:p></o:p></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2016-12-27 17:19:24.526875 [blink.exe 5652]: RECEIVED: Packet 123, +0:08:42.690309<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;background:yellow;mso-highlight:yellow">63.149.103.72</span><span style="font-size:9.0pt">:5061 -(SIP over TLS)-> 10.0.0.6:62912<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">SIP/2.0 200 OK<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Via: SIP/2.0/TLS 10.0.0.6:62912;rport=62912;received=50.175.10.190;branch=z9hG4bKPj2e381a96979945bd969989ffe9dca3a9;alias<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Record-Route: <<a href="sip:172.31.211.31:5061;transport=tls;lr;did=5.5e5">sip:<span style="background:red;mso-highlight:red">172.31.211.31</span>:5061;transport=tls;lr;did=5.5e5</a>><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Call-ID: eb8670eec4354acdb69fd26f5625b75c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">From: "cust1" <<a href="sip:cust1@translation.sms-test.cyracom.com">sip:cust1@translation.sms-test.cyracom.com</a>>;tag=2f25d2ae690747c48c874e0b415ca03c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">To: <<a href="sip:spanish@translation.sms-test.cyracom.com">sip:spanish@translation.sms-test.cyracom.com</a>>;tag=1c33ad41f6f44cae8ae8e060f30fe119<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">CSeq: 4665 INVITE<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Server: Blink 3.0.0 (Windows)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Contact: <<a href="sip:75329410@10.0.27.108:61381;transport=tls">sip:75329410@10.0.27.108:61381;transport=tls</a>><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Supported: 100rel, replaces, norefersub, gruu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Content-Type: application/sdp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Content-Length:   355<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">v=0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">o=- 3691844303 3691844304 IN IP4 10.0.27.108<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">s=Blink 3.0.0 (Windows)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">t=0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">m=message 2855 TCP/TLS/MSRP *<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">c=IN IP4 10.0.27.108<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">a=path:msrps://10.0.27.108:2855/261d3f47be25612cc77c;tcp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">a=accept-types:message/cpim text/* image/* application/im-iscomposing+xml<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">a=accept-wrapped-types:text/* image/* application/im-iscomposing+xml<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">a=setup:active<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b>The following is the ACK sent by public computer in reply to the above message. Note this message never reaches the Kamailio server as it is sent to private IP.<o:p></o:p></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2016-12-27 17:19:24.526875 [blink.exe 5652]: SENDING: Packet 124, +0:08:42.690309<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">10.0.0.6:62944 -(SIP over TLS)->
<span style="background:red;mso-highlight:red">172.31.211.31</span>:5061<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">ACK <a href="sip:75329410@10.0.27.108:61381;transport=tls">
sip:75329410@10.0.27.108:61381;transport=tls</a> SIP/2.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Via: SIP/2.0/TLS 10.0.0.6:62944;rport;branch=z9hG4bKPj7df757862e6546beba18a646cb965ba2;alias<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Max-Forwards: 70<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">From: "cust1" <<a href="sip:cust1@translation.sms-test.cyracom.com">sip:cust1@translation.sms-test.cyracom.com</a>>;tag=2f25d2ae690747c48c874e0b415ca03c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">To: <<a href="sip:spanish@translation.sms-test.cyracom.com">sip:spanish@translation.sms-test.cyracom.com</a>>;tag=1c33ad41f6f44cae8ae8e060f30fe119<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Call-ID: eb8670eec4354acdb69fd26f5625b75c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">CSeq: 4665 ACK<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Route: <<a href="sip:172.31.211.31:5061;transport=tls;lr;did=5.5e5">sip:172.31.211.31:5061;transport=tls;lr;did=5.5e5</a>><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">User-Agent: Blink 3.0.0 (Windows)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Content-Length:  0<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><b>Pranathi Venkatayogi<o:p></o:p></b></p>
<p class="MsoNormal"><i>System Developer II<o:p></o:p></i></p>
<p class="MsoNormal">(520) 745-9447 x4466<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.cyracom.com/"><span style="color:blue">www.cyracom.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Join us:   <a href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
<span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" id="Picture_x0020_22" src="cid:image006.png@01D26146.25308EF0" alt="cid:image001.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="https://twitter.com/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" id="Picture_x0020_23" src="cid:image007.png@01D26146.25308EF0" alt="cid:image002.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.linkedin.com/company/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" id="Picture_x0020_24" src="cid:image008.png@01D26146.25308EF0" alt="cid:image003.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.cyracom.com/blog/"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" id="Picture_x0020_25" src="cid:image009.png@01D26146.25308EF0" alt="cid:image004.gif@01D1C9C9.C4E8B6D0"></span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6"><img border="0" width="200" height="30" id="Picture_x0020_26" src="cid:image010.png@01D26146.25308EF0" alt="cid:image005.png@01D1C9C9.C4E8B6D0"></span><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6">DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure
 by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan
 this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom,
 LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>