mi_pua_publish
mi_pua_publish
FIFO exampleThe pua_mi sends offer the possibility to publish presence information via MI transports. Future improvement may be ability to subscribe for presence status via MI.
Using this module you can create independent applications/scripts to publish not sip-related information (e.g., system resources like CPU-usage, memory, number of active subscribers ...)
The following libraries or applications must be installed before running OpenSER with this module loaded:
none.
mi_pua_publish
Command parameters:
presentity_uri - like 'sip:system@openser.org'
expires
The relative time in seconds (eg: 3600 )
body
The body of the publish message; the only format accepted is xml. For FIFO MI transport, it has to be on a single line.
Example 1-1. mi_pua_publish
FIFO example
... :mi_pua_publish:fifo_test_reply sip:system@openser.org 10 <?xml version='1.0'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='system@openser.org'><tuple id='0x81475a0'><status><basic>open</basic></status></tuple><dm:person id='pdd748945'><rpid:activities><rpid:away/>away</rpid:activities><dm:note>CPU:16 MEM:476</dm:note></dm:person></presence> ...
Take a look at http://www.openser-project.org/.
First at all check if your question was already answered on one of our mailing lists:
User Mailing List - http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Developer Mailing List - http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel
E-mails regarding any stable OpenSER release should be sent to
<users@lists.openser-project.org>
and e-mails regarding development versions
should be sent to <devel@lists.openser-project.org>
.
If you want to keep the mail private, send it to
<team@lists.openser-project.org>
.
Please follow the guidelines provided at: http://sourceforge.net/tracker/?group_id=139143.