Hi,
i have configuration of registrar module as:
modparam("registrar", "nat_flag", 20)
modparam("registrar", "use_domain", 0)
modparam("registrar", "desc_time_order", 1)
modparam("registrar", "append_branches", 0)
modparam("registrar", "max_expires", 3600)
This because i want to have only the most recent contact to be retrived on
location.
The problem is that the client with public ip (the 2. row) is every time
preferred to the behind nat one although the behind nat one is the last one
to make/update the registration.
I'd like to know in which way are ordered the records in location table, which
difference make the nat flag and if the choose is made on the last
updated/inserted record or the last that expire.
This is what is registered on the location table for user 777654321 :
*************************** 1. row ***************************
username: 777654321
domain:
contact: sip:777654321@192.168.30.200:5060
received: sip:193.45.98.211:15397
expires: 2006-03-24 13:46:58
q: -1.00
callid: FA900625953C490B80D1679605057052(a)mysip.domain.com
cseq: 21374
last_modified: 2006-03-24 12:46:58
flags: 1
user_agent: X-PRO build 1082
socket: 193.76.98.23_5060
*************************** 2. row ***************************
username: 777654321
domain:
contact: sip:777654321@193.45.35.76:5060
received: NULL
expires: 2006-03-24 13:22:22
q: -1.00
callid: dc626ada088ed5f38bd4d182b9cf3167(a)mysip.domain.com
cseq: 570534571
last_modified: 2006-03-24 12:22:22
flags: 0
user_agent: Patton SN4524 JS EUI MxSF v3.2.7.44 00A0BA01BB96
socket: 193.76.98.23_5060
*************************** 3. row ***************************
username: 777654321
domain:
contact: sip:777654321@193.24.87.95:5060
received: NULL
expires: 2006-03-24 13:20:04
q: -1.00
callid: 0192d72378dac66b000c579f6237bad6(a)mysip.domain.com
cseq: 586618969
last_modified: 2006-03-24 12:20:04
flags: 0
user_agent: Patton SN1400 MxSF v3.2.7.36 00302B005C98
socket: 193.76.98.23_5060
3 rows in set (0.01 sec)
**************************************************************
Thanks,
Bye,
Marcello