[OpenSIPS-Users] Problem Contact URI
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Dec 31 15:44:38 CET 2010
Hi Lionel,
I do no think your fix_nated_register() works ok as I see that in DB the
"received" field is still empty :(
Have you added :
modparam("registrar", "received_avp", "$avp(i:42)")
as I indicated in the previous email ?
Regards,
Bogdan
Lionel Sicilia wrote:
>> Use only fix_nated_register() for REGISTER requests. After the change,
>> be sure you discard all bogus records from your user location (stop
>> opensips, purge "location" table, start opensips).
>>
>> Regards,
>> Bogdan
>>
>>
>>
>>> Regards,
>>>
>>>
>
>
> Test the setup, but I had no success, although fix_nated_register ()
> seems to work correctly, I see this in the amount of $avp(i:42),
> but in the "contact"table "location " The port is duplicate.
>
> What can be causing this problem?
>
>
>
> TABLE LOCATION
> --------------
>
> id username domain contact
> received path expires q
> 11 7020
> sip:7020 at 190.178.192.68:13262:13262;transport=UDP
> 28-dic-2010 11:14:48 -1
>
>
> callid cseq last_modified
> flags cflags user_agent socket methods
> 73a077f520f4410999ec7f964d4828fc 18512 28-dic-2010
> 11:09:48 0 0 n/a udp:192.168.2.21:5060
>
> LOG OPENSIPS
> --------------
>
> Dec 28 10:44:14 jerif opensips[1397]: DBG:registrar:build_contact:
> created Contact HF: Contact:
> <sip:7020 at 190.178.192.68:12344:12344;transport=UDP>;expires=181,
> <sip:7020 at 192.168.2.84:11675>;expires=200,
> <sip:7020 at 192.168.2.84:13100>;expires=220,
> <sip:7020 at 192.168.2.84:16838>;expires=263,
> <sip:7020 at 190.178.192.68:12534>;expires=300^M
>
>
> SET opensips.cfg
> ----------------
>
>
> loadmodule "nathelper.so"
> modparam("nathelper", "received_avp", "$avp(i:42)")
>
> ..............
> ..............
>
>
> if (is_method("REGISTER"))
> {
> fix_nated_register();
> xlog("...................RESULT FIX_NATED_REGISTER -> $avp(i:42)");
> - Ocultar texto citado -
>
> # authenticate the REGISTER requests (uncomment to enable auth)
> if (!www_authorize("", "subscriber"))
> {
> www_challenge("", "0");
> exit;
> }
>
> if (!db_check_to())
> {
> sl_send_reply("403","Forbidden auth ID");
> exit;
> }
>
> if (!save("location"))
> sl_reply_error();
> exit;
> }
> }
>
>
>
>
> Regards,
> --
>
>
--
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami, USA
www.voice-system.ro
More information about the Users
mailing list