Asterisk - The Open Source Telephony Project
18.5.0
|
External configuration handlers (realtime and static configuration) More...
Go to the source code of this file.
Data Structures | |
struct | pbx_find_info |
Macros | |
#define | AST_PBX_MAX_STACK 512 |
#define | STATUS_NO_CONTEXT 1 |
#define | STATUS_NO_EXTENSION 2 |
#define | STATUS_NO_LABEL 4 |
#define | STATUS_NO_PRIORITY 3 |
#define | STATUS_SUCCESS 5 |
Enumerations | |
enum | ext_match_t { E_MATCHMORE = 0x00, E_CANMATCH = 0x01, E_MATCH = 0x02, E_MATCH_MASK = 0x03, E_SPAWN = 0x12, E_FINDLABEL = 0x22, E_MATCHMORE = 0x00, E_CANMATCH = 0x01, E_MATCH = 0x02, E_MATCH_MASK = 0x03, E_SPAWN = 0x12, E_FINDLABEL = 0x22 } |
External configuration handlers (realtime and static configuration)
Definition in file extconf.h.
#define AST_PBX_MAX_STACK 512 |
Definition at line 226 of file extconf.h.
Referenced by find_matching_priority(), handle_debug_dialplan(), handle_show_dialplan(), manager_show_dialplan(), manager_show_dialplan_helper(), pbx_find_extension(), and show_dialplan_helper().
#define STATUS_SUCCESS 5 |
Definition at line 249 of file extconf.h.
Referenced by check_goto(), and check_pval_item().
enum ext_match_t |
When looking up extensions, we can have different requests identified by the 'action' argument, as follows. Note that the coding is such that the low 4 bits are the third argument to extension_match_core.
Enumerator | |
---|---|
E_MATCHMORE | |
E_CANMATCH | |
E_MATCH | |
E_MATCH_MASK | |
E_SPAWN | |
E_FINDLABEL | |
E_MATCHMORE | |
E_CANMATCH | |
E_MATCH | |
E_MATCH_MASK | |
E_SPAWN | |
E_FINDLABEL |
Definition at line 215 of file extconf.h.
int localized_add_extension2 | ( | struct ast_context * | con, |
int | replace, | ||
const char * | extension, | ||
int | priority, | ||
const char * | label, | ||
const char * | callerid, | ||
const char * | application, | ||
void * | data, | ||
void(*)(void *) | datad, | ||
const char * | registrar | ||
) |
Definition at line 4898 of file extconf.c.
References ast_add_extension2(), and ast_exten::datad.
Referenced by ast_add_extension2().
struct ast_category * localized_category_get | ( | const struct ast_config * | config, |
const char * | category_name | ||
) |
Definition at line 2803 of file extconf.c.
References category_get().
Referenced by ast_category_new().
struct ast_config * localized_config_load | ( | const char * | filename | ) |
Definition at line 3287 of file extconf.c.
References ast_config_destroy(), ast_config_internal_load(), ast_config_new(), localized_config_load_with_comments(), NULL, and result.
Referenced by ast_config_new(), and pbx_load_config().
struct ast_config * localized_config_load_with_comments | ( | const char * | filename | ) |
Definition at line 3305 of file extconf.c.
References ast_config_destroy(), ast_config_internal_load(), ast_config_new(), NULL, and result.
Referenced by localized_config_load().
int localized_config_text_file_save | ( | const char * | configfile, |
const struct ast_config * | cfg, | ||
const char * | generator | ||
) |
Definition at line 3423 of file extconf.c.
References ast_log(), ast_verbose(), ast_variable::blanklines, ast_comment::cmt, errno, ast_config_include::exec, ast_config_include::exec_file, ast_variable::file, ast_category::file, gen_header(), ast_config_include::include_location_file, ast_config_include::include_location_lineno, ast_config_include::included_file, ast_config::includes, ast_variable::lineno, ast_category::lineno, LOG_DEBUG, ast_variable::name, ast_category::name, ast_comment::next, ast_variable::next, ast_category::next, ast_config_include::next, ast_variable::object, ast_config_include::output, ast_variable::precomments, ast_category::precomments, ast_category::root, ast_config::root, ast_variable::sameline, ast_category::sameline, set_fn(), ast_variable::value, var, and VERBOSE_PREFIX_2.
Referenced by set_fn().
int localized_context_add_ignorepat2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Definition at line 4601 of file extconf.c.
References ast_context_add_ignorepat2().
Referenced by ast_context_add_ignorepat2().
int localized_context_add_include2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Definition at line 4559 of file extconf.c.
References ast_context_add_ignorepat2(), and ast_context_add_include2().
Referenced by ast_context_add_include2().
int localized_context_add_switch2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | data, | ||
int | eval, | ||
const char * | registrar | ||
) |
Definition at line 4702 of file extconf.c.
References ast_context_add_switch2().
Referenced by ast_context_add_switch2().
void localized_context_destroy | ( | struct ast_context * | con, |
const char * | registrar | ||
) |
Definition at line 5565 of file extconf.c.
References __ast_context_destroy(), ast_unlock_contexts(), and ast_wrlock_contexts().
Referenced by __ast_context_destroy(), and ast_context_destroy().
struct ast_context * localized_context_find_or_create | ( | struct ast_context ** | extcontexts, |
void * | tab, | ||
const char * | name, | ||
const char * | registrar | ||
) |
Definition at line 4989 of file extconf.c.
References __ast_context_create().
Referenced by ast_context_find_or_create().
int localized_context_verify_includes | ( | struct ast_context * | con | ) |
Definition at line 5640 of file extconf.c.
References ast_context_verify_includes(), and localized_pbx_load_module().
Referenced by ast_context_verify_includes().
struct ast_exten * localized_find_extension | ( | struct ast_context * | bypass, |
struct pbx_find_info * | q, | ||
const char * | context, | ||
const char * | exten, | ||
int | priority, | ||
const char * | label, | ||
const char * | callerid, | ||
enum ext_match_t | action | ||
) |
Definition at line 4470 of file extconf.c.
References NULL, and pbx_find_extension().
Referenced by pbx_find_extension().
void localized_merge_contexts_and_delete | ( | struct ast_context ** | extcontexts, |
void * | tab, | ||
const char * | registrar | ||
) |
Definition at line 5618 of file extconf.c.
References ast_merge_contexts_and_delete().
Referenced by ast_merge_contexts_and_delete().
int localized_pbx_builtin_setvar | ( | struct ast_channel * | chan, |
const void * | data | ||
) |
Definition at line 2607 of file extconf.c.
References pbx_builtin_setvar().
Referenced by pbx_builtin_setvar().
int localized_pbx_load_module | ( | void | ) |
Definition at line 5647 of file extconf.c.
Referenced by main().
void localized_use_conf_dir | ( | void | ) |
void localized_use_local_dir | ( | void | ) |
struct ast_exten * localized_walk_context_extensions | ( | struct ast_context * | con, |
struct ast_exten * | exten | ||
) |
Definition at line 4053 of file extconf.c.
References ast_walk_context_extensions(), and ast_walk_extension_priorities().
Referenced by ast_walk_context_extensions(), and main().
struct ast_include * localized_walk_context_includes | ( | struct ast_context * | con, |
struct ast_include * | inc | ||
) |
Definition at line 4106 of file extconf.c.
References ast_walk_context_ignorepats(), and ast_walk_context_includes().
Referenced by ast_context_includes_count().
struct ast_sw * localized_walk_context_switches | ( | struct ast_context * | con, |
struct ast_sw * | sw | ||
) |
Definition at line 4152 of file extconf.c.
References ast_context_switches_count(), and ast_walk_context_switches().
Referenced by ast_walk_context_switches(), and main().
struct ast_context * localized_walk_contexts | ( | struct ast_context * | con | ) |
Definition at line 4032 of file extconf.c.
References ast_walk_context_extensions(), and ast_walk_contexts().
Referenced by ast_walk_contexts(), and main().
struct ast_exten * localized_walk_extension_priorities | ( | struct ast_exten * | exten, |
struct ast_exten * | priority | ||
) |
Definition at line 4071 of file extconf.c.
References ast_walk_context_includes(), and ast_walk_extension_priorities().
Referenced by ast_walk_extension_priorities(), and main().