Hi

 

I did try

 

        if(is_method("REGISTER"))

        {

        if(lookup("location")){

        sl_send_reply("401","Unautorized");

        exit;

        }

        }

 

 

However, it is not entering the lookup statement

 

Alhgouh

 

[root@localhost ~]# /usr/local/sbin/openserctl ul show --brief

Domain:: location table=512 records=4 max_slot=1

        AOR:: alijawad

 

The location is stored in memory.

 

 

 

With Regards

 

Ali Jawad

System Administrator

Splendor Telecom (www.splendor.net)

Beirut, Lebanon

Phone: +961 1 373725

Fax: + 961 1 375554

 


From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Ali Jawad
Sent: 2008-09-26 15:07
To: users@lists.kamailio.org
Subject: Re: [Kamailio-Users] How to prevent - Same username used onmultiple sip phones

 

Hi

 

I did try

 

        if(is_method("REGISTER"))

        {

        if(lookup("location")){

        sl_send_reply("401","Unautorized");

        exit;

        }

        }

 

 

 

With Regards

 

Ali Jawad

System Administrator

Splendor Telecom (www.splendor.net)

Beirut, Lebanon

Phone: +961 1 373725

Fax: + 961 1 375554

 


From: Sergio Gutierrez [mailto:saguti@gmail.com]
Sent: 2008-09-26 14:38
To: Ali Jawad
Subject: Re: [Kamailio-Users] How to prevent - Same username used on multiple sip phones

 

 

Hi Ali.

 

Maybe you could use the function registered() of the module registrar,  to check whether the user is already registered.

 

http://kamailio.org/docs/modules/1.4.x/registrar.html#id2506815

 

Best regards.

 

Sergio G.

 

On 9/26/08, Ali Jawad <ali.jawad@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@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.