<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(51, 51, 51); font-size: 14px; font-family: 'Proxima Nova', sans-serif;"><div><div>I realize this last email has no useful information, so let me elaborate.</div><div><br></div><div>I have a Kamailio server on AWS with an internal IP of 10.20.30.40 and it has an external elastic IP of 55.66.77.88.</div><div><br></div><div>When a SIP client subscribes it sends the initial subscription to user@realm (where realm resolves to 55.66.77.88) , then it gets a notify with a new address <sip:10.20.30.40:5060;transport=udp> . The client attempts to refresh the subscription, but we are now sending the subscribes to this new contact which will time out. 300 seconds later, we subscribe again to user@realm and contacts show up.</div><div><br></div><div>Other stuff like rtp, inbound/outbound calling all work properly.</div><div><br></div><div><br></div><div><div id="MAC_OUTLOOK_SIGNATURE"><div style="color: rgb(0, 0, 0); font-family: 'Clear Sans', sans-serif; font-size: 14px;"><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Clear Sans"><span class="Apple-style-span" style="font-size: 14px;">Pramod Venugopal</span></font></font></div><div><font class="Apple-style-span" color="#000000" style="color: rgb(0, 0, 0); font-family: 'Clear Sans', sans-serif; font-size: 14px;"><font class="Apple-style-span" face="Clear Sans">pramod@dvnull.org</font></font></div><div><br></div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:12pt; 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> sr-users on behalf of Pramod Venugopal<br><span style="font-weight:bold">Reply-To: </span> "Kamailio (SER) - Users Mailing List"<br><span style="font-weight:bold">Date: </span> Thursday, August 20, 2015 at 10:38 PM<br><span style="font-weight:bold">To: </span> "Kamailio (SER) - Users Mailing List"<br><span style="font-weight:bold">Subject: </span> [SR-Users] Presence and NAT<br></div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(51, 51, 51); font-size: 14px; font-family: 'Proxima Nova', sans-serif;"><div>Hello everyone,</div><div><br></div><div>I have a Kamailio 4.2 system on Amazon AWS. When subscribing to presence the contact is sent out with the internal IP rather than the external public IP. The subscribes are being sent to it with the external hostname ( which resolves to the external IP ).</div><div><br></div><div>Where would I be able to change the IP sent in the Contact header ? </div><div><br></div><div><div><div id=""><p style="margin: 0px; font-size: 16px; font-family: 'Source Sans Pro';"><b>Pramod Venugopal</b></p><p style="margin: 0px; font-family: 'Source Sans Pro';"><a href="mailto:pramod@perseus-tech.com">pramod@perseus-tech.com</a></p></div></div></div></div></div>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</span></body></html>