[SR-Users] fix_nated_contact() on REGISTER

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 1 21:20:05 CEST 2010



On 6/1/10 9:07 PM, Alex Balashov wrote:
> No, it'll store the fixed one, in the proper contact column, not the 
> received column.  I do this all the time, even though it's not the 
> "proper" way.
should be the original one with the last version, afaik. There were 
issues with phones accepting calls which had a different uri than the 
address they set in contact of register.

So, the contact details were brocken in:
- contact - the address from header
- received - built from source ip and port
- socket - local socket where the register was received

Note that there are two functions, fix_nated_contact() and 
fix_nated_registrar().

Cheers,
Daniel
>
> On 06/01/2010 01:41 PM, Klaus Darilion wrote:
>
>> Hi!
>>
>> Does somebody know what happens when I call fix_nated_contact() and
>> save() on a REGISTER request?
>>
>> What will be stored and used as RURI? The original contact URI or the
>> fixed one?
>>
>> I would guess the original one, as message manipulations are not visible
>> when calling save() - true?
>>
>> regards
>> Klaus
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/




More information about the sr-users mailing list