<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap:break-word; color:rgb(0,0,0)">
<div style="font-family:Calibri,sans-serif">You could try running the following command from the OpenSIPS server:</div>
<div>
<pre style="margin-top:0px; padding:5px; border:0px; overflow:auto; width:auto; max-height:600px; word-wrap:normal; color:rgb(17,17,17)"><code style="margin:0px; padding:0px; border:0px; white-space:inherit"><font face="Calibri">curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' </font></code></pre>
<pre style="margin-top:0px; padding:5px; border:0px; overflow:auto; width:auto; max-height:600px; word-wrap:normal; color:rgb(17,17,17)"><code style="margin:0px; padding:0px; border:0px; white-space:inherit"><font face="Calibri">See if its going out with the proper address. More than likely the NAT statement on the router is not setup properly for Reverse NAT Policy.</font></code></pre>
<pre style="margin-top:0px; padding:5px; border:0px; overflow:auto; width:auto; max-height:600px; word-wrap:normal; color:rgb(17,17,17)"><code style="margin:0px; padding:0px; border:0px; white-space:inherit"><font face="Calibri"><br></font></code></pre>
<pre style="margin-top:0px; padding:5px; border:0px; overflow:auto; width:auto; max-height:600px; word-wrap:normal; color:rgb(17,17,17)"><code style="margin:0px; padding:0px; border:0px; white-space:inherit"><font face="Calibri">Gordon</font></code></pre>
<pre style="margin-top:0px; padding:5px; border:0px; overflow:auto; width:auto; max-height:600px; word-wrap:normal; color:rgb(17,17,17)"><code style="margin:0px; padding:0px; border:0px; white-space:inherit"><font face="Calibri"><br></font></code></pre>
</div>
<div style="font-size:14px; font-family:Calibri,sans-serif"><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-size:14px; font-family:Calibri,sans-serif">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span><Newlin>, Ben <<a href="mailto:Ben.Newlin@inin.com">Ben.Newlin@inin.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, April 9, 2015 at 9:39 AM<br>
<span style="font-weight:bold">To: </span>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [OpenSIPS-Users] URGENT: contact header changed between opensips and client<br>
</div>
<div><br>
</div>
<div><style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:#44546A}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
<div lang="EN-US">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)">Something in between is manipulating the addressing in the SIP message. You said that ALG was disabled in the router, but either that is incorrect or there
is some other piece of equipment changing the message.</span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)">This is clear because the contact is not the only header that is changed. The ‘received’ parameter of the Via address was also changed from the public address
of the UA to the private address. Only an entity within the private network could know that address, so it is almost certainly the router doing it.</span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)">Ben Newlin</span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(68,84,106)"> </span></p>
<p class="MsoNormal"><b><span style="font-size:10pt; font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt; font-family:Tahoma,sans-serif">
<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>]
<b>On Behalf Of </b>Satish Patel<br>
<b>Sent:</b> Thursday, April 09, 2015 10:13 AM<br>
<b>To:</b> OpenSIPS users mailling list<br>
<b>Subject:</b> Re: [OpenSIPS-Users] URGENT: contact header changed between opensips and client</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Any thought guys? Why contact address change in transit? is it normal?</p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On Wed, Apr 8, 2015 at 12:12 PM, Satish Patel <<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>> wrote:</p>
<div>
<p class="MsoNormal">Very interesting thing going on between opensips and my client [UA]</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Opensips sending following contact header to Client but on client side i check it received different contact header, who is changing it?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">[UA]-----[Opensips]------[FS]</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">UA - 173.xx.xx.xx.215</p>
</div>
<div>
<p class="MsoNormal">Opensips - 182.xx.xx.164:5060</p>
</div>
<div>
<p class="MsoNormal">FS - 182.xx.xx.162:5061</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">My UA behind the NAT and I have ALG disabled on router. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">* [Opensips] sending following packet SDP OK 200 to [UA]</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">2015/04/08 07:42:22.820354 182.xx.xx.164:5060 -> 173.xx.xx.215:49152<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 173.xx.xx.215:49152;received=173.xx.xx.215;rport=49152;branch=z9hG4bKPjHB6245E6-SpIsEUs.kPIxxNAFMM0HTDo<br>
Record-Route: <<a href="sip:182.xx.xx.164;lr;ftag=OdSDiepaL9YssVLqOv.3C82QrrsrrdUV;did=3fd.556edf93">sip:182.xx.xx.164;lr;ftag=OdSDiepaL9YssVLqOv.3C82QrrsrrdUV;did=3fd.556edf93</a>><br>
CSeq: 722 INVITE<br>
Contact: <<a href="sip:1646327XXXX@182.xx.xx.162:5061;transport=udp">sip:1646327XXXX@182.xx.xx.162:5061;transport=udp</a>></span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">* [UA] Received following packet, look at Contact: it changed here. 162 to 164. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">U 182.xx.xx.164:5060 -> </span><a href="http://192.168.1.9:60895/" target="_blank"><span style="font-size:9.5pt">192.168.1.9:60895</span></a><span style="font-size:9.5pt"><br>
IP/2.0 200 OK.<br>
Via: SIP/2.0/UDP 173.xx.xx.215:49152;received=192.168.1.9;rport=49152;branch=z9hG4bKPjHB6245E6-SpIsEUs.kPIxxNAFMM0HTDo.<br>
Record-Route: <<a href="sip:182.xx.xx.164:5060;lr;ftag=OdSDiepaL9YssVLqOv.3C82QrrsrrdUV;did=3fd.556edf93">sip:182.xx.xx.164:5060;lr;ftag=OdSDiepaL9YssVLqOv.3C82QrrsrrdUV;did=3fd.556edf93</a>>.<br>
CSeq: 722 INVITE.<br>
Contact: <<a href="sip:1646327XXXX@182.xx.xx.164:5061;transport=udp">sip:1646327XXXX@182.xx.xx.164:5061;transport=udp</a>>.</span></p>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</span>Think before you Print. This e-mail may contain confidential and privileged material for the sole use of the intended recipient. 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 by reply e-mail and delete all copies of this message.
</body>
</html>