[Kamailio-Users] SER config file adaptation to Kamailio ?

Samuel Muller sml at 720.fr
Tue Nov 4 12:47:56 CET 2008


Hi Klaus,

thanks for your answer - fix_nat_register() works fine, but ...
I forget these two params, yep :

modparam("nathelper", "received_avp", "$avp(i:42)")
modparam("registrar", "received_avp", "$avp(i:42)")

...

if (nat_uac_test("19"))
{
        if (method == "REGISTER")
        {
                xlog("L_INFO","-> fix nat register");
                fix_nated_register();
        }
        else
        {
                xlog("L_INFO","-> fix nat contact");
                fix_nated_contact();
        }
        xlog("L_INFO","-> NAT involved, set the NAT flag");
        setflag(4);             # flag nat
        $avp(i:803) = 1;        # avp uac_nat
}

And when I'm looking the mySQL location table, now it has the received
params with ip:port.
Now, I've to do more tests to be sure about NAT config on my customers
routers.

Many thanks !

.Sam.



On Tue, Nov 4, 2008 at 11:08 AM, Klaus Darilion <
klaus.mailinglists at pernau.at> wrote:

> looks like you do not perform NAT traversal for REGISTER request.
> do you call fix_nated_register()?
> take a look at the location table. The entries should haev the "receive"
> column filled with the real source address information.
>
> regards
> klaus
>
> Samuel Muller schrieb:
>
>> Hello all,
>>
>> I tried during one week to adapt my old SER configuration file (ser.cfg,
>> for SER 2.0.0),
>> who works really great, to Kamailio v1.4.2.
>>
>> I used to change all the stuff needed (many functions, onsend route, ...
>> disappeared or was replaced, ...).
>> That's ok, concepts are the same - registration are ok, NAT (seems to)
>> works with rtpproxy,
>> and I'm using radius server (Radiator). MySQL is only here to store
>> locations, domains,
>> and trusted stuff like gateways. Everything looks fine (load kamalio : no
>> pbm, REGISTER, OPTIONS methods and SIP ping ok, ...)
>>
>> Right now, RTP does not work, and no SIP phone (linksys spa9xx, thomson
>> st2030, ...) can't call - there's no ringing, even if all the sip phones are
>> registered and known by OpenSER ...
>> It seems OpenSER can't send the SIP requests to the callee ???
>>
>> Did anyone had the same problem and resolved it ?
>> Or, eventually anyone does have some config sample config file (as you can
>> have in SER examples stuff) ?
>>
>> I would like to let here a debug log of a call from a linksys spa942 to a
>> sjphone but it's a bit enormous (debug log + config file) ...
>> so i let it in attached file.
>>
>> the scenario is :
>> 0123451011 (sjphone) calls 0123451012 (linksys spa9xx)
>> the 2 UACs are on the same LAN, through the same router, with the same
>> realm.
>> there're registered and are stored into the location table in mySQL.
>>
>> but the problem is present in all the case we can have (different realms,
>> different WAN connections, different SIP UACs ...)
>>
>> Thanks in advance !
>>
>> --
>> Samuel MULLER
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081104/adb590c8/attachment.htm 


More information about the Users mailing list