<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Jayesh,<br>
<br>
Basically you do not what to have more registrations from the
same IP, right ?<br>
<br>
Exactly the opposit of the is_other_contact() function :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294660">http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294660</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 01.10.2014 18:15, Jayesh Nambiar wrote:<br>
</div>
<blockquote
cite="mid:CANAYozsSw_b4kgFd1=OPsJnies61jRuy18wqzzso5L9iX3d+Pw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,<br>
</div>
I am trying to solve a problem of having one
registration per AOR per device. So user 1234 can
register from device A, device B and device C. But the
user 1234 should not have multiple contacts from device
A alone. <br>
</div>
At times when the device loses network, proxy doesn't
receive de-register and the contact stays in opensips till
its expiry time. So the same device is thus capable of
creating multiple contacts. I could solve this by using
"fc1" flag while doing a save("location") but I need
multiple registrations to be allowed from different
devices !!<br>
</div>
So is there a way where while doing a save("location"), I
set some sort of device id along with it such that I
identify and overwrite the existing contact only if the
registration comes from same device-id or else add it up for
parallel forking.<br>
</div>
Do let me know if I make sense here and there's a solution to
this. Thanks for any suggestions and directions.<br>
<br>
Thanks,<br>
<br>
</div>
--- Jayesh<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>