allow_routing()
allow_routing
usagePermissions module is used to determinate if a call has appropriate permission to be established. Permissions can be menaged in configuraton files simular to hosts.allow and hosts.deny:
The search stops at the first match:
Routing will be allowed when a (FROM, Request URI) pair matches an entry in the /usr/local/etc/ser/permissions.allow file.
Otherwise, routing will be denied when a (FROM, Request URI) pair matches an entry in the /usr/local/etc/ser/permissions.deny file.
Otherwise, routing will be allowed.
A non-existing permission control file is treated as if it were an empty file. Thus, permission control can be turned off by providing no permission control files.
FROM header and Request URI are always compared with regular expressions! For the syntax see the sample file: config/permissions.allow
Create your own configuration files /usr/local/etc/ser/permissions.allow and /usr/local/etc/ser/permissions.deny! Samples can be found in the config directory. |
The following modules must be loaded before this module:
No dependencies on other SER modules.
The following libraries or applications must be installed before running SER with this module loaded:
None.
File for the allow rules.
Default value is "/usr/local/etc/ser/permissions.allow".
File for the deny rules.
Default value is "/usr/local/etc/ser/permissions.deny".
allow_routing()
Returns true if the (FROM, Request URI) pair in the received sip message has appropriate permission according to the configuration files.
The module does not provide any sort of API to use in other SER modules.
Take a look at http://iptel.org/ser.
First at all check if your question was already answered on one of our mailing lists:
E-mails regarding any stable version should be sent to <serusers@iptel.org>
and e-mail
regarding development versions or CVS snapshots should be send to <serdev@iptel.org>
.
If you want to keep the mail private, send it to <serhelp@iptel.org>
.
Please follow the guidelines provided at: http://iptel.org/ser/bugs