<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>this is an example of with 
trusted_table.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route[3] {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
-----------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# INVITE Message Handler<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
-----------------------------------------------------------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(allow_trusted()) {</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
route(4);&nbsp;&nbsp;&nbsp;&nbsp;#  NAT Traversal 
Section<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(5);&nbsp;&nbsp;&nbsp; #  PSTN Handler&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
return;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Welcome to psql 7.4.13, the PostgreSQL interactive 
terminal.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Type:&nbsp; \copyright for distribution 
terms<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \h for help with SQL 
commands<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \? for help on internal slash 
commands<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \g or terminate with semicolon 
to execute query<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \q to quit</FONT></DIV>
<DIV><FONT face=Arial size=2>dbname=&gt; select * from 
trusted;<BR>&nbsp;&nbsp;&nbsp;&nbsp; src_ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
proto |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from_pattern&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>-----------------+-------+-------------------------------<BR>&nbsp;10.1.1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
| udp&nbsp;&nbsp; | ^sip:120*@*</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Hakan.</FONT></DIV>
<DIV>&nbsp;</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&nbsp; the following if statement&nbsp; to&nbsp; 
  allow certain calls from&nbsp; pre authorized IPs. <BR><BR>if ( method == 
  "INVITE" &amp;&amp; src_ip != 195.xxx.xxx.xx &amp;&amp; src_ip != 
  195.xxx.xxx.xx &amp;&amp; src_ip != 195.xxx.xxx.xx &amp;&amp; src_ip != 
  195.xxx.xxx.xx) {<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
  &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <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>