[Kamailio-Users] problem with fix_nated_register() function

Klaus Darilion klaus.mailinglists at pernau.at
Wed Nov 12 14:37:58 CET 2008



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>




More information about the Users mailing list