Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 } |
Functions | |
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(*datad)(void *), const char *registrar) |
struct ast_category * | localized_category_get (const struct ast_config *config, const char *category_name) |
struct ast_config * | localized_config_load (const char *filename) |
struct ast_config * | localized_config_load_with_comments (const char *filename) |
int | localized_config_text_file_save (const char *configfile, const struct ast_config *cfg, const char *generator) |
int | localized_context_add_ignorepat2 (struct ast_context *con, const char *value, const char *registrar) |
int | localized_context_add_include2 (struct ast_context *con, const char *value, const char *registrar) |
int | localized_context_add_switch2 (struct ast_context *con, const char *value, const char *data, int eval, const char *registrar) |
void | localized_context_destroy (struct ast_context *con, const char *registrar) |
struct ast_context * | localized_context_find_or_create (struct ast_context **extcontexts, void *tab, const char *name, const char *registrar) |
int | localized_context_verify_includes (struct ast_context *con) |
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) |
void | localized_merge_contexts_and_delete (struct ast_context **extcontexts, void *tab, const char *registrar) |
int | localized_pbx_builtin_setvar (struct ast_channel *chan, const void *data) |
int | localized_pbx_load_module (void) |
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) |
struct ast_include * | localized_walk_context_includes (struct ast_context *con, struct ast_include *inc) |
struct ast_sw * | localized_walk_context_switches (struct ast_context *con, struct ast_sw *sw) |
struct ast_context * | localized_walk_contexts (struct ast_context *con) |
struct ast_exten * | localized_walk_extension_priorities (struct ast_exten *exten, struct ast_exten *priority) |
External configuration handlers (realtime and static configuration)
Definition in file extconf.h.
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 214 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 4895 of file extconf.c.
References ast_add_extension2(), ast_exten::data, ast_exten::datad, ast_exten::label, priority, registrar, and replace().
struct ast_category * localized_category_get | ( | const struct ast_config * | config, |
const char * | category_name | ||
) |
Definition at line 2801 of file extconf.c.
References category_get(), and config.
struct ast_config * localized_config_load | ( | const char * | filename | ) |
Definition at line 3285 of file extconf.c.
References ast_config_destroy(), ast_config_internal_load(), ast_config_new(), NULL, and result.
Referenced by pbx_load_config().
struct ast_config * localized_config_load_with_comments | ( | const char * | filename | ) |
Definition at line 3303 of file extconf.c.
References ast_config_destroy(), ast_config_internal_load(), ast_config_new(), NULL, and result.
int localized_config_text_file_save | ( | const char * | configfile, |
const struct ast_config * | cfg, | ||
const char * | generator | ||
) |
Definition at line 3421 of file extconf.c.
References ast_log(), ast_verbose(), ast_comment::cmt, errno, ast_config_include::exec, ast_config_include::exec_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_category::lineno, LOG_DEBUG, ast_category::name, ast_comment::next, ast_category::next, ast_config_include::next, option_debug, option_verbose, ast_config_include::output, ast_category::precomments, ast_category::root, ast_config::root, ast_category::sameline, set_fn(), var, and VERBOSE_PREFIX_2.
int localized_context_add_ignorepat2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Definition at line 4599 of file extconf.c.
References ast_context_add_ignorepat2(), registrar, and value.
int localized_context_add_include2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Definition at line 4557 of file extconf.c.
References ast_context_add_include2(), registrar, and value.
int localized_context_add_switch2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | data, | ||
int | eval, | ||
const char * | registrar | ||
) |
Definition at line 4700 of file extconf.c.
References ast_context_add_switch2(), ast_sw::data, ast_sw::eval, registrar, and value.
void localized_context_destroy | ( | struct ast_context * | con, |
const char * | registrar | ||
) |
Definition at line 5562 of file extconf.c.
References __ast_context_destroy(), ast_unlock_contexts(), ast_wrlock_contexts(), and registrar.
struct ast_context * localized_context_find_or_create | ( | struct ast_context ** | extcontexts, |
void * | tab, | ||
const char * | name, | ||
const char * | registrar | ||
) |
Definition at line 4986 of file extconf.c.
References __ast_context_create(), name, and registrar.
int localized_context_verify_includes | ( | struct ast_context * | con | ) |
Definition at line 5637 of file extconf.c.
References 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 4468 of file extconf.c.
References voicemailpwcheck::context, ast_exten::exten, ast_exten::label, NULL, pbx_find_extension(), and priority.
Referenced by pbx_find_extension().
void localized_merge_contexts_and_delete | ( | struct ast_context ** | extcontexts, |
void * | tab, | ||
const char * | registrar | ||
) |
Definition at line 5615 of file extconf.c.
References ast_merge_contexts_and_delete(), and registrar.
int localized_pbx_builtin_setvar | ( | struct ast_channel * | chan, |
const void * | data | ||
) |
Definition at line 2605 of file extconf.c.
References pbx_builtin_setvar().
int localized_pbx_load_module | ( | void | ) |
Definition at line 5644 of file extconf.c.
References ast_context_verify_includes(), ast_merge_contexts_and_delete(), ast_walk_contexts(), config_filename, global_registrar, local_contexts, ast_context::name, NULL, and pbx_load_config().
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 4051 of file extconf.c.
References ast_walk_context_extensions(), and ast_exten::exten.
struct ast_include * localized_walk_context_includes | ( | struct ast_context * | con, |
struct ast_include * | inc | ||
) |
Definition at line 4104 of file extconf.c.
References ast_walk_context_includes().
struct ast_sw * localized_walk_context_switches | ( | struct ast_context * | con, |
struct ast_sw * | sw | ||
) |
Definition at line 4150 of file extconf.c.
References ast_walk_context_switches().
struct ast_context * localized_walk_contexts | ( | struct ast_context * | con | ) |
Definition at line 4030 of file extconf.c.
References ast_walk_contexts().
struct ast_exten * localized_walk_extension_priorities | ( | struct ast_exten * | exten, |
struct ast_exten * | priority | ||
) |
Definition at line 4069 of file extconf.c.
References ast_walk_extension_priorities(), ast_exten::exten, and priority.