On 03/02/2012 12:44 PM, Reda Aouad wrote:
Hi,

Is there a way to ensure single-registration per user-agent for a user, which overwrites previous registration ?
Or is there a way to limit the number of registrations per user, but overwriting the earliest registration for each new one ?

Hello,

From the registrar module documentation http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2494545

3.12. max_contacts (integer)

The parameter can be used to limit the number of contacts per AOR (Address of Record) in the user location database. Value 0 disables the check. This parameter can be modified via ser config framework.

Default value is 0.

But this will not overwrite the previous contact AFAIK.

Marius

Thanks,
Reda



-- 
Zbihlei Marius

Head of
Linux Development Services Romania

1&1 Internet Development srl    Tel KA: 754-9152
Str Mircea Eliade 18            Tel RO: +40-31-223-9152
Sect 1, Bucuresti               mailto: marius.zbihlei@1and1.ro
71295, Romania