Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#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 = 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 | pidf_body_generator |
#define MAX_STRING_GROWTHS 5 |
Definition at line 83 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 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, ast_sip_pubsub_register_body_generator(), and pidf_body_generator.
|
static |
Definition at line 38 of file res_pjsip_pidf_body_generator.c.
References ast_strdupa, ast_strip_quoted(), 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, MAX_STRING_GROWTHS, and str.
|
static |
Definition at line 125 of file res_pjsip_pidf_body_generator.c.
References ast_sip_pubsub_unregister_body_generator(), and pidf_body_generator.
|
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.
Referenced by load_module(), and unload_module().