11 Copyright © 2016 TutPro Inc.
13 Copyright © 2006 Voice Sistem SRL
14 __________________________________________________________________
24 2.2. External Libraries or Applications
33 1.1. pua.publish XMLRPC example
35 Chapter 1. Admin Guide
43 2.2. External Libraries or Applications
52 The pua_rpc offers the possibility to publish presence information via
53 RPC transport. Subscribing to presence information has not been
56 Using this module you can create independent applications/scripts to
57 publish SIP and not SIP related information (e.g., MWI message summary
58 information, system resources like CPU-usage, memory, number of active
59 subscribers, ...). Future version of this module may allow non-SIP
60 speaking applications to subscribe to presence information kept in a
66 2.2. External Libraries or Applications
70 The following modules must be loaded before this module:
73 2.2. External Libraries or Applications
75 The following libraries or applications must be installed before
76 running Kamailio with this module loaded:
90 * presentity_uri - e.g. sip:jh@tutpro.com
91 * expires - Relative expires time in seconds (e.g. 3600).
92 * event package - Event package that is target of published
93 information (e.g. message-summary).
94 * content type - Content type of published information (e.g.
95 application/simple-message-summary) or . if no information is
97 * id - id for a series of related PUBLISHes to the same
98 presentity-uri or . to always use the same series. For example
99 dialog-info must reuse the same id for the same call otherwise
100 status will be lost when multiple parallel calls to/from the same
101 user take place. The dialog-id from the dialog-info body qualifies
102 as a suitable id here.
103 * ETag - ETag that publish should match or . if no ETag is given.
104 * outbound proxy - SIP URI of outbound proxy to be used when sending
105 PUBLISH request or . if no outbound proxy is given.
106 * extra_headers - Extra headers added to PUBLISH request or . if no
108 * body - The body of the publish request containing published
109 information or missing if no published information. It has to be a
110 single line for FIFO transport.
112 Example 1.1. pua.publish XMLRPC example
114 <?xml version="1.0" ?>
116 <methodName>pua.publish</methodName>
120 <string>sip:jh@test.tutpro.com</string>
125 <string>7776000</string>
130 <string>message-summary</string>
135 <string>application/simple-message-summary</string>
145 <string>a.1481534683.13958.6.7</string>
150 <string>sip:127.0.0.1:5080;transport=tcp</string>
162 <string>Messages-Waiting: yes
164 Message-Account: sip:jh@vm.test.tutpro.com
166 Voice-Message: 2/0 (0/0)