We're having an issue with userloc, registrar, and entries being removed from the store.<br>
<br>
Some devices, if behind home consumer routers, can not keep the nat
pinhole open long enough to actually receive calls if it's a very long
duration (say, 3600 seconds). So, we try to enforce by the following:<br>
<br>
modparam("usrloc", "db_mode", 2)<br>
modparam("usrloc", "db_url",<br>
"dburl_here")<br>
modparam("registrar", "default_expires", 30)<br>
modparam("registrar", "min_expires", 15)<br>
modparam("registrar", "max_expires", 45)<br>
<br>
And the register message:<br>
<br>
U 2009/04/16 16:55:13.922594 <a href="http://1.2.3.4:1076">1.2.3.4:1076</a> -> <a href="http://4.3.2.1:5060">4.3.2.1:5060</a><br>
REGISTER sip:4.3.2.1 SIP/2.0.<br>
Via: SIP/2.0/UDP 1.2.3.4:1085;branch=z9hG4bK-12b688e4;rport.<br>
From: "Extension" <<a href="mailto:sip%3Ausername@4.3.2.1">sip:username@4.3.2.1</a>>;tag=91682ba296592d12o0.<br>
To: "Extension" <<a href="mailto:sip%3Ausername@4.3.2.1">sip:username@4.3.2.1</a>>.<br>
Call-ID: <a href="mailto:f2edcb48-8f3ca203@10.0.4.13">f2edcb48-8f3ca203@10.0.4.13</a>.<br>
CSeq: 50140 REGISTER.<br>
Max-Forwards: 70.<br>
Contact: "Extension" <<a href="http://sip:username@1.2.3.4:1085">sip:username@1.2.3.4:1085</a>>;expires=3600.<br>
User-Agent: Linksys/SPA941-5.1.8.<br>
Content-Length: 0.<br>
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.<br>
Supported: replaces.<br>
.<br>
<br>
U 2009/04/16 16:55:13.922777 <a href="http://4.3.2.1:5060">4.3.2.1:5060</a> -> <a href="http://1.2.3.4:1076">1.2.3.4:1076</a><br>
SIP/2.0 200 OK.<br>
Via: SIP/2.0/UDP 1.2.3.4:1085;branch=z9hG4bK-12b688e4;rport=1076.<br>
From: "Extension" <<a href="mailto:sip%3Ausername@4.3.2.1">sip:username@4.3.2.1</a>>;tag=91682ba296592d12o0.<br>
To: "Extension" <<a href="mailto:sip%3Ausername@4.3.2.1">sip:username@4.3.2.1</a>>;tag=d956cb2540203ca43d36f1e0fd077845.d21c.<br>
Call-ID: <a href="mailto:f2edcb48-8f3ca203@10.0.4.13">f2edcb48-8f3ca203@10.0.4.13</a>.<br>
CSeq: 50140 REGISTER.<br>
Contact: <<a href="http://sip:username@1.2.3.4:1076">sip:username@1.2.3.4:1076</a>>;expires=45;received="sip:<a href="http://1.2.3.4:1076">1.2.3.4:1076</a>".<br>
Server: OSips SIP (1.4.5).<br>
Content-Length: 0.<br>
<br>
<br>
Opensips removes the contact from the database after the replied timer,
which is 45 seconds -- however, the phone doesn't register again for
3600 seconds.<br>
<br>
We know that other technologies will simply store the entries in a
database as stale, but lookups for that contact will work arbitrarily
for an indefinite amount of time. I would like to limit the amount of
contacts for each user to just one (we don't support multiple contacts
or presence), but that as well in the issues seem to cause phones to
deregister after the 45 second interval.<br>
<br>
Is there an option or a flag that I'm missing so that even though I
want to enforce a default/min/max time, if the phone doesn't register
in that period, the contact still lingers around in memory for a
predefined amount of time?<br>
<br>
<br>
Thanks again for all your help.