URI 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”None.
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”None.
Exported Functions
Section titled “Exported Functions”is_user(username)
Section titled “is_user(username)”Check if the username in credentials matches the given username.
Meaning of the parameters is as follows:
- username - Username string.
This function can be used from REQUEST_ROUTE.
...if (is_user("john")) { ...};...has_totag()
Section titled “has_totag()”Check if To header field uri contains tag parameter.
This function can be used from REQUEST_ROUTE.
...if (has_totag()) { ...};...uri_param(param)
Section titled “uri_param(param)”Find if Request URI has a given parameter with no value
Meaning of the parameters is as follows:
- param - parameter name to look for.
This function can be used from REQUEST_ROUTE.
...if (uri_param("param1")) { ...};...uri_param(param,value)
Section titled “uri_param(param,value)”Find if Request URI has a given parameter with matching value
Meaning of the parameters is as follows:
- param - parameter name to look for.
- value - parameter value to match.
This function can be used from REQUEST_ROUTE.
...if (uri_param("param1","value1")) { ...};...add_uri_param(param)
Section titled “add_uri_param(param)”Add to RURI a parameter (name=value);
Meaning of the parameters is as follows:
- param - parameter to be appended in “name=value” format.
This function can be used from REQUEST_ROUTE.
...add_uri_param("nat=yes");...tel2sip()
Section titled “tel2sip()”Converts RURI, if it is tel URI, to SIP URI. Returns true, only if conversion succeeded or if no conversion was needed (like RURI was not tel URI.
This function can be used from REQUEST_ROUTE.
...tel2sip();...is_uri_user_e164(pseudo-variable)
Section titled “is_uri_user_e164(pseudo-variable)”Checks if userpart of URI stored in pseudo variable is E164 number.
This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
...if (is_uri_user_e164("$fu")) { # Check From header URI user part ...}if (is_uri_user_e164("$avp(i:705)") { # Check user part of URI stored in avp i:705 ...};...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. | Jan Janak (@janakj) | 49 | 20 | 1473 | 923 |
| 2. | Daniel-Constantin Mierla (@miconda) | 14 | 12 | 46 | 55 |
| 3. | Juha Heinanen (@juha-h) | 13 | 7 | 446 | 71 |
| 4. | Bogdan-Andrei Iancu (@bogdan-iancu) | 10 | 8 | 31 | 23 |
| 5. | Jiri Kuthan (@jiriatipteldotorg) | 6 | 4 | 41 | 31 |
| 6. | Stefan Darius (@dariusstefan) | 6 | 3 | 212 | 12 |
| 7. | Henning Westerholt (@henningw) | 6 | 3 | 8 | 69 |
| 8. | Andrei Pelinescu-Onciul | 4 | 2 | 5 | 3 |
| 9. | Anca Vamanu | 3 | 1 | 25 | 28 |
| 10. | Sergio Gutierrez | 3 | 1 | 3 | 1 |
All remaining contributors: Razvan Crainea (@razvancrainea), Konstantin Bokarius, 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 | Nov 2008 - Nov 2008 |
| 4. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jan 2006 - Oct 2008 |
| 5. | Daniel-Constantin Mierla (@miconda) | Nov 2006 - Mar 2008 |
| 6. | Konstantin Bokarius | Mar 2008 - Mar 2008 |
| 7. | Edson Gellert Schubert | Feb 2008 - Feb 2008 |
| 8. | Juha Heinanen (@juha-h) | Apr 2004 - Dec 2007 |
| 9. | Henning Westerholt (@henningw) | Apr 2007 - Dec 2007 |
| 10. | Anca Vamanu | Oct 2007 - Oct 2007 |
All remaining contributors: Elena-Ramona Modroiu, Jiri Kuthan (@jiriatipteldotorg), 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), Bogdan-Andrei Iancu (@bogdan-iancu), Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Juha Heinanen (@juha-h), 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