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
usagecheck_uri
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://kamailioro:kamailioro@localhost/kamailio”.
Example 1.1. Set db_url
parameter
... modparam("uri_db", "db_url", "mysql://username:password@localhost/kamailio") ...
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 “use-uri-table”) 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 checking 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.
Check the username from the given uri against URI table (if use_uri_table is set) or digest credentials (no DB backend required).
Description of parameters:
uri Has to be a valid SIP URI, used to extract the username from. The parameter can be a static or dynamic (with variables) string.
This function can be used from REQUEST_ROUTE.
Check if username in the request URI belongs to an existing user.
The checking is done against the URI table (if use_uri_table is set) or the subscriber table.
This function can be used from REQUEST_ROUTE.