PUA USRLOC module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”The pua_usrloc is the connector between usrloc and pua modules. It creates the environment to send PUBLISH requests for user location records, on specific events (e.g., when new record is added in usrloc, a PUBLISH with status open (online) is issued; when expires, it sends closed (offline)).
Using this module, phones which have no support for presence can be seen as online/offline.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- usrloc.
- pua.
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:
- libxml.
Exported Parameters
Section titled “Exported Parameters”default_domain (str)
Section titled “default_domain (str)”The default domain to use when constructing the presentity uri if it is missing from recorded aor.
Default value is “NULL”.
...modparam("pua_usrloc", "default_domain", "opensips.org")...entity_prefix (str)
Section titled “entity_prefix (str)”The prefix when construstructing entity attribute to be added to presence node in xml pidf. (ex: pres:user@domain ).
Default value is “NULL”.
...modparam("pua_usrloc", "entity_prefix", "pres")...presence_server (str)
Section titled “presence_server (str)”The the address of the presence server. If set, it will be used as outbound proxy when sending PUBLISH requests.
...modparam("pua_usrloc", "presence_server", "sip:pa@opensips.org:5075")...Exported Functions
Section titled “Exported Functions”pua_set_publish()
Section titled “pua_set_publish()”The function is used to mark REGISTER requests that have to issue a PUBLISH. The PUBLISH is issued when REGISTER is saved in location table.
...if(is_method("REGISTER") && $fu=~"john@opensips.org") pua_set_publish();...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. | Anca Vamanu | 35 | 17 | 1267 | 387 |
| 2. | Liviu Chircu (@liviuchircu) | 16 | 13 | 88 | 89 |
| 3. | Bogdan-Andrei Iancu (@bogdan-iancu) | 16 | 13 | 50 | 64 |
| 4. | Razvan Crainea (@razvancrainea) | 13 | 11 | 15 | 23 |
| 5. | Daniel-Constantin Mierla (@miconda) | 10 | 8 | 25 | 19 |
| 6. | Stefan Darius (@dariusstefan) | 7 | 4 | 137 | 17 |
| 7. | Vlad Patrascu (@rvlad-patrascu) | 5 | 3 | 14 | 7 |
| 8. | Ovidiu Sas (@ovidiusas) | 4 | 2 | 15 | 3 |
| 9. | Peter Lemenkov (@lemenkov) | 4 | 2 | 5 | 4 |
| 10. | Konstantin Bokarius | 3 | 1 | 2 | 5 |
All remaining contributors: Juha Heinanen (@juha-h), Walter Doekes (@wdoekes), Elena-Ramona Modroiu, Edson Gellert Schubert, Julien Blache.
(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) | Feb 2012 - Jun 2026 |
| 3. | Peter Lemenkov (@lemenkov) | Jun 2018 - Feb 2020 |
| 4. | Liviu Chircu (@liviuchircu) | Mar 2014 - Nov 2019 |
| 5. | Bogdan-Andrei Iancu (@bogdan-iancu) | Feb 2007 - Apr 2019 |
| 6. | Vlad Patrascu (@rvlad-patrascu) | May 2017 - Apr 2019 |
| 7. | Ovidiu Sas (@ovidiusas) | Jan 2013 - Mar 2014 |
| 8. | Walter Doekes (@wdoekes) | Apr 2010 - Apr 2010 |
| 9. | Anca Vamanu | Nov 2006 - Oct 2009 |
| 10. | Daniel-Constantin Mierla (@miconda) | Dec 2006 - Mar 2008 |
All remaining contributors: Konstantin Bokarius, Edson Gellert Schubert, Juha Heinanen (@juha-h), Julien Blache, Elena-Ramona Modroiu.
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Peter Lemenkov (@lemenkov), Liviu Chircu (@liviuchircu), Vlad Patrascu (@rvlad-patrascu), Bogdan-Andrei Iancu (@bogdan-iancu), Anca Vamanu, Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Elena-Ramona Modroiu.
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0