29 #include <pjsip_simple.h> 38 #define MWI_TYPE "application" 39 #define MWI_SUBTYPE "simple-message-summary" 117 .requires =
"res_pjsip,res_pjsip_pubsub",
#define AST_SIP_MESSAGE_ACCUMULATOR
Asterisk main include file. File version handling, generic pbx functions.
String manipulation functions.
const char * type
Content type In "plain/text", "plain" is the type.
static int load_module(void)
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Message counter used for message-summary XML bodies.
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
int ast_sip_pubsub_register_body_generator(struct ast_sip_pubsub_body_generator *generator)
Register a body generator with the pubsub core.
#define ast_strlen_zero(foo)
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
static int unload_module(void)
#define ast_malloc(len)
A wrapper for malloc()
static int mwi_generate_body_content(void *body, void *data)
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
static struct ast_sip_pubsub_body_generator mwi_generator
Module has failed to load, may be in an inconsistent state.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
static void mwi_to_string(void *body, struct ast_str **str)
static void mwi_destroy_body(void *body)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_str_create(init_len)
Create a malloc'ed dynamic length string.
char message_account[PJSIP_MAX_URL_SIZE]
void ast_sip_pubsub_unregister_body_generator(struct ast_sip_pubsub_body_generator *generator)
Unregister a body generator with the pubsub core.
static void * mwi_allocate_body(void *data)