Skip to content

PUA USRLOC module

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.

The following modules must be loaded before this module:

  • usrloc.
  • pua.

The following libraries or applications must be installed before running OpenSIPS with this module loaded:

  • libxml.

The default domain to use when constructing the presentity uri if it is missing from recorded aor.

Default value is “NULL”.

Set default_domain parameter
...
modparam("pua_usrloc", "default_domain", "opensips.org")
...

The prefix when construstructing entity attribute to be added to presence node in xml pidf. (ex: pres:user@domain ).

Default value is “NULL”.

Set presentity_prefix parameter
...
modparam("pua_usrloc", "entity_prefix", "pres")
...

The the address of the presence server. If set, it will be used as outbound proxy when sending PUBLISH requests.

Set presence_server parameter
...
modparam("pua_usrloc", "presence_server", "sip:pa@opensips.org:5075")
...

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.

pua_set_publish usage
...
if(is_method("REGISTER") && $fu=~"john@opensips.org")
pua_set_publish();
...

Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)

#NameDevScoreCommitsLines++Lines—
1.Anca Vamanu35171267387
2.Bogdan-Andrei Iancu (@bogdan-iancu)211537572
3.Liviu Chircu (@liviuchircu)17148891
4.Razvan Crainea (@razvancrainea)14121725
5.Daniel-Constantin Mierla (@miconda)1082519
6.Stefan Darius7413717
7.Vlad Patrascu (@rvlad-patrascu)53147
8.Ovidiu Sas (@ovidiusas)42153
9.Peter Lemenkov (@lemenkov)4254
10.Maksym Sobolyev (@sobomax)3144

All remaining contributors: Konstantin Bokarius, Juha Heinanen (@juha-h), Ken Rice, 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

#NameCommit Activity
1.Bogdan-Andrei Iancu (@bogdan-iancu)Feb 2007 - Jul 2026
2.Stefan DariusJun 2026 - Jul 2026
3.Razvan Crainea (@razvancrainea)Feb 2012 - Jun 2026
4.Ken RiceSep 2025 - Sep 2025
5.Liviu Chircu (@liviuchircu)Mar 2014 - May 2024
6.Maksym Sobolyev (@sobomax)Feb 2023 - Feb 2023
7.Peter Lemenkov (@lemenkov)Jun 2018 - Feb 2020
8.Vlad Patrascu (@rvlad-patrascu)May 2017 - Apr 2019
9.Ovidiu Sas (@ovidiusas)Jan 2013 - Mar 2014
10.Walter Doekes (@wdoekes)Apr 2010 - Apr 2010

All remaining contributors: Anca Vamanu, Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Juha Heinanen (@juha-h), Julien Blache, Elena-Ramona Modroiu.

(1) including any documentation-related commits, excluding merge commits

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.

All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0