[OpenSIPS-Users] Registration questions

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Feb 28 22:00:44 CET 2011


Hello Cinthia,

Cinthia Leung wrote:
> Hello,
>
> I have a couple of questions regarding registrations and the registrar module.  We store the registrations in memory only. 
>
> 1.  When a registration is gone (expired, manually removed...), how long does it stay in the memory before it completely goes away.  If I do "opensipsctl ul show", I see those registrations that are supposed to be gone are still in the result, with Expires = "deleted" or "expired" for the next 10+ seconds.
>   
You can see deleted records still kept in memory only when using DB 
persistence - records (even deleted) are kept in mem until DB flush is 
performed again, so that the records are deleted from DB also - so 
maximum to stay is the DB flush interval.
> 2.  I noticed that save() does not update the call-id if everything else (contact, received...) stays the same.  Say a device has been registered the whole time.  A power blip knocked it out for a short while.  The registration in OpenSIPS becomes "expired".  The device is now back online and tries to register with a new call-id before the old reg disappears from OpenSIPS.  What I'm seeing is that the current registration still has the old call-id.  It is causing issues when we use the callid option of registered().
>   
A different call-id means a different registration, so in the scenario 
you mentioned, after the device come back online, a new registration 
will be created for it (the old one will be not touched).

Regards,
Bogdan
> Any comments are appreciated.  Thanks.
>
>
> Cinthia
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 28th February 2011
OpenSIPS solutions and "know-how"




More information about the Users mailing list