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