URI_DB module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”Various checks related to SIP URI.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- a OpenSIPS database module.
External Libraries or Applications
Section titled “External Libraries or Applications”The following libraries or applications must be installed before running OpenSIPS with this module loaded:
- None.
Exported Parameters
Section titled “Exported Parameters”db_url (string)
Section titled “db_url (string)”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://opensipsro:opensipsro@localhost/opensips”.
...modparam("uri_db", "db_url", "mysql://username:password@localhost/opensips")...db_table (string)
Section titled “db_table (string)”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”.
...modparam("uri_db", "db_table", "uri")...user_column (string)
Section titled “user_column (string)”Column holding usernames in the table.
Default value is “username”.
...modparam("uri_db", "user_column", "username")...domain_column (string)
Section titled “domain_column (string)”Column holding domain in the table.
Default value is “domain”.
...modparam("uri_db", "domain_column", "domain")...uriuser_column (string)
Section titled “uriuser_column (string)”Column holding URI username in the table.
Default value is “uri_user”.
...modparam("uri_db", "uriuser_column", "uri_user")...use_uri_table (integer)
Section titled “use_uri_table (integer)”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)“.
...modparam("uri_db", "use_uri_table", 1)...use_domain (integer)
Section titled “use_domain (integer)”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)”.
...modparam("uri_db", "use_domain", 1)...Exported Functions
Section titled “Exported Functions”check_to()
Section titled “check_to()”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.
...if (check_to()) { ...};...check_from()
Section titled “check_from()”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.
...if (check_from()) { ...};...does_uri_exist()
Section titled “does_uri_exist()”Check if username in the request URI belongs to an existing user.
As the checking is done against URI table (if use_uri_table is set) or subscriber table.
This function can be used from REQUEST_ROUTE.
...if (does_uri_exist()) { ...};...Exported Statistics
Section titled “Exported Statistics”Exported statistics are listed in the next sections.
positive_checks
Section titled “positive_checks”Number of tests executed for which a positive match is returned.
negative_checks
Section titled “negative_checks”Number of tests executed for which a negative match is returned. This includes no credentials found, or not match found in database.
Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Bogdan-Andrei Iancu (@bogdan-iancu) | 20 | 15 | 206 | 148 |
| 2. | Sergio Gutierrez | 17 | 13 | 125 | 76 |
| 3. | Jan Janak (@janakj) | 17 | 7 | 1036 | 14 |
| 4. | Daniel-Constantin Mierla (@miconda) | 16 | 11 | 137 | 131 |
| 5. | Henning Westerholt (@henningw) | 12 | 7 | 111 | 182 |
| 6. | Stefan Darius (@dariusstefan) | 7 | 3 | 273 | 23 |
| 7. | Dan Pascu (@danpascu) | 4 | 2 | 38 | 53 |
| 8. | Andrei Pelinescu-Onciul | 3 | 1 | 104 | 44 |
| 9. | Razvan Crainea (@razvancrainea) | 3 | 1 | 2 | 2 |
| 10. | Konstantin Bokarius | 3 | 1 | 2 | 5 |
All remaining contributors: Norman Brandinger (@NormB), Edson Gellert Schubert, Elena-Ramona Modroiu.
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | Jun 2026 - Jun 2026 |
| 3. | Sergio Gutierrez | Oct 2008 - Mar 2009 |
| 4. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jul 2005 - Feb 2009 |
| 5. | Dan Pascu (@danpascu) | Oct 2007 - Aug 2008 |
| 6. | Henning Westerholt (@henningw) | Aug 2007 - Jun 2008 |
| 7. | Daniel-Constantin Mierla (@miconda) | Nov 2006 - Mar 2008 |
| 8. | Konstantin Bokarius | Mar 2008 - Mar 2008 |
| 9. | Edson Gellert Schubert | Feb 2008 - Feb 2008 |
| 10. | Norman Brandinger (@NormB) | Aug 2006 - Aug 2006 |
All remaining contributors: Elena-Ramona Modroiu, Jan Janak (@janakj), Andrei Pelinescu-Onciul.
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Sergio Gutierrez, Bogdan-Andrei Iancu (@bogdan-iancu), Henning Westerholt (@henningw), Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Elena-Ramona Modroiu, Jan Janak (@janakj).
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0