156 const char *content_type;
165 body =
S_OR(body,
"");
175 status =
"UNSUPPORTED";
182 .value = (
char *)
S_OR(from,
""),
186 .value = (
char *)
S_OR(to,
""),
190 .value = (
char *)
S_OR(content_type,
""),
194 .value = (
char *)
S_OR(body,
""),
198 msg_type =
"ENHANCED";
#define ast_channel_lock(chan)
enum ast_msg_data_attribute_type type
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
Structure used to transport a message through the frame core.
struct ast_msg_data * ast_msg_data_alloc(enum ast_msg_data_source_type source, struct ast_msg_data_attribute attributes[], size_t count)
Allocates an ast_msg_data structure.
#define ast_str_alloca(init_len)
int ast_sendtext_data(struct ast_channel *chan, struct ast_msg_data *msg)
Sends text to a channel in an ast_msg_data structure wrapper with ast_sendtext as fallback...
int ast_str_get_encoded_str(struct ast_str **str, int maxlen, const char *stream)
Decode a stream of encoded control or extended ASCII characters.
const char * pbx_builtin_getvar_helper(struct ast_channel *chan, const char *name)
Return a pointer to the value of the corresponding channel variable.
#define ast_strlen_zero(foo)
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
#define ast_channel_unlock(chan)
static void * cleanup(void *unused)
static void send_text(unsigned char pos, unsigned char inverse, struct unistimsession *pte, const char *text)
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name...
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one...
static int force_inline attribute_pure ast_begins_with(const char *str, const char *prefix)
const struct ast_channel_tech * ast_channel_tech(const struct ast_channel *chan)
int ast_sendtext(struct ast_channel *chan, const char *text)
Sends text to a channel.