<div dir="ltr">Thanks for answering.<br><br> Yes, that's what I need. The new record should override the old one (provided it comes from the same public IP) although this should be configurable via script. I'm sure there is a way but I just can't figure it out.<br>
<br><br>David<br><br><div class="gmail_quote">On Sat, Aug 9, 2008 at 2:51 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi David (again :)),<br>
<br>
This is a kind of old problem. Coding is not an issue, but logically speaking, it is :). When you deal with multiple contacts per AOR, what should be the logic when limiting the number of records<br>
1) discard old ones?<br>
2) discard new ones?<br>
<br>
if you do 1) (like yahoo does), it will be messy as you have no mechanism to notify back a phone that it was unregistered (while refusing a new registration is perfectly clean)<br>
<br>
if you do 2) , there is the problem you mentioned - and belief me, there is quite a common problem !<br>
<br>
So, what you are looking is a way to have only one contact per AOR and any new contact will override the existing one, right?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
David Villasmil wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hello all again!<br>
<br>
I know one can limit the number of registrations allowed for a contact, but how can I DISCARD previous contacts? i.e. UACs behind asymmetric NATs have multiple contacts, same ip, same user, but different source port! I could just set the expiration to a low value but that's not what I want as it still generates multiple contacts... What I want is to delete any previous contacts for the registrating user if the source IP is the same as the prevoius, how can I achive that?<br>
<br>
Thnks<br>
<br>
<br>
David<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>