36 #include "asterisk/module.h"
43 char *buf,
size_t len)
60 ptr = popen(data,
"r");
62 while (fgets(plbuff,
sizeof(plbuff), ptr)) {
63 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_custom_function_register_escalating(acf, escalation)
Register a custom function which requires escalated privileges.
General Asterisk PBX channel definitions.
static int load_module(void)
static force_inline int attribute_pure ast_strlen_zero(const char *s)
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)
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...
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
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.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.