| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
#include "asterisk.h"#include <pjsip.h>#include <pjsip_simple.h>#include <pjlib.h>#include "asterisk/module.h"#include "asterisk/res_pjsip.h"#include "asterisk/res_pjsip_pubsub.h"#include "asterisk/res_pjsip_presence_xml.h"#include "asterisk/res_pjsip_body_generator_types.h"
Go to the source code of this file.
| Macros | |
| #define | MAX_STRING_GROWTHS 5 | 
| Functions | |
| static void | __reg_module (void) | 
| static void | __unreg_module (void) | 
| struct ast_module * | AST_MODULE_SELF_SYM (void) | 
| static int | load_module (void) | 
| static int | unload_module (void) | 
| static void | unregister_all (void) | 
| static void * | xpidf_allocate_body (void *data) | 
| static int | xpidf_generate_body_content (void *body, void *data) | 
| static void | xpidf_to_string (void *body, struct ast_str **str) | 
| Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "PJSIP Extension State PIDF Provider" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_CHANNEL_DEPEND, .requires = "res_pjsip,res_pjsip_pubsub", } | 
| static const struct ast_module_info * | ast_module_info = &__mod_info | 
| static struct ast_sip_pubsub_body_generator | cpim_pidf_body_generator | 
| static struct ast_sip_pubsub_body_generator | xpidf_body_generator | 
| #define MAX_STRING_GROWTHS 5 | 
Definition at line 99 of file res_pjsip_xpidf_body_generator.c.
| 
 | static | 
Definition at line 178 of file res_pjsip_xpidf_body_generator.c.
| 
 | static | 
Definition at line 178 of file res_pjsip_xpidf_body_generator.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 178 of file res_pjsip_xpidf_body_generator.c.
| 
 | static | 
Definition at line 149 of file res_pjsip_xpidf_body_generator.c.
References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_sip_pubsub_register_body_generator(), cpim_pidf_body_generator, unregister_all(), and xpidf_body_generator.
| 
 | static | 
Definition at line 166 of file res_pjsip_xpidf_body_generator.c.
References unregister_all().
| 
 | static | 
Definition at line 143 of file res_pjsip_xpidf_body_generator.c.
References ast_sip_pubsub_unregister_body_generator(), cpim_pidf_body_generator, and xpidf_body_generator.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 38 of file res_pjsip_xpidf_body_generator.c.
References ast_strdupa, ast_strip_quoted(), ast_sip_exten_state_data::local, name, and ast_sip_exten_state_data::pool.
| 
 | static | 
Definition at line 49 of file res_pjsip_xpidf_body_generator.c.
References ast_sip_presence_exten_state_to_str(), ast_sip_presence_xml_create_attr(), ast_sip_presence_xml_find_node_attr(), ast_sip_sanitize_xml(), ast_sip_exten_state_data::exten, ast_sip_exten_state_data::exten_state, NOTIFY_INUSE, NOTIFY_OPEN, NULL, ast_sip_exten_state_data::pool, ast_sip_exten_state_data::remote, and status.
| 
 | static | 
Definition at line 101 of file res_pjsip_xpidf_body_generator.c.
References ast_log, AST_PJSIP_XML_PROLOG_LEN, ast_str_buffer(), ast_str_make_space, ast_str_size(), ast_str_update(), LOG_WARNING, MAX_STRING_GROWTHS, and str.
| 
 | static | 
Definition at line 178 of file res_pjsip_xpidf_body_generator.c.
| 
 | static | 
Definition at line 178 of file res_pjsip_xpidf_body_generator.c.
| 
 | static | 
Definition at line 133 of file res_pjsip_xpidf_body_generator.c.
Referenced by load_module(), and unregister_all().
| 
 | static | 
Definition at line 123 of file res_pjsip_xpidf_body_generator.c.
Referenced by load_module(), and unregister_all().