<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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 left it like that because I thought that it is only for multi-domain, which I am not using now.<br><br>I see what you mean about the private and public IPs, thank you a lot man, you have been very helpful.<br><br>I am having some issues with the RTP and rtpproxy but that will be in another post.<br><br>Regards<br><br>Fabian<br><br><div>
<div> </div></div><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() 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>> > > > 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>> > Get 5 GB of storage with Windows Live Hotmail. Sign up today. <br>> > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008><br><br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live <a href='http://clk.atdmt.com/MRT/go/119462413/direct/01/' target='_new'>Click here</a></body>
</html>