[Kamailio-Users] problem with fix_nated_register() function
Fabian Borot
fborot at hotmail.com
Wed Nov 12 14:46:26 CET 2008
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 at 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 at pernau.at
> To: fborot at hotmail.com
> CC: users at 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 at pernau.at
> > > To: fborot at hotmail.com
> > > CC: users at 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.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081112/95cca9ba/attachment.htm
More information about the Users
mailing list