If you cannot apply a mask to match the IP, you can use database to
store the list of IP addresses and the via avpops module check if the
source IP address is there. See avp_db_query():
http://www.openser.org/docs/modules/1.1.x/avpops.html#AEN268
IP/mask can be used with openser as well.
Cheers,
Daniel
On 08/14/06 18:22, Weiter Leiter wrote:
Ser can something like ...src_ip !=
195.xxx.xxx.128/25... (which is
quite cheap). Probably OpenSer can do this, too.
On 8/14/06, * ronn100200(a)aim.com <mailto:ronn100200@aim.com>*
<ronn100200(a)aim.com <mailto:ronn100200@aim.com>> wrote:
Hi All,
I am using the following if statement to allow certain calls
from pre authorized IPs.
if ( method == "INVITE" && src_ip != 195.xxx.xxx.xx &&
src_ip !=
195.xxx.xxx.xx && src_ip != 195.xxx.xxx.xx && src_ip !=
195.xxx.xxx.xx) {
My issues is the number of IPs that need to be authorized this way
is getting large and was wondering if there's a module that can be
used to read config date from a config file ?
regards,
Ron
------------------------------------------------------------------------
*Check Out the new free AIM(R) Mail *
<http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/aol?redir=http%3A%2F%2Fwww%2Eaim%2Ecom%2Ffun%2Fmail%2F>
-- 2 GB of storage and industry-leading spam and email virus
protection.
_______________________________________________
Users mailing list
Users(a)openser.org <mailto:Users@openser.org>
http://openser.org/cgi-bin/mailman/listinfo/users
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users