114 const char *realcontext, *realexten;
125 context =
strsep(&parse,
",");
126 exten =
strsep(&parse,
",");
127 pri =
strsep(&parse,
",");
139 ast_debug(1,
"Context, extension, priority: %s, %s, %s\n", context, exten, pri);
140 if (sscanf(pri,
"%30d", &ipri) != 1) {
149 ast_debug(1,
"Context, extension, priority: %s, %s, %d\n", context, exten, ipri);
186 .
name =
"EVAL_EXTEN",
struct ast_party_caller * ast_channel_caller(struct ast_channel *chan)
static int unload_module(void)
#define ast_channel_lock(chan)
static char exten[AST_MAX_EXTENSION]
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
ast_exten: An extension The dialplan is saved as a linked list with each context having it's own link...
static struct ast_custom_function eval_exten_function
void * ast_get_extension_app_data(struct ast_exten *e)
int ast_rdlock_contexts(void)
Read locks the context list.
int ast_channel_priority(const struct ast_channel *chan)
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
#define ast_strlen_zero(foo)
#define ast_debug(level,...)
Log a DEBUG message.
General Asterisk PBX channel definitions.
Data structure associated with a custom dialplan function.
#define S_COR(a, b, c)
returns the equivalent of logic or for strings, with an additional boolean check: second one if not e...
#define ast_strdupa(s)
duplicate a string in memory from the stack
static int get_extension_data(char *name, int namesize, struct ast_channel *c, const char *context, const char *exten, int priority)
static int eval_exten_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
const char * ast_channel_exten(const struct ast_channel *chan)
Core PBX routines and definitions.
int ast_unlock_contexts(void)
Unlocks contexts.
int ast_findlabel_extension(struct ast_channel *c, const char *context, const char *exten, const char *label, const char *callerid)
Find the priority of an extension that has the specified label.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
#define ast_channel_unlock(chan)
static void parse(struct mgcp_request *req)
void ast_channel_exten_set(struct ast_channel *chan, const char *value)
char * strsep(char **str, const char *delims)
void ast_channel_context_set(struct ast_channel *chan, const char *value)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
void pbx_substitute_variables_helper(struct ast_channel *c, const char *cp1, char *cp2, int count)
const char * ast_channel_context(const struct ast_channel *chan)
static char context[AST_MAX_CONTEXT]
#define ASTERISK_GPL_KEY
The text the key() function should return.
void ast_channel_priority_set(struct ast_channel *chan, int value)
Asterisk module definitions.
struct ast_exten * pbx_find_extension(struct ast_channel *chan, struct ast_context *bypass, struct pbx_find_info *q, const char *context, const char *exten, int priority, const char *label, const char *callerid, enum ext_match_t action)
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
#define ast_custom_function_register(acf)
Register a custom function.
static int load_module(void)