#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.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "PJSIP MWI resource" , .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 | mwi_generator |
|
◆ MWI_SUBTYPE
#define MWI_SUBTYPE "simple-message-summary" |
◆ MWI_TYPE
#define MWI_TYPE "application" |
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ mwi_allocate_body()
static void * mwi_allocate_body |
( |
void * |
data | ) |
|
|
static |
Definition at line 41 of file res_pjsip_mwi_body_generator.c.
42{
44
46 if (!mwi_str) {
48 }
50 if (!*mwi_str) {
53 }
54 return mwi_str;
55}
#define ast_malloc(len)
A wrapper for malloc()
#define ast_str_create(init_len)
Create a malloc'ed dynamic length string.
Support for dynamic strings.
References ast_free, ast_malloc, ast_str_create, and NULL.
◆ mwi_destroy_body()
static void mwi_destroy_body |
( |
void * |
body | ) |
|
|
static |
◆ mwi_generate_body_content()
static int mwi_generate_body_content |
( |
void * |
body, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ mwi_to_string()
static void mwi_to_string |
( |
void * |
body, |
|
|
struct ast_str ** |
str |
|
) |
| |
|
static |
Definition at line 73 of file res_pjsip_mwi_body_generator.c.
74{
76
78}
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
References ast_str_buffer(), ast_str_set(), and str.
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "PJSIP MWI resource" , .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 |
◆ ast_module_info
◆ mwi_generator