[Kamailio-Users] How to prevent - Same username used on multiple sip phones

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 29 11:51:39 CEST 2008


Hello,

On 09/29/08 10:48, Ali Jawad wrote:
>
> Hi
>
>  
>
> The solution below does work in deed the only problem is that if I use 
> it and I am logged in at work and I want to use the service at home it 
> wont let me.
>
> What I am trying to achieve is that the same user can not be online 
> with two sip phones at any one time. Is there a way to force a logout 
> a user at Location A, when a user at Location B logs in.
>

if I understand it right, you want to keep only most recent 
registration. It is not possible to force unregister for a user, SIP 
does not provide a way to notify a device that it should stop 
registrations or to unregister at that moment. If you have A and B 
registering, you can direct the traffic to last registered tunning the 
registrar/usrloc modules parameters:

modparam("registrar", "append_branches", 0)
modparam("usrloc", "desc_time_order", 1)

See the readme's at:


http://www.kamailio.org/docs/modules/1.4.x/

You may end up in strange situation, let's say both phone use 30min 
expires registration, but they are interlaced 15min. You will have A 
available for 15 min, then B sends register and will be for 15 min, then 
again A a.s.o.

Cheers,
Daniel

>  
>
> With Regards
>
>  
>
> Ali Jawad
>
> System Administrator
>
> Splendor Telecom (www.splendor.net)
>
> Beirut, Lebanon
>
> Phone: +961 1 373725
>
> Fax: + 961 1 375554
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* Gustavo Mistrinelli [mailto:gmistrinelli at gmail.com]
> *Sent:* 2008-09-26 18:16
> *To:* Ali Jawad
> *Cc:* users at lists.kamailio.org; users at lists.openser.org
> *Subject:* Re: [Kamailio-Users] How to prevent - Same username used on 
> multiple sip phones
>
>  
>
> Hi Ali, I don't know what you really are looking for but you can limit 
> registration of the same user using max_contacts parameter. Setting it 
> to 1, only the last registration will be active.
>
>  
>   modparam("registrar", "max_contacts", 1)
>
> You may experiment problems if the user put 2 devices trying to 
> register at the same time.
>
> Regards,
>
> Gustavo
>
> On Fri, Sep 26, 2008 at 8:32 AM, Ali Jawad <ali.jawad at splendor.net 
> <mailto:ali.jawad at splendor.net>> wrote:
>
> Hi
>
>  
>
> On my openser I can logon with the same username on two different 
> softphones. How can I prevent the same username from being used on 
> multiple devices.
>
>  
>
>  
>
> With Regards
>
>  
>
>  
>
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Gustavo Mistrinelli
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the Users mailing list