[Kamailio-Users] How to prevent - Same username used onmultiple sip phones
Ali Jawad
ali.jawad at splendor.net
Fri Sep 26 14:47:21 CEST 2008
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 at 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 at lists.kamailio.org
[mailto:users-bounces at lists.kamailio.org] On Behalf Of Ali Jawad
Sent: 2008-09-26 15:07
To: users at 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 at 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 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
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080926/848e51d2/attachment.htm
More information about the Users
mailing list