58 ptr = popen(data,
"r");
60 while (fgets(plbuff,
sizeof(plbuff), ptr)) {
61 strncat(buf, plbuff, len - strlen(buf) - 1);
static int unload_module(void)
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
int ast_autoservice_start(struct ast_channel *chan)
Automatically service a channel for us...
static struct ast_custom_function shell_function
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
#define ast_strlen_zero(foo)
#define ast_custom_function_register_escalating(acf, escalation)
Register a custom function which requires escalated privileges.
General Asterisk PBX channel definitions.
static int load_module(void)
Data structure associated with a custom dialplan function.
Core PBX routines and definitions.
int ast_autoservice_stop(struct ast_channel *chan)
Stop servicing a channel for us...
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
static int shell_helper(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
#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...