Copyright © 2007 voice-system.ro
server_address
(str)pua_xmpp_notify()
pua_xmpp_req_winfo(char* request_uri, char* expires)
server_address
parameterNotify2Xmpp
usagexmpp_send_winfo
usageThis module is a gateway for presence between SIP and XMPP.
It translates one format into another and uses xmpp, pua and presence modules to manage the transmition of presence state information.
The following modules must be loaded before this module:
presence.
pua.
xmpp.
The following libraries or applications must be installed before running OpenSER with this module loaded:
libxml.
Functions exported to be used in configuration file.
pua_xmpp_notify()
Function that handles Notify messages addressed to a user from an xmpp domain. It requires filtering after method and domain in configuration file. If the function is successful, a 2xx reply must be sent.
This function can be used from REQUEST_ROUTE.
pua_xmpp_req_winfo(char* request_uri, char* expires)
Function called when a Subscribe addressed to a user from a xmpp domain is received. It calls sending a Subscribe for winfo for the user, and the following Notify with dialog-info is translated into a subscription in xmpp. It also requires filtering in configuration file, after method, domain and event(only for presence).
It takes 2 parameters: request_uri and the value of Expires header field in received Subscribe.
This function can be used from REQUEST_ROUTE.
Instead of "sip-xmpp.siphub.ro" in the example you should use the value set for the xmpp module parameter named 'gateway_domain'.
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.