<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You can use permissions module.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.openser.org/docs/modules/1.1.x/permissions.html">http://www.openser.org/docs/modules/1.1.x/permissions.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>this is an example of with
trusted_table.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>loadmodule
"/usr/local/lib/openser/modules/permissions.so"</FONT></DIV><FONT face=Arial
size=2>
<DIV><BR>modparam("permissions", "db_url", "postgres or
mysql://username:password@localhost/dbname")</DIV>
<DIV></FONT> </DIV>
<DIV><FONT face=Arial size=2>#---- Permissions_Module_Parameters
-----<BR>modparam("permissions", "db_mode", 0)<BR>modparam("permissions",
"trusted_table", "trusted")<BR>modparam("permissions", "source_col",
"src_ip")<BR>modparam("permissions", "proto_col",
"proto")<BR>modparam("permissions", "from_col", "from_pattern")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>route[3] {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR>
# INVITE Message Handler<BR> #
-----------------------------------------------------------------</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(allow_trusted()) {</FONT></DIV>
<DIV><FONT face=Arial size=2>
route(4); # NAT Traversal
Section<BR>
route(5); # PSTN Handler
<BR>
return;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Welcome to psql 7.4.13, the PostgreSQL interactive
terminal.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Type: \copyright for distribution
terms<BR> \h for help with SQL
commands<BR> \? for help on internal slash
commands<BR> \g or terminate with semicolon
to execute query<BR> \q to quit</FONT></DIV>
<DIV><FONT face=Arial size=2>dbname=> select * from
trusted;<BR> src_ip |
proto |
from_pattern
<BR>-----------------+-------+-------------------------------<BR> 10.1.1.5
| udp | ^sip:120*@*</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Hakan.</FONT></DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ronn100200@aim.com
href="mailto:ronn100200@aim.com">ronn100200@aim.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@openser.org
href="mailto:users@openser.org">users@openser.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, August 14, 2006 5:39
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Users] Module for Config
files</DIV>
<DIV><BR></DIV>
<DIV>Hi All,<BR><BR>I am using the following if statement to
allow certain calls from pre authorized IPs. <BR><BR>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) {<BR><BR>
<BR>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 ? <BR><BR>regards,<BR><BR>Ron</DIV>
<DIV class=AOLPromoFooter>
<HR style="MARGIN-TOP: 10px">
<A
href="http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/aol?redir=http%3A%2F%2Fwww%2Eaim%2Ecom%2Ffun%2Fmail%2F"
target=_blank><B>Check Out the new free AIM(R) Mail</B></A> -- 2 GB of storage
and industry-leading spam and email virus protection.<BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@openser.org<BR>http://openser.org/cgi-bin/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>