#include <stdio.h>#include <stdlib.h>#include <string.h>#include <libxml/parser.h>#include <time.h>#include "../../parser/parse_expires.h"#include "../../parser/msg_parser.h"#include "../../str.h"#include "../usrloc/usrloc.h"#include "../usrloc/ul_callback.h"#include "../tm/tm_load.h"#include "../pua/pua.h"#include "pua_usrloc.h"

Go to the source code of this file.
Defines | |
| #define | BUF_LEN 256 |
Functions | |
| str * | build_pidf (ucontact_t *c) |
| void | print_publ (publ_info_t *p) |
| int | pua_set_publish (struct sip_msg *msg, char *s1, char *s2) |
| int | pua_unset_publish (struct sip_msg *msg, void *param) |
| void | ul_publish (ucontact_t *c, int type, void *param) |
| #define BUF_LEN 256 |
| str* build_pidf | ( | ucontact_t * | c | ) |
Definition at line 64 of file ul_publish.c.
References ucontact::aor, buf, BUF_LEN, default_domain, ucontact::expires, _str::len, LM_DBG, LM_ERR, NULL, pkg_free, pkg_malloc, pres_prefix, and _str::s.
Referenced by build_publish(), purple_send_sip_publish(), and ul_publish().
| void print_publ | ( | publ_info_t * | p | ) |
Definition at line 56 of file ul_publish.c.
References publ_info::expires, publ_info::id, _str::len, LM_DBG, publ_info::pres_uri, and _str::s.
Referenced by ul_publish().
| int pua_set_publish | ( | struct sip_msg * | msg, | |
| char * | s1, | |||
| char * | s2 | |||
| ) |
| int pua_unset_publish | ( | struct sip_msg * | msg, | |
| void * | param | |||
| ) |
| void ul_publish | ( | ucontact_t * | c, | |
| int | type, | |||
| void * | param | |||
| ) |
Definition at line 188 of file ul_publish.c.
References ucontact::aor, publ_info::body, build_pidf(), ucontact::callid, publ_info::content_type, default_domain, ERR_PUBLISH_NO_BODY, publ_info::event, ucontact::expires, publ_info::expires, publ_info::extra_headers, publ_info::flag, publ_info::id, INSERT_TYPE, _str::len, LM_DBG, LM_ERR, LM_INFO, NULL, pkg_free, pkg_malloc, publ_info::pres_uri, PRESENCE_EVENT, print_publ(), pua_send_publish, pua_ul_publish, _str::s, publ_info::source_flag, UL_CONTACT_DELETE, UL_CONTACT_EXPIRE, UL_CONTACT_INSERT, UL_CONTACT_UPDATE, ul_publish(), UL_PUBLISH, and UPDATE_TYPE.
Referenced by mod_init(), and ul_publish().
1.5.6