[Kamailio-Users] problem with fix_nated_register() function

Fabian Borot fborot at hotmail.com
Wed Nov 12 15:55:16 CET 2008


klaus, I see this line in my config file:#modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)I left it like that because I thought that it is only for multi-domain, which I am  not using now.I see what you mean about the private and public IPs, thank you a lot man, you have been very helpful.I am having some issues with the RTP and rtpproxy but that will be in another post.RegardsFabian
 > Date: Wed, 12 Nov 2008 15:38:07 +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> > the AOR does not contain a domain at all!> > Fabian Borot schrieb:> > 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> >                        ^^^no domain, do you have set use_domain=1 in the > relevant modules?> > >                 Contact:: > > sip:100 at 192.168.1.108:39782;rinstance=3503c109fbf84e53 Q=> >               ^^^^^^^^> This is fine - it is exactly what the client sent and what the client > expects to see in coming INVITE requests as request URI> > >                         Expires:: 3577> >                         Callid:: > > a23947760b134d2bM2IzODRhODkwM2M5NTM0MzUwMGM4ODY3NTgzYzFjMmE.> >                         Cseq:: 2> >                         User-agent:: eyeBeam release 1003l stamp 30937> >                         Received:: sip:204.9.239.67:39782> >                                            ^^^^^^^^^^^^^^> Here you see the public IP:port. This is were Kamailio will send the > request.> > >                         State:: CS_NEW> >                         Flags:: 0> >                         Cflag:: 0> >                         Socket:: udp:65.111.185.187:5060> >                                       ^^^^^^^^^^^^^^^^> This is the interface on which Kamailio received the request> > Everything looks fine.> > regards> klaus> > > >                         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. Sign up today. > > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008>
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081112/a96b4a5a/attachment.htm 


More information about the Users mailing list