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 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") && from_uri=~"john@opensips.org")
pua_set_publish();
...

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

#NameDevScoreCommitsLines++Lines—
1.Anca Vamanu191092857
2.Daniel-Constantin Mierla (@miconda)1082519
3.Bogdan-Andrei Iancu (@bogdan-iancu)861922
4.Stefan Darius (@dariusstefan)7412015
5.Razvan Crainea (@razvancrainea)3122
6.Sergio Gutierrez3122
7.Konstantin Bokarius3125
8.Juha Heinanen (@juha-h)3122
9.Elena-Ramona Modroiu3111
10.Edson Gellert Schubert310105

All remaining contributors: 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.Stefan Darius (@dariusstefan)Jun 2026 - Jul 2026
2.Razvan Crainea (@razvancrainea)Jun 2026 - Jun 2026
3.Sergio GutierrezNov 2008 - Nov 2008
4.Bogdan-Andrei Iancu (@bogdan-iancu)Feb 2007 - Jul 2008
5.Anca VamanuNov 2006 - May 2008
6.Daniel-Constantin Mierla (@miconda)Dec 2006 - Mar 2008
7.Konstantin BokariusMar 2008 - Mar 2008
8.Edson Gellert SchubertFeb 2008 - Feb 2008
9.Juha Heinanen (@juha-h)Dec 2007 - Dec 2007
10.Julien BlacheMar 2007 - Mar 2007

All remaining contributors: Elena-Ramona Modroiu.

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

Last edited by: Razvan Crainea (@razvancrainea), Sergio Gutierrez, 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