External configuration handlers (realtime and static configuration). More...
Go to the source code of this file.
Data Structures | |
struct | pbx_find_info |
Defines | |
#define | AST_PBX_MAX_STACK 128 |
#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.
#define AST_PBX_MAX_STACK 128 |
Definition at line 223 of file extconf.h.
Referenced by handle_debug_dialplan(), handle_show_dialplan(), pbx_find_extension(), and show_dialplan_helper().
#define STATUS_NO_CONTEXT 1 |
Definition at line 241 of file extconf.h.
Referenced by pbx_extension_helper(), and pbx_find_extension().
#define STATUS_NO_EXTENSION 2 |
Definition at line 242 of file extconf.h.
Referenced by pbx_extension_helper(), and pbx_find_extension().
#define STATUS_NO_LABEL 4 |
Definition at line 244 of file extconf.h.
Referenced by pbx_extension_helper(), and pbx_find_extension().
#define STATUS_NO_PRIORITY 3 |
Definition at line 243 of file extconf.h.
Referenced by pbx_extension_helper(), and pbx_find_extension().
#define STATUS_SUCCESS 5 |
Definition at line 245 of file extconf.h.
Referenced by check_goto(), check_pval_item(), and pbx_find_extension().
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.
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.
00215 { 00216 E_MATCHMORE = 0x00, /* extension can match but only with more 'digits' */ 00217 E_CANMATCH = 0x01, /* extension can match with or without more 'digits' */ 00218 E_MATCH = 0x02, /* extension is an exact match */ 00219 E_MATCH_MASK = 0x03, /* mask for the argument to extension_match_core() */ 00220 E_SPAWN = 0x12, /* want to spawn an extension. Requires exact match */ 00221 E_FINDLABEL = 0x22 /* returns the priority for a given label. Requires exact match */ 00222 };
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 | |||
) |
struct ast_category* localized_category_get | ( | const struct ast_config * | config, | |
const char * | category_name | |||
) | [read] |
struct ast_config* localized_config_load | ( | const char * | filename | ) | [read] |
struct ast_config* localized_config_load_with_comments | ( | const char * | filename | ) | [read] |
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 | |||
) | [read] |
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 | |||
) | [read] |
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 | ) |
Referenced by check_goto(), and check_pval_item().
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 | |||
) | [read] |
struct ast_include* localized_walk_context_includes | ( | struct ast_context * | con, | |
struct ast_include * | inc | |||
) | [read] |
struct ast_sw* localized_walk_context_switches | ( | struct ast_context * | con, | |
struct ast_sw * | sw | |||
) | [read] |
struct ast_context* localized_walk_contexts | ( | struct ast_context * | con | ) | [read] |