[OpenSIPS-Users] multiple registration

David Villasmil david.villasmil.work at gmail.com
Sat Aug 9 18:44:01 CEST 2008


Thanks for answering.

     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.


David

On Sat, Aug 9, 2008 at 2:51 PM, Bogdan-Andrei Iancu
<bogdan at voice-system.ro>wrote:

> Hi David (again :)),
>
> 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
>   1) discard old ones?
>   2) discard new ones?
>
> 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)
>
> if you do 2) , there is the problem you mentioned - and belief me, there is
> quite a common problem !
>
> 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?
>
> Regards,
> Bogdan
>
> David Villasmil wrote:
>
>> Hello all again!
>>
>>     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?
>>
>> Thnks
>>
>>
>> David
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20080809/127ac571/attachment.htm 


More information about the Users mailing list