33#ifndef ASTERISK_PJSIP_PRESENCE_XML_H
34#define ASTERISK_PJSIP_PRESENCE_XML_H
36#define AST_PJSIP_XML_PROLOG_LEN 39
77 unsigned int notify_early_inuse_ringing);
101 pj_xml_node *parent,
const char*
name);
119 pj_xml_node *parent,
const char *node_name,
const char *attr_name,
120 pj_xml_node **
node, pj_xml_attr **attr);
static int input(yyscan_t yyscanner)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
void ast_sip_sanitize_xml(const char *input, char *output, size_t len)
Replace offensive XML characters with XML entities.
void ast_sip_presence_xml_find_node_attr(pj_pool_t *pool, pj_xml_node *parent, const char *node_name, const char *attr_name, pj_xml_node **node, pj_xml_attr **attr)
Find an attribute within a given node.
void ast_sip_presence_exten_state_to_str(int state, char **statestring, char **pidfstate, char **pidfnote, enum ast_sip_pidf_state *local_state, unsigned int notify_early_inuse_ringing)
Convert extension state to relevant PIDF strings.
pj_xml_node * ast_sip_presence_xml_create_node(pj_pool_t *pool, pj_xml_node *parent, const char *name)
Create XML node.
pj_xml_attr * ast_sip_presence_xml_create_attr(pj_pool_t *pool, pj_xml_node *node, const char *name, const char *value)
Create XML attribute.