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 void * | pidf_allocate_body (void *data) |
static int | pidf_generate_body_content (void *body, void *data) |
static void | pidf_to_string (void *body, struct ast_str **str) |
static int | unload_module (void) |
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 = "30ef0c93b36035ec78c9cfd712d36d9b" , .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 | pidf_body_generator |
#define MAX_STRING_GROWTHS 5 |
Definition at line 83 of file res_pjsip_pidf_body_generator.c.
Referenced by pidf_to_string().
|
static |
Definition at line 137 of file res_pjsip_pidf_body_generator.c.
|
static |
Definition at line 137 of file res_pjsip_pidf_body_generator.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 137 of file res_pjsip_pidf_body_generator.c.
|
static |
Definition at line 117 of file res_pjsip_pidf_body_generator.c.
References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and ast_sip_pubsub_register_body_generator().
Referenced by unload_module().
|
static |
Definition at line 38 of file res_pjsip_pidf_body_generator.c.
References ast_strdupa, ast_strip_quoted(), entity, ast_sip_exten_state_data::local, and ast_sip_exten_state_data::pool.
|
static |
Definition at line 50 of file res_pjsip_pidf_body_generator.c.
References ast_log, ast_sip_presence_exten_state_to_str(), ast_sip_sanitize_xml(), ast_sip_exten_state_data::exten, ast_sip_exten_state_data::exten_state, id, LOG_WARNING, NOTIFY_INUSE, NOTIFY_OPEN, NULL, ast_sip_exten_state_data::pool, priority, and ast_sip_exten_state_data::remote.
|
static |
Definition at line 85 of file res_pjsip_pidf_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 125 of file res_pjsip_pidf_body_generator.c.
References AST_MODFLAG_LOAD_ORDER, AST_MODPRI_CHANNEL_DEPEND, AST_MODULE_INFO(), AST_MODULE_SUPPORT_CORE, ast_sip_pubsub_unregister_body_generator(), ASTERISK_GPL_KEY, and load_module().
|
static |
Definition at line 137 of file res_pjsip_pidf_body_generator.c.
|
static |
Definition at line 137 of file res_pjsip_pidf_body_generator.c.
|
static |
Definition at line 107 of file res_pjsip_pidf_body_generator.c.