<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I'll definitely will once the basic stuff is ready.<br>txs a bunch<br><br>fabian<br><br><div>
<div> </div></div><br><br><br><br>> Date: Wed, 12 Nov 2008 17:15:24 +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>> > klaus, I see this line in my config file:<br>> > <br>> > #modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)<br>> <br>> I would activate the use_domain feature. then you have no problems when <br>> adding multiple domains later.<br>> <br>> klaus<br>> <br>> > <br>> > I left it like that because I thought that it is only for multi-domain, <br>> > which I am not using now.<br>> > <br>> > I see what you mean about the private and public IPs, thank you a lot <br>> > man, you have been very helpful.<br>> > <br>> > I am having some issues with the RTP and rtpproxy but that will be in <br>> > another post.<br>> > <br>> > Regards<br>> > <br>> > Fabian<br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > > Date: Wed, 12 Nov 2008 15:38:07 +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>> > > the AOR does not contain a domain at all!<br>> > ><br>> > > Fabian Borot schrieb:<br>> > > > I added those lines and replaced fix_nated_contact() by<br>> > > > fix_nated_register() and now the AOR is shown with the private IP<br>> > > > AOR:: 100<br>> > ><br>> > > ^^^no domain, do you have set use_domain=1 in the<br>> > > relevant modules?<br>> > ><br>> > > > Contact::<br>> > > > sip:100@192.168.1.108:39782;rinstance=3503c109fbf84e53 Q=<br>> > ><br>> > > ^^^^^^^^<br>> > > This is fine - it is exactly what the client sent and what the client<br>> > > expects to see in coming INVITE requests as request URI<br>> > ><br>> > > > Expires:: 3577<br>> > > > Callid::<br>> > > > a23947760b134d2bM2IzODRhODkwM2M5NTM0MzUwMGM4ODY3NTgzYzFjMmE.<br>> > > > Cseq:: 2<br>> > > > User-agent:: eyeBeam release 1003l stamp 30937<br>> > > > Received:: sip:204.9.239.67:39782<br>> > ><br>> > > ^^^^^^^^^^^^^^<br>> > > Here you see the public IP:port. This is were Kamailio will send the<br>> > > request.<br>> > ><br>> > > > State:: CS_NEW<br>> > > > Flags:: 0<br>> > > > Cflag:: 0<br>> > > > Socket:: udp:65.111.185.187:5060<br>> > ><br>> > > ^^^^^^^^^^^^^^^^<br>> > > This is the interface on which Kamailio received the request<br>> > ><br>> > > Everything looks fine.<br>> > ><br>> > > regards<br>> > > klaus<br>> > ><br>> > ><br>> > > > Methods:: 5951<br>> > > ><br>> > > ><br>> > > > :-(<br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > ><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() <br>> > function<br>> > > > ><br>> > > > ><br>> > > > ><br>> > > > > Fabian Borot schrieb:<br>> > > > > > thanks a lot Klaus, I changed it to fix_nated_contact(); and it is<br>> > > > 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<br>> > > > 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()<br>> > > > 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>> > > > <br>> > ------------------------------------------------------------------------<br>> > > > > > Get 5 GB of storage with Windows Live Hotmail. Sign up today.<br>> > > > > ><br>> > > > <br>> > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008><br>> > > ><br>> > > > <br>> > ------------------------------------------------------------------------<br>> > > > Get 5 GB of storage with Windows Live Hotmail. Sign up today.<br>> > > > <br>> > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008><br>> > <br>> > ------------------------------------------------------------------------<br>> > Stay up to date on your PC, the Web, and your mobile phone with Windows <br>> > Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/><br><br /><hr />Color coding for safety: Windows Live Hotmail alerts you to suspicious email. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008' target='_new'>Sign up today.</a></body>
</html>