Asterisk - The Open Source Telephony Project GIT-master-b023714
|
#include "asterisk.h"
#include <pjsip.h>
#include <pjsip_simple.h>
#include <pjlib.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/res_pjsip_pubsub.h"
#include "asterisk/res_pjsip_body_generator_types.h"
#include "asterisk/module.h"
#include "asterisk/strings.h"
Go to the source code of this file.
Macros | |
#define | MWI_SUBTYPE "simple-message-summary" |
#define | MWI_TYPE "application" |
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 * | mwi_allocate_body (void *data) |
static void | mwi_destroy_body (void *body) |
static int | mwi_generate_body_content (void *body, void *data) |
static void | mwi_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 MWI resource" , .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 | mwi_generator |
#define MWI_SUBTYPE "simple-message-summary" |
Definition at line 39 of file res_pjsip_mwi_body_generator.c.
#define MWI_TYPE "application" |
Definition at line 38 of file res_pjsip_mwi_body_generator.c.
|
static |
Definition at line 118 of file res_pjsip_mwi_body_generator.c.
|
static |
Definition at line 118 of file res_pjsip_mwi_body_generator.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 118 of file res_pjsip_mwi_body_generator.c.
|
static |
Definition at line 98 of file res_pjsip_mwi_body_generator.c.
References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_sip_pubsub_register_body_generator(), and mwi_generator.
|
static |
Definition at line 41 of file res_pjsip_mwi_body_generator.c.
References ast_free, ast_malloc, ast_str_create, and NULL.
|
static |
|
static |
Definition at line 57 of file res_pjsip_mwi_body_generator.c.
References ast_str_append(), ast_strlen_zero(), ast_sip_message_accumulator::message_account, ast_sip_message_accumulator::new_msgs, and ast_sip_message_accumulator::old_msgs.
|
static |
Definition at line 73 of file res_pjsip_mwi_body_generator.c.
References ast_str_buffer(), ast_str_set(), and str.
|
static |
Definition at line 106 of file res_pjsip_mwi_body_generator.c.
References ast_sip_pubsub_unregister_body_generator(), and mwi_generator.
|
static |
Definition at line 118 of file res_pjsip_mwi_body_generator.c.
|
static |
Definition at line 118 of file res_pjsip_mwi_body_generator.c.
|
static |
Definition at line 88 of file res_pjsip_mwi_body_generator.c.
Referenced by load_module(), and unload_module().