#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <libxml/parser.h>
#include "../../parser/msg_parser.h"
#include "../../parser/parse_from.h"
#include "../../parser/parse_to.h"
#include "../../parser/parse_content.h"
#include "../../mem/mem.h"
#include "../../ut.h"
#include "../pua/pua.h"
#include "pua_xmpp.h"

Go to the source code of this file.
Functions | |
| str * | build_pidf (xmlNodePtr pres_node, char *uri, char *resource) |
| int | build_publish (xmlNodePtr pres_node, int expire) |
| void | pres_Xmpp2Sip (char *msg, int type, void *param) |
| int | presence_subscribe (xmlNodePtr pres_node, int expires, int flag) |
Definition in file xmpp2simple.c.
| str* build_pidf | ( | xmlNodePtr | pres_node, | |
| char * | uri, | |||
| char * | resource | |||
| ) |
Definition at line 152 of file xmpp2simple.c.
References _str::len, LM_DBG, LM_ERR, NULL, pkg_free, pkg_malloc, _str::s, XMLNodeGetAttrContentByName, and XMLNodeGetNodeContentByName.
| int build_publish | ( | xmlNodePtr | pres_node, | |
| int | expire | |||
| ) |
Definition at line 361 of file xmpp2simple.c.
References publ_info::body, build_pidf(), euri_xmpp_sip, publ_info::event, publ_info::expires, publ_info::extra_headers, _str::len, LM_DBG, LM_ERR, NULL, pkg_free, pkg_malloc, publ_info::pres_uri, PRESENCE_EVENT, pua_send_publish, _str::s, publ_info::source_flag, XMLNodeGetAttrContentByName, and XMPP_PUBLISH.
Referenced by pres_Xmpp2Sip().
| void pres_Xmpp2Sip | ( | char * | msg, | |
| int | type, | |||
| void * | param | |||
| ) |
Definition at line 54 of file xmpp2simple.c.
References build_publish(), LM_DBG, LM_ERR, NULL, presence_subscribe(), XMLDocGetNodeByName, XMLNodeGetAttrContentByName, XMPP_INITIAL_SUBS, and XMPP_SUBSCRIBE.
Referenced by mod_init().
| int presence_subscribe | ( | xmlNodePtr | pres_node, | |
| int | expires, | |||
| int | flag | |||
| ) |
Definition at line 463 of file xmpp2simple.c.
References subs_info::contact, duri_xmpp_sip, euri_xmpp_sip, subs_info::event, subs_info::expires, _str::len, LM_DBG, LM_ERR, NULL, subs_info::pres_uri, PRESENCE_EVENT, pua_send_subscribe, _str::s, subs_info::source_flag, subs_info::watcher_uri, and XMLNodeGetAttrContentByName.
Referenced by pres_Xmpp2Sip().
1.5.6