[Serusers] new module
Tirpák Miklós
mtirpak at sztaki.hu
Thu Mar 13 16:27:00 CET 2003
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 at abc.com$", "^sip:.*4 at 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 at sztaki.hu
of the Hungarian Academy of Sciences phone : (361) 279-6011
H-1132. Budapest, Victor Hugo u 18-22 fax : (361) 279-6021
-------------- next part --------------
A non-text attachment was scrubbed...
Name: permissions.tar.gz
Type: application/gzip
Size: 4933 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030313/7335e1b6/attachment.bin>
More information about the sr-users
mailing list