Hi!
I have writen a module, may be somebody is interested in it.
It is used to determinate if a user has appropriate permission to establish a
call. The permissions can be managed in configuration files very simular to
hosts.allow and hosts.deny. Every value in the configuration files are regular
expresions, so it is easy to define rules.
Example for a rule:
"^sip:361[0-9]*@abc.com$" EXCEPT "^sip:.*3@abc.com$",
"^sip:.*4@abc.com$" : ALL
Every PSTN endpoint beginning with 361 except those ending with 3 or 4 can
establish calls with everybody.
In general: from_list [EXCEPT from_list] : to_list [EXCEPT to_list]
from_list and to_list are comma separated expressions
Expressions are treated as case insensitive POSIX Extended RegularExpressions.
Keyword ALL matches any expression.
--
---------------------------------------------------------------------------
Miklos Tirpak
Computer and Automation Research Institute e-mail : mtirpak(a)sztaki.hu
of the Hungarian Academy of Sciences phone : (361) 279-6011
H-1132. Budapest, Victor Hugo u 18-22 fax : (361) 279-6021
Show replies by date