Asterisk - The Open Source Telephony Project
18.5.0
|
#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 = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .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.
Referenced by xpidf_to_string().
|
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(), and unregister_all().
Referenced by unload_module().
|
static |
Definition at line 166 of file res_pjsip_xpidf_body_generator.c.
References AST_MODFLAG_LOAD_ORDER, AST_MODPRI_CHANNEL_DEPEND, AST_MODULE_INFO(), AST_MODULE_SUPPORT_CORE, ASTERISK_GPL_KEY, load_module(), and unregister_all().
|
static |
Definition at line 143 of file res_pjsip_xpidf_body_generator.c.
References ast_sip_pubsub_unregister_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, and MAX_STRING_GROWTHS.
|
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.
|
static |
Definition at line 123 of file res_pjsip_xpidf_body_generator.c.