Table of Contents
List of Examples
db_url
parameteruri_table
parameteruser_column
parameterdomain_column
parameteruriuser_column
parameteruse_uri_table
parameteruse_domain
parametercheck_to
usagecheck_from
usagedoes_uri_exist
usageTable of Contents
The following modules must be loaded before this module:
a Kamailio database module .
URL of the database to be used.
If the db_url string is empty, the default database URL will be used.
Default value is “mysql://openserro:openserro@localhost/openser”.
Example 1.1. Set db_url
parameter
... modparam("uri_db", "db_url", "mysql://username:password@localhost/openser") ...
The DB table that should be used. Its possible to use the
“subscriber” and “uri” table. If the
“uri” table should be used, an additional parameter
(Section 3.6, “use_uri_table
(integer)”) must be set.
Default value is “subscriber”.
Column holding usernames in the table.
Default value is “username”.
Column holding domain in the table.
Default value is “domain”.
Column holding URI username in the table.
Default value is “uri_user”.
Specify if the “uri” table should be used for checkings instead of “subscriber” table. A non-zero value means true.
Default value is “0 (false)”.
Specify if the domain part of the URI should be used to identify the users (along with username). This is useful in multi domain setups, a non-zero value means true.
This parameter is only evaluated for calls to “does_uri_exist”, all other functions checks the digest username and realm against the given username, if the “uri” table is used.
Default value is “0 (false)”.
Check To username against URI table (if use_uri_table is set) or digest credentials (no DB backend required).
This function can be used from REQUEST_ROUTE.
Check From username against URI table (if use_uri_table is set) or digest credentials (no DB backend required).
This function can be used from REQUEST_ROUTE.