Hi
I want some of my users only to be able to logon through a certain IP, is there some ACL mechanism that can be used to do that ?
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
El Martes, 23 de Septiembre de 2008, Ali Jawad escribió:
I want some of my users only to be able to logon through a certain IP, is there some ACL mechanism that can be used to do that ?
No, but you can implement it easily. For example I do it by adding a field to "subscriber" table (loading that field in as extra data) containing the allowed IP(s).
Later in the script just do a comparision (can be regular comparision).
Hi Inaki Thanks for the help, however I only want this for a couple of users and not all users. So I don't know if this will work with your solutions. Regards
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Iñaki Baz Castillo Sent: 2008-09-23 21:18 To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Bind Access To Users to their IPs
El Martes, 23 de Septiembre de 2008, Ali Jawad escribió:
I want some of my users only to be able to logon through a certain IP, is there some ACL mechanism that can be used to do that ?
No, but you can implement it easily. For example I do it by adding a field to "subscriber" table (loading that field in as extra data) containing the allowed IP(s).
Later in the script just do a comparision (can be regular comparision).
El Miércoles, 24 de Septiembre de 2008, Ali Jawad escribió:
Hi Inaki Thanks for the help, however I only want this for a couple of users and not all users. So I don't know if this will work with your solutions. Regards
Then you can use the "user_preference" table, for example:
- username: bob - domain: domain.org - attribute: allowed_ip - value: 1.2.3.4 / ANY
Hi Inaki
Thanks I did use that approach with the avp example you gave me in another questions and it worked great.
With Regards
Ali Jawad
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Iñaki Baz Castillo Sent: 2008-09-25 00:00 To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Bind Access To Users to their IPs
El Miércoles, 24 de Septiembre de 2008, Ali Jawad escribió:
Hi Inaki Thanks for the help, however I only want this for a couple of users and not all users. So I don't know if this will work with your solutions. Regards
Then you can use the "user_preference" table, for example:
- username: bob - domain: domain.org - attribute: allowed_ip - value: 1.2.3.4 / ANY