Asterisk - The Open Source Telephony Project
18.5.0
|
Dial plan macro Implementation. More...
#include "asterisk.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/extconf.h"
#include "asterisk/config.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
Go to the source code of this file.
Macros | |
#define | MACRO_EXIT_RESULT 1024 |
#define | MAX_ARGS 80 |
Functions | |
static int | _macro_exec (struct ast_channel *chan, const char *data, int exclusive) |
AST_MODULE_INFO_STANDARD_DEPRECATED (ASTERISK_GPL_KEY, "Extension Macros") | |
static struct ast_exten * | find_matching_priority (struct ast_context *c, const char *exten, int priority, const char *callerid, int iter, int *had_error) |
static int | load_module (void) |
static int | macro_exec (struct ast_channel *chan, const char *data) |
static int | macro_exit_exec (struct ast_channel *chan, const char *data) |
static void | macro_fixup (void *data, struct ast_channel *old_chan, struct ast_channel *new_chan) |
static int | macroexclusive_exec (struct ast_channel *chan, const char *data) |
static int | macroif_exec (struct ast_channel *chan, const char *data) |
static int | unload_module (void) |
Variables | |
static char * | app = "Macro" |
static char * | exclusive_app = "MacroExclusive" |
static char * | exit_app = "MacroExit" |
static char * | if_app = "MacroIf" |
static const struct ast_datastore_info | macro_ds_info |
Dial plan macro Implementation.
Definition in file app_macro.c.
#define MACRO_EXIT_RESULT 1024 |
Definition at line 158 of file app_macro.c.
Referenced by _macro_exec(), and macro_exit_exec().
#define MAX_ARGS 80 |
Definition at line 155 of file app_macro.c.
Referenced by _macro_exec().
|
static |
Definition at line 236 of file app_macro.c.
References app2, ast_autoservice_start(), ast_autoservice_stop(), ast_channel_caller(), ast_channel_context(), ast_channel_context_set(), ast_channel_datastore_add(), ast_channel_datastore_find(), ast_channel_exten(), ast_channel_exten_set(), ast_channel_flags(), ast_channel_lock, ast_channel_macrocontext(), ast_channel_macrocontext_set(), ast_channel_macroexten(), ast_channel_macroexten_set(), ast_channel_macropriority_set(), ast_channel_name(), ast_channel_priority(), ast_channel_priority_set(), ast_channel_softhangup_internal_flag(), ast_channel_unlock, ast_check_hangup(), ast_context_find(), ast_context_lockmacro(), ast_context_unlockmacro(), ast_copy_string(), ast_datastore_alloc, ast_debug, ast_exists_extension(), AST_FLAG_IN_AUTOLOOP, AST_FLAG_SUBROUTINE_EXEC, ast_free, ast_get_context_name(), ast_get_extension_app(), ast_get_extension_app_data(), ast_log, AST_MAX_CONTEXT, ast_rdlock_context(), ast_rdlock_contexts(), ast_set2_flag, ast_set_flag, AST_SOFTHANGUP_ASYNCGOTO, ast_spawn_extension(), ast_str_buffer(), ast_str_create, ast_str_substitute_variables(), ast_strdup, ast_strdupa, ast_strlen_zero, ast_test_flag, ast_unlock_context(), ast_unlock_contexts(), ast_verb, ast_walk_contexts(), c, cond, DATASTORE_INHERIT_FOREVER, deprecation_notice(), find_matching_priority(), ast_datastore::inheritance, LOG_ERROR, LOG_WARNING, MACRO_EXIT_RESULT, MAX_ARGS, NULL, out, pbx_builtin_getvar_helper(), pbx_builtin_setvar_helper(), pbx_checkcondition(), S_COR, strsep(), and tmp().
Referenced by macro_exec(), and macroexclusive_exec().
AST_MODULE_INFO_STANDARD_DEPRECATED | ( | ASTERISK_GPL_KEY | , |
"Extension Macros" | |||
) |
Referenced by load_module().
|
static |
Definition at line 190 of file app_macro.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_log, AST_PBX_MAX_STACK, ast_walk_context_extensions(), ast_walk_contexts(), ast_walk_extension_priorities(), LOG_ERROR, and NULL.
Referenced by _macro_exec().
|
static |
Definition at line 677 of file app_macro.c.
References app, AST_MODULE_INFO_STANDARD_DEPRECATED(), ast_register_application_xml, ASTERISK_GPL_KEY, exclusive_app, exit_app, if_app, macro_exec(), macro_exit_exec(), macroexclusive_exec(), and macroif_exec().
|
static |
Definition at line 626 of file app_macro.c.
References _macro_exec().
Referenced by load_module(), and macroif_exec().
|
static |
Definition at line 660 of file app_macro.c.
References MACRO_EXIT_RESULT.
Referenced by load_module().
|
static |
Definition at line 172 of file app_macro.c.
References NULL, pbx_builtin_getvar_helper(), and pbx_builtin_setvar_helper().
|
static |
Definition at line 631 of file app_macro.c.
References _macro_exec().
Referenced by load_module().
|
static |
Definition at line 636 of file app_macro.c.
References ast_log, ast_strdupa, LOG_WARNING, macro_exec(), NULL, and pbx_checkcondition().
Referenced by load_module().
|
static |
Definition at line 665 of file app_macro.c.
References app, ast_unregister_application(), exclusive_app, exit_app, and if_app.
|
static |
Definition at line 160 of file app_macro.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 162 of file app_macro.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 163 of file app_macro.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 161 of file app_macro.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 167 of file app_macro.c.