| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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 | |
| AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "If Branch and Conditional Execution") | |
| static int | else_exec (struct ast_channel *chan, const char *data) | 
| static int | elseif_exec (struct ast_channel *chan, const char *data) | 
| static int | end_exec (struct ast_channel *chan, const char *data) | 
| static int | exit_exec (struct ast_channel *chan, const char *data) | 
| static int | find_matching_endif (struct ast_channel *chan, const char *otherapp) | 
| 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_exec (struct ast_channel *chan, const char *data) | 
| static int | if_helper (struct ast_channel *chan, const char *data, int end) | 
| static int | load_module (void) | 
| static int | unload_module (void) | 
| Variables | |
| static char * | else_app = "Else" | 
| static char * | elseif_app = "ElseIf" | 
| static char * | exit_app = "ExitIf" | 
| static char * | if_app = "If" | 
| static char * | stop_app = "EndIf" | 
If Branch Implementation.
Definition in file app_if.c.
| AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , | 
| "If Branch and Conditional Execution" | |||
| ) | 
| 
 | static | 
Definition at line 376 of file app_if.c.
References ast_exten::data, and if_helper().
Referenced by load_module().
| 
 | static | 
Definition at line 368 of file app_if.c.
References ast_exten::data, and if_helper().
Referenced by load_module().
| 
 | static | 
Definition at line 372 of file app_if.c.
References ast_exten::data, and if_helper().
Referenced by load_module().
| 
 | static | 
Definition at line 380 of file app_if.c.
References ast_exten::data, and if_helper().
Referenced by load_module().
| 
 | static | 
Definition at line 203 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_helper().
| 
 | static | 
Definition at line 166 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(), c, find_matching_priority(), NULL, and priority.
Referenced by find_matching_endif(), and find_matching_priority().
| 
 | static | 
Definition at line 158 of file app_if.c.
References pbx_builtin_getvar_helper(), prefix, and VAR_SIZE.
Referenced by if_helper().
| 
 | static | 
Definition at line 364 of file app_if.c.
References ast_exten::data, and if_helper().
Referenced by load_module().
| 
 | static | 
Definition at line 253 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, ast_exten::data, end, 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 else_exec(), elseif_exec(), end_exec(), exit_exec(), and if_exec().
| 
 | static | 
Definition at line 397 of file app_if.c.
References ast_register_application_xml, else_app, else_exec(), elseif_app, elseif_exec(), end_exec(), exit_app, exit_exec(), if_app, if_exec(), and stop_app.
| 
 | static | 
Definition at line 384 of file app_if.c.
References ast_unregister_application(), else_app, elseif_app, exit_app, if_app, and stop_app.
| 
 | static | 
Definition at line 152 of file app_if.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 151 of file app_if.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 154 of file app_if.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 150 of file app_if.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 153 of file app_if.c.
Referenced by load_module(), and unload_module().