38 #include "asterisk/file.h"
77 static const char *
const app =
"SendText";
81 char *
status =
"UNSUPPORTED";
#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)
char * ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
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.
#define ast_str_alloca(init_len)
int ast_unregister_application(const char *app)
Unregister an application.
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 ...
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
#define ast_channel_unlock(chan)
int(*const send_text)(struct ast_channel *chan, const char *text)
Display or transmit 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...
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
static const char *const app
static int unload_module(void)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
struct ast_channel_tech * tech
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.
int ast_sendtext(struct ast_channel *chan, const char *text)
Sends text to a channel.