Debian Codegraph @

src/modules/pua_usrloc/README

raw
1 PUA Usrloc
2
3 Anca-Maria Vamanu
4
5 Voice Sistem SRL
6
7 Edited by
8
9 Anca-Maria Vamanu
10
11 Copyright © 2006 Voice Sistem SRL
12 __________________________________________________________________
13
14 Table of Contents
15
16 1. Admin Guide
17
18 1. Overview
19 2. Dependencies
20
21 2.1. Kamailio Modules
22 2.2. External Libraries or Applications
23
24 3. Parameters
25
26 3.1. default_domain (str)
27 3.2. entity_prefix (str)
28 3.3. branch_flag (int)
29
30 4. Functions
31
32 4.1. pua_set_publish()
33
34 List of Examples
35
36 1.1. Set default_domain parameter
37 1.2. Set entity_prefix parameter
38 1.3. Set branch_flag parameter
39 1.4. pua_set_publish usage
40
41 Chapter 1. Admin Guide
42
43 Table of Contents
44
45 1. Overview
46 2. Dependencies
47
48 2.1. Kamailio Modules
49 2.2. External Libraries or Applications
50
51 3. Parameters
52
53 3.1. default_domain (str)
54 3.2. entity_prefix (str)
55 3.3. branch_flag (int)
56
57 4. Functions
58
59 4.1. pua_set_publish()
60
61 1. Overview
62
63 The pua_usrloc module is the connector between the usrloc and pua
64 modules. With this module, you can monitor the status of SIP
65 registrations. The module sends PUBLISH requests for user location
66 record changes, based on specific events (e.g., when a new record is
67 added in usrloc, a PUBLISH with status open (online) is issued; when
68 expires, it sends closed (offline)).
69
70 Using this module phones which have no support for presence can be seen
71 as online/offline.
72
73 2. Dependencies
74
75 2.1. Kamailio Modules
76 2.2. External Libraries or Applications
77
78 2.1. Kamailio Modules
79
80 The following modules must be loaded before this module:
81 * usrloc.
82 * pua.
83
84 2.2. External Libraries or Applications
85
86 The following libraries or applications must be installed before
87 running Kamailio with this module loaded:
88 * libxml.
89
90 3. Parameters
91
92 3.1. default_domain (str)
93 3.2. entity_prefix (str)
94 3.3. branch_flag (int)
95
96 3.1. default_domain (str)
97
98 The default domain to use when constructing the presentity URI if it is
99 missing from stored AOR in the usrloc table (in memory or database).
100
101 Default value is “NULL”.
102
103 Example 1.1. Set default_domain parameter
104 ...
105 modparam("pua_usrloc", "default_domain", "kamailio.org")
106 ...
107
108 3.2. entity_prefix (str)
109
110 The prefix used when constructing the entity attribute to be added to a
111 presence node in the XML PIDF document. (ex: pres:user@domain ).
112
113 Default value is “NULL”.
114
115 Example 1.2. Set entity_prefix parameter
116 ...
117 modparam("pua_usrloc", "entity_prefix", "pres")
118 ...
119
120 3.3. branch_flag (int)
121
122 Which branch flag to be used to select the contact addresses for which
123 to generate PUBLISH. Valid values are 0 to 31.
124
125 Default value is “-1” (disabled).
126
127 Example 1.3. Set branch_flag parameter
128 ...
129 modparam("pua_usrloc", "branch_flag", 9)
130 ...
131
132 4. Functions
133
134 4.1. pua_set_publish()
135
136 4.1. pua_set_publish()
137
138 The function is used to mark REGISTER requests that have to issue a
139 PUBLISH. The PUBLISH is issued when REGISTER is saved in location
140 table.
141
142 Example 1.4. pua_set_publish usage
143 ...
144 if(is_method("REGISTER") && from_uri=~"[email protected]")
145 pua_set_publish();
146 ...