<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I added those lines and replaced fix_nated_contact() by fix_nated_register() and now the AOR is shown with the private IP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: 100<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: sip:100@192.168.1.108:39782;rinstance=3503c109fbf84e53 Q=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 3577<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid:: a23947760b134d2bM2IzODRhODkwM2M5NTM0MzUwMGM4ODY3NTgzYzFjMmE.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: eyeBeam release 1003l stamp 30937<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Received:: sip:204.9.239.67:39782<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_NEW<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:65.111.185.187:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 5951<br><br><br>:-(<br><br><br><br><div>
<div>&nbsp;</div></div><br><br><br><br>&gt; Date: Wed, 12 Nov 2008 14:37:58 +0100<br>&gt; From: klaus.mailinglists@pernau.at<br>&gt; To: fborot@hotmail.com<br>&gt; CC: users@lists.kamailio.org<br>&gt; Subject: Re: [Kamailio-Users] problem with fix_nated_register() function<br>&gt; <br>&gt; <br>&gt; <br>&gt; Fabian Borot schrieb:<br>&gt; &gt; thanks a lot Klaus, I changed it to fix_nated_contact(); and it is working.<br>&gt; &gt; I guess that that is the right function to use right?.<br>&gt; <br>&gt; No.<br>&gt; <br>&gt; You should handle REGISTER with fix_nated_register and set the <br>&gt; receive_avp parameter in nathelper and registrar module to the same value.<br>&gt; <br>&gt; e.g.:<br>&gt; <br>&gt; modparam("nathelper", "received_avp", "$avp(i:42)")<br>&gt; modparam("registrar", "received_avp", "$avp(i:42)")<br>&gt; <br>&gt; <br>&gt; For all other requests and messages the fix_nated_contact is ok.<br>&gt; <br>&gt; <br>&gt; regards<br>&gt; klaus<br>&gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;  &gt; Date: Wed, 12 Nov 2008 00:44:06 +0100<br>&gt; &gt;  &gt; From: klaus.mailinglists@pernau.at<br>&gt; &gt;  &gt; To: fborot@hotmail.com<br>&gt; &gt;  &gt; CC: users@lists.kamailio.org<br>&gt; &gt;  &gt; Subject: Re: [Kamailio-Users] problem with fix_nated_register() function<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt; Klaus Darilion wrote:<br>&gt; &gt;  &gt; &gt; obviously bad documentation :-(<br>&gt; &gt;  &gt; &gt;<br>&gt; &gt;  &gt; &gt; http://kamailio.org/docs/modules/1.4.x/nathelper.html#id2467678<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt; and<br>&gt; &gt;  &gt; http://kamailio.org/docs/modules/1.4.x/registrar.html#id2467816<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt; klaus<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt;<br>&gt; &gt;  &gt;<br>&gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Get 5 GB of storage with Windows Live Hotmail. Sign up today. <br>&gt; &gt; &lt;http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008&gt;<br><br /><hr />Get 5 GB of storage with Windows Live Hotmail. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008' target='_new'>Sign up today.</a></body>
</html>