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);
struct ast_party_caller * ast_channel_caller(struct ast_channel *chan)
#define ast_channel_lock(chan)
static char exten[AST_MAX_EXTENSION]
int ast_channel_priority(const struct ast_channel *chan)
#define ast_strlen_zero(foo)
#define ast_debug(level,...)
Log a DEBUG message.
#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)
const char * ast_channel_exten(const struct ast_channel *chan)
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 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]
void ast_channel_priority_set(struct ast_channel *chan, int value)