Asterisk - The Open Source Telephony Project
18.5.0
|
If Branch 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 int | _if_exec (struct ast_channel *chan, const char *data, int end) |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "If Branch and Conditional Execution") | |
static int | find_matching_endif (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 | if_end_exec (struct ast_channel *chan, const char *data) |
static int | if_exit_exec (struct ast_channel *chan, const char *data) |
static int | if_start_exec (struct ast_channel *chan, const char *data) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static char * | exit_app = "ExitIf" |
static char * | start_app = "If" |
static char * | stop_app = "EndIf" |
If Branch Implementation.
Definition in file app_if.c.
#define VAR_SIZE 64 |
Definition at line 87 of file app_if.c.
Referenced by _if_exec(), and get_index().
|
static |
Definition at line 179 of file app_if.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, find_matching_endif(), get_index(), ast_exten::label, LOG_WARNING, NULL, pbx_builtin_getvar_helper(), pbx_builtin_setvar_helper(), pbx_checkcondition(), prefix, and VAR_SIZE.
Referenced by if_end_exec(), if_exit_exec(), and if_start_exec().
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"If Branch and Conditional Execution" | |||
) |
Referenced by load_module().
|
static |
Definition at line 134 of file app_if.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 _if_exec().
|
static |
Definition at line 97 of file app_if.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_endif().
|
static |
Definition at line 90 of file app_if.c.
References pbx_builtin_getvar_helper(), and VAR_SIZE.
Referenced by _if_exec().
|
static |
Definition at line 278 of file app_if.c.
References _if_exec().
Referenced by load_module().
|
static |
Definition at line 282 of file app_if.c.
References _if_exec().
Referenced by load_module().
|
static |
Definition at line 274 of file app_if.c.
References _if_exec().
Referenced by load_module().
|
static |
Definition at line 297 of file app_if.c.
References AST_MODULE_INFO_STANDARD_EXTENDED(), ast_register_application_xml, ASTERISK_GPL_KEY, exit_app, if_end_exec(), if_exit_exec(), if_start_exec(), start_app, and stop_app.
|
static |
Definition at line 286 of file app_if.c.
References ast_unregister_application(), exit_app, start_app, and stop_app.
|
static |
Definition at line 85 of file app_if.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 83 of file app_if.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 84 of file app_if.c.
Referenced by load_module(), and unload_module().