
PUA Usrloc

Anca-Maria Vamanu

   voice-system.ro

Edited by

Anca-Maria Vamanu

   Copyright  2006 voice-system.ro
     _________________________________________________________

   Table of Contents
   1. User's Guide

        1.1. Overview
        1.2. Dependencies

              1.2.1. OpenSER Modules
              1.2.2. External Libraries or Applications

        1.3. Exported Parameters

              1.3.1. default_domain (str)

   2. Developer's Guide
   3. Frequently Asked Questions

   List of Examples
   1-1. Set default_domain parameter
   1-2. pua_set_publish usage
     _________________________________________________________

Chapter 1. User's Guide

1.1. 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.
     _________________________________________________________

1.2. Dependencies

1.2.1. OpenSER Modules

   The following modules must be loaded before this module:

     * usrloc.
     * pua.
     _________________________________________________________

1.2.2. External Libraries or Applications

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

     * libxml.
     _________________________________________________________

1.3. Exported Parameters

1.3.1. default_domain (str)

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

   Example 1-1. Set default_domain parameter
...
modparam("default_domain", "default_domain", "openser.org");
...
     _________________________________________________________

1.3.1.1. Exported Functions

1.3.1.1.1. 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.

   Example 1-2. pua_set_publish usage
...
if(is_method("REGISTER") && from_uri=~"john@openser.org")
        pua_set_publish();
...
     _________________________________________________________

Chapter 2. Developer's Guide

   The module does not provide any API to use in other OpenSER
   modules.
     _________________________________________________________

Chapter 3. Frequently Asked Questions

   3.1. Where can I find more about OpenSER?
   3.2. Where can I post a question about this module?
   3.3. How can I report a bug?

   3.1. Where can I find more about OpenSER?

   Take a look at http://openser.org/.

   3.2. Where can I post a question about this module?

   First at all check if your question was already answered on
   one of our mailing lists:

     * User Mailing List -
       http://openser.org/cgi-bin/mailman/listinfo/users
     * Developer Mailing List -
       http://openser.org/cgi-bin/mailman/listinfo/devel

   E-mails regarding any stable OpenSER release should be sent to
   <users@openser.org> and e-mails regarding development versions
   should be sent to <devel@openser.org>.

   If you want to keep the mail private, send it to
   <team@openser.org>.

   3.3. How can I report a bug?

   Please follow the guidelines provided at:
   http://sourceforge.net/tracker/?group_id=139143.
