<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
On 3/2/12 1:01 PM, Marius Zbihlei wrote:
<blockquote cite="mid:4F50B6A5.500@1and1.ro" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 03/02/2012 12:44 PM, Reda Aouad wrote:
<blockquote
cite="mid:CAA30pc7pkPcBSfMSdRpvCSHNm0kiSw9r13huUe4jikiEPdcr1Q@mail.gmail.com"
type="cite">
<div dir="ltr"><font color="#3366ff"><font><font
face="tahoma,sans-serif">Hi,<br>
<br>
Is there a way to ensure single-registration per
user-agent for a user, which overwrites previous
registration ?<br>
Or is there a way to limit the number of registrations
per user, but overwriting the earliest registration for
each new one ?<br>
<br clear="all">
</font></font></font></div>
</blockquote>
Hello, <br>
<br>
From the registrar module documentation
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2494545">http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2494545</a><br>
<br>
3.12. max_contacts (integer)<br>
<br>
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.<br>
<br>
Default value is 0. <br>
<br>
But this will not overwrite the previous contact AFAIK.<br>
</blockquote>
For one contact per user, use save() with flags parameter (value 4):<br>
<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2497967">http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2497967</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:4F50B6A5.500@1and1.ro" type="cite"> <br>
Marius<br>
<br>
<blockquote
cite="mid:CAA30pc7pkPcBSfMSdRpvCSHNm0kiSw9r13huUe4jikiEPdcr1Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif">Thanks,<br>
</font>
<div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
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: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>
71295, Romania
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
</body>
</html>