109static char *
app =
"System";
111static char *
app2 =
"TrySystem";
136 ast_log(
LOG_NOTICE,
"It is not necessary to quote the argument to the System application.\n");
141 if ((res < 0) && (
errno != ECHILD)) {
145 }
else if (res == 127) {
static int system_exec(struct ast_channel *chan, const char *data)
static struct ast_threadstorage buf_buf
static int load_module(void)
static int trysystem_exec(struct ast_channel *chan, const char *data)
static int unload_module(void)
static int system_exec_helper(struct ast_channel *chan, const char *data, int failmode)
Asterisk main include file. File version handling, generic pbx functions.
General Asterisk PBX channel definitions.
int ast_autoservice_stop(struct ast_channel *chan)
Stop servicing a channel for us...
int ast_autoservice_start(struct ast_channel *chan)
Automatically service a channel for us...
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
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.
int ast_safe_system(const char *s)
Safely spawn an OS shell command while closing file descriptors.
Asterisk module definitions.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#define ASTERISK_GPL_KEY
The text the key() function should return.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Core PBX routines and definitions.
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.
String manipulation functions.
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)
size_t ast_str_strlen(const struct ast_str *buf)
Returns the current length of the string stored within buf.
struct ast_str * ast_str_thread_get(struct ast_threadstorage *ts, size_t init_len)
Retrieve a thread locally stored dynamic string.
Main Channel structure associated with a channel.
Support for dynamic strings.
structure for queuing ARI channel variable setting
Definitions to aid in the use of thread local storage.
#define AST_THREADSTORAGE(name)
Define a thread storage variable.