[OpenSIPS-Users] how do you determine first registration of a device

Alex Balashov abalashov at evaristesys.com
Sat Sep 26 21:11:30 CEST 2009


Alex Balashov wrote:
> A new REGISTER request will certainly have a different Call-ID.
> 
> However, I think the correct way to handle this is to just live with 
> it.  If the phone did not "unregister," then it will be subject to the 
> consequences of that, and it's okay.
> 
> Kamailio 1.5.x's registrar module has a function called 
> reg_free_contacts() which you could use if a save() fails due to a 
> contact already existing in memory or database and then call save(). 
> Perhaps OpenSIPS will implement something like this at some point.

It actually has an unregister() function as well.

-- 
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671



More information about the Users mailing list