212    const char *while_pri = 
NULL;
 
  213    char *my_name = 
NULL;
 
  216    const char *
prefix = 
"WHILE";
 
  218    int used_index_i = -1, x=0;
 
  244    snprintf(used_index, 
VAR_SIZE, 
"%d", used_index_i);
 
  245    snprintf(new_index, 
VAR_SIZE, 
"%d", used_index_i + 1);
 
  252    memset(my_name, 0, size);
 
  265        snprintf(end_varname,
VAR_SIZE,
"END_%s",varname);
 
  272        const char *goto_str;
 
  275        snprintf(end_varname,
VAR_SIZE,
"END_%s",varname);
 
  283                ast_verb(3, 
"Jumping to priority %d\n", pri);
 
  293    if (!
end && !while_pri) {
 
  297        memset(goto_str, 0, size);
 
  302    else if (
end && while_pri) {
 
  304        snprintf(end_varname, 
VAR_SIZE, 
"END_%s", varname);
 
  309            memset(goto_str, 0, size);
 
 
  334    const char *
prefix = 
"WHILE", *while_pri=
NULL;
 
 
struct ast_context * ast_walk_contexts(void)
static const char * get_index(struct ast_channel *chan, const char *prefix, int idx)
static struct ast_exten * find_matching_priority(struct ast_context *c, const char *exten, int priority, const char *callerid)
static int while_end_exec(struct ast_channel *chan, const char *data)
static int while_exit_exec(struct ast_channel *chan, const char *data)
static int _while_exec(struct ast_channel *chan, const char *data, int end)
static int while_start_exec(struct ast_channel *chan, const char *data)
static int find_matching_endwhile(struct ast_channel *chan)
static char * continue_app
static int load_module(void)
static int unload_module(void)
static int while_continue_exec(struct ast_channel *chan, const char *data)
Asterisk main include file. File version handling, generic pbx functions.
#define ast_alloca(size)
call __builtin_alloca to ensure we get gcc builtin semantics
#define ast_strdupa(s)
duplicate a string in memory from the stack
General Asterisk PBX channel definitions.
int ast_waitfordigit(struct ast_channel *c, int ms)
Waits for a digit.
#define ast_channel_lock(chan)
int ast_channel_priority(const struct ast_channel *chan)
const char * ast_channel_context(const struct ast_channel *chan)
struct ast_party_caller * ast_channel_caller(struct ast_channel *chan)
void ast_channel_priority_set(struct ast_channel *chan, int value)
const char * ast_channel_exten(const struct ast_channel *chan)
#define ast_channel_unlock(chan)
static char prefix[MAX_PREFIX]
#define ast_verb(level,...)
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 ast_get_extension_priority(struct ast_exten *exten)
int ast_get_extension_matchcid(struct ast_exten *e)
const char * ast_get_extension_app(struct ast_exten *e)
const char * ast_get_extension_cidmatch(struct ast_exten *e)
const char * pbx_builtin_getvar_helper(struct ast_channel *chan, const char *name)
Return a pointer to the value of the corresponding channel variable.
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.
const char * ast_get_include_name(const struct ast_include *include)
int ast_unlock_context(struct ast_context *con)
struct ast_exten * ast_walk_extension_priorities(struct ast_exten *exten, struct ast_exten *priority)
const char * ast_get_context_name(struct ast_context *con)
int ast_extension_match(const char *pattern, const char *extension)
Determine if a given extension matches a given pattern (in NXX format)
int ast_rdlock_contexts(void)
Read locks the context list.
const struct ast_include * ast_context_includes_get(const struct ast_context *con, int idx)
struct ast_exten * ast_walk_context_extensions(struct ast_context *con, struct ast_exten *priority)
int pbx_checkcondition(const char *condition)
Evaluate a condition.
int ast_unlock_contexts(void)
Unlocks contexts.
int ast_parseable_goto(struct ast_channel *chan, const char *goto_string)
int ast_context_includes_count(const struct ast_context *con)
const char * ast_get_extension_name(struct ast_exten *exten)
int ast_rdlock_context(struct ast_context *con)
Read locks a given context.
#define S_COR(a, b, c)
returns the equivalent of logic or for strings, with an additional boolean check: second one if not e...
Main Channel structure associated with a channel.
ast_context: An extension context
ast_exten: An extension The dialplan is saved as a linked list with each context having it's own link...
ast_include: include= support in extensions.conf