29#include <pjsip_simple.h>
38#define MWI_TYPE "application"
39#define MWI_SUBTYPE "simple-message-summary"
117 .
requires =
"res_pjsip,res_pjsip_pubsub",
Asterisk main include file. File version handling, generic pbx functions.
#define ast_malloc(len)
A wrapper for malloc()
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODPRI_CHANNEL_DEPEND
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
static void mwi_to_string(void *body, struct ast_str **str)
static void mwi_destroy_body(void *body)
static int load_module(void)
static struct ast_sip_pubsub_body_generator mwi_generator
static int unload_module(void)
static void * mwi_allocate_body(void *data)
static int mwi_generate_body_content(void *body, void *data)
void ast_sip_pubsub_unregister_body_generator(struct ast_sip_pubsub_body_generator *generator)
Unregister a body generator with the pubsub core.
int ast_sip_pubsub_register_body_generator(struct ast_sip_pubsub_body_generator *generator)
Register a body generator with the pubsub core.
#define AST_SIP_MESSAGE_ACCUMULATOR
String manipulation functions.
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
#define ast_str_create(init_len)
Create a malloc'ed dynamic length string.
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
Message counter used for message-summary XML bodies.
char message_account[PJSIP_MAX_URL_SIZE]
const char * type
Content type In "plain/text", "plain" is the type.
Support for dynamic strings.