Asterisk - The Open Source Telephony Project
18.5.0
|
While Loop Implementation. More...
#include "asterisk.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
Go to the source code of this file.
Macros | |
#define | VAR_SIZE 64 |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | _while_exec (struct ast_channel *chan, const char *data, int end) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | find_matching_endwhile (struct ast_channel *chan) |
static struct ast_exten * | find_matching_priority (struct ast_context *c, const char *exten, int priority, const char *callerid) |
static const char * | get_index (struct ast_channel *chan, const char *prefix, int idx) |
static int | load_module (void) |
static int | unload_module (void) |
static int | while_continue_exec (struct ast_channel *chan, const char *data) |
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_start_exec (struct ast_channel *chan, const char *data) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "While Loops and Conditional Execution" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static char * | continue_app = "ContinueWhile" |
static char * | exit_app = "ExitWhile" |
static char * | start_app = "While" |
static char * | stop_app = "EndWhile" |
While Loop Implementation.
Definition in file app_while.c.
#define VAR_SIZE 64 |
Definition at line 105 of file app_while.c.
Referenced by _while_exec(), and get_index().
|
static |
Definition at line 362 of file app_while.c.
|
static |
Definition at line 362 of file app_while.c.
|
static |
Definition at line 197 of file app_while.c.
References ast_alloca, ast_channel_context(), ast_channel_exten(), ast_channel_lock, ast_channel_priority(), ast_channel_priority_set(), ast_channel_unlock, ast_log, ast_parseable_goto(), ast_strdupa, ast_verb, ast_waitfordigit(), find_matching_endwhile(), get_index(), ast_exten::label, LOG_WARNING, NULL, pbx_builtin_getvar_helper(), pbx_builtin_setvar_helper(), pbx_checkcondition(), prefix, and VAR_SIZE.
Referenced by while_end_exec(), while_exit_exec(), and while_start_exec().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 362 of file app_while.c.
|
static |
Definition at line 152 of file app_while.c.
References ast_channel_caller(), ast_channel_context(), ast_channel_exten(), ast_channel_priority(), ast_get_context_name(), ast_get_extension_app(), ast_log, ast_rdlock_context(), ast_rdlock_contexts(), ast_unlock_context(), ast_unlock_contexts(), ast_walk_contexts(), c, find_matching_priority(), LOG_ERROR, NULL, and S_COR.
Referenced by _while_exec().
|
static |
Definition at line 115 of file app_while.c.
References ast_context_includes_count(), ast_context_includes_get(), ast_extension_match(), ast_get_context_name(), ast_get_extension_cidmatch(), ast_get_extension_matchcid(), ast_get_extension_name(), ast_get_extension_priority(), ast_get_include_name(), ast_walk_context_extensions(), ast_walk_contexts(), ast_walk_extension_priorities(), and NULL.
Referenced by find_matching_endwhile().
|
static |
Definition at line 108 of file app_while.c.
References pbx_builtin_getvar_helper(), and VAR_SIZE.
Referenced by _while_exec(), and while_continue_exec().
|
static |
Definition at line 350 of file app_while.c.
References ast_register_application_xml, continue_app, exit_app, start_app, stop_app, while_continue_exec(), while_end_exec(), while_exit_exec(), and while_start_exec().
|
static |
Definition at line 338 of file app_while.c.
References ast_unregister_application(), continue_app, exit_app, start_app, and stop_app.
|
static |
Definition at line 319 of file app_while.c.
References ast_parseable_goto(), get_index(), NULL, prefix, and tmp().
Referenced by load_module().
|
static |
Definition at line 311 of file app_while.c.
References _while_exec().
Referenced by load_module().
|
static |
Definition at line 315 of file app_while.c.
References _while_exec().
Referenced by load_module().
|
static |
Definition at line 307 of file app_while.c.
References _while_exec().
Referenced by load_module().
|
static |
Definition at line 362 of file app_while.c.
|
static |
Definition at line 362 of file app_while.c.
|
static |
Definition at line 103 of file app_while.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 102 of file app_while.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 100 of file app_while.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 101 of file app_while.c.
Referenced by load_module(), and unload_module().