147 static const char *
const app =
"SendText";
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)
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
static int sendtext_exec(struct ast_channel *chan, const char *data)
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...
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
Out-of-call text message support.
int ast_unregister_application(const char *app)
Unregister an application.
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)
General Asterisk PBX channel definitions.
static int load_module(void)
Core PBX routines and definitions.
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)
union ast_frame::@263 data
static const char *const app
static int unload_module(void)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
const struct ast_channel_tech * ast_channel_tech(const struct ast_channel *chan)
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
int ast_sendtext(struct ast_channel *chan, const char *text)
Sends text to a channel.