|
You can use permissions module.
this is an example of with
trusted_table.....
loadmodule
"/usr/local/lib/openser/modules/permissions.so"
modparam("permissions", "db_url", "postgres or mysql://username:[EMAIL PROTECTED]/dbname") #---- Permissions_Module_Parameters
-----
modparam("permissions", "db_mode", 0) modparam("permissions", "trusted_table", "trusted") modparam("permissions", "source_col", "src_ip") modparam("permissions", "proto_col", "proto") modparam("permissions", "from_col", "from_pattern") route[3] {
#
-----------------------------------------------------------------
# INVITE Message Handler # ----------------------------------------------------------------- if
(allow_trusted()) {
route(4); # NAT Traversal
Section
route(5); # PSTN Handler return; }; Welcome to psql 7.4.13, the PostgreSQL interactive
terminal.
Type: \copyright for distribution
terms
\h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit dbname=> select * from
trusted;
src_ip | proto | from_pattern -----------------+-------+------------------------------- 10.1.1.5 | udp | ^sip:[EMAIL PROTECTED] Regards,
Hakan.
----- Original Message -----
|
_______________________________________________ Users mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/users
