I added those lines and replaced fix_nated_contact() by fix_nated_register() and now the AOR is shown with the private IP
        AOR:: 100
                Contact:: sip:100@192.168.1.108:39782;rinstance=3503c109fbf84e53 Q=
                        Expires:: 3577
                        Callid:: a23947760b134d2bM2IzODRhODkwM2M5NTM0MzUwMGM4ODY3NTgzYzFjMmE.
                        Cseq:: 2
                        User-agent:: eyeBeam release 1003l stamp 30937
                        Received:: sip:204.9.239.67:39782
                        State:: CS_NEW
                        Flags:: 0
                        Cflag:: 0
                        Socket:: udp:65.111.185.187:5060
                        Methods:: 5951


:-(



 




> Date: Wed, 12 Nov 2008 14:37:58 +0100
> From: klaus.mailinglists@pernau.at
> To: fborot@hotmail.com
> CC: users@lists.kamailio.org
> Subject: Re: [Kamailio-Users] problem with fix_nated_register() function
>
>
>
> Fabian Borot schrieb:
> > thanks a lot Klaus, I changed it to fix_nated_contact(); and it is working.
> > I guess that that is the right function to use right?.
>
> No.
>
> You should handle REGISTER with fix_nated_register and set the
> receive_avp parameter in nathelper and registrar module to the same value.
>
> e.g.:
>
> modparam("nathelper", "received_avp", "$avp(i:42)")
> modparam("registrar", "received_avp", "$avp(i:42)")
>
>
> For all other requests and messages the fix_nated_contact is ok.
>
>
> regards
> klaus
>
> >
> >
> >
> >
> > > Date: Wed, 12 Nov 2008 00:44:06 +0100
> > > From: klaus.mailinglists@pernau.at
> > > To: fborot@hotmail.com
> > > CC: users@lists.kamailio.org
> > > Subject: Re: [Kamailio-Users] problem with fix_nated_register() function
> > >
> > > Klaus Darilion wrote:
> > > > obviously bad documentation :-(
> > > >
> > > > http://kamailio.org/docs/modules/1.4.x/nathelper.html#id2467678
> > >
> > > and
> > > http://kamailio.org/docs/modules/1.4.x/registrar.html#id2467816
> > >
> > > klaus
> > >
> > >
> > >
> > >
> >
> > ------------------------------------------------------------------------
> > Get 5 GB of storage with Windows Live Hotmail. Sign up today.
> > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008>


Get 5 GB of storage with Windows Live Hotmail. Sign up today.