ast_context: An extension context More...
Data Fields | |
struct { | |
struct ast_sw * first | |
struct ast_sw * last | |
} | alts |
struct ast_ignorepat * | ignorepats |
struct ast_include * | includes |
ast_rwlock_t | lock |
ast_mutex_t | macrolock |
char | name [0] |
struct ast_context * | next |
struct match_char * | pattern_tree |
int | refcount |
char * | registrar |
struct ast_exten * | root |
struct ast_hashtab * | root_table |
ast_context: An extension context
Definition at line 955 of file pbx.c.
struct { ... } alts |
Alternative switches
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_switch2(), ast_context_remove_switch2(), ast_walk_context_switches(), and pbx_find_extension().
struct ast_ignorepat* ignorepats [read] |
Patterns for which to continue playing dialtone
Definition at line 962 of file pbx.c.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_ignorepat2(), ast_context_find_or_create(), ast_context_remove_ignorepat2(), ast_ignore_pattern(), and ast_walk_context_ignorepats().
struct ast_include* includes [read] |
Include other contexts
Definition at line 961 of file pbx.c.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_include2(), ast_context_find_or_create(), ast_context_remove_include2(), ast_walk_context_includes(), and pbx_find_extension().
A lock to prevent multiple threads from clobbering the context
Definition at line 956 of file pbx.c.
Referenced by __ast_internal_context_destroy(), ast_context_find_or_create(), ast_rdlock_context(), ast_unlock_context(), and ast_wrlock_context().
A lock to implement "exclusive" macros - held whilst a call is executing in the macro
Definition at line 966 of file pbx.c.
Referenced by __ast_internal_context_destroy(), ast_context_find_or_create(), ast_context_lockmacro(), and ast_context_unlockmacro().
char name[0] |
Name of the context
Definition at line 967 of file pbx.c.
Referenced by __ast_context_destroy(), add_priority(), ast_add_extension2_lockopt(), ast_context_find(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), ast_extension_state(), ast_extension_state_add_destroy(), ast_get_context_name(), ast_hashtab_compare_contexts(), ast_hashtab_hash_contexts(), ast_merge_contexts_and_delete(), context_merge(), create_match_char_tree(), pbx_find_extension(), and show_debug_helper().
struct ast_context* next [read] |
Link them together
Definition at line 960 of file pbx.c.
Referenced by __ast_context_destroy(), ast_context_find_or_create(), ast_merge_contexts_and_delete(), and ast_walk_contexts().
struct match_char* pattern_tree [read] |
A tree to speed up extension pattern matching
Definition at line 959 of file pbx.c.
Referenced by __ast_internal_context_destroy(), add_exten_to_pattern_tree(), add_pattern_node(), ast_add_extension2_lockopt(), ast_context_remove_extension_callerid2(), pbx_find_extension(), and show_debug_helper().
int refcount |
each module that would have created this context should inc/dec this as appropriate
Definition at line 964 of file pbx.c.
Referenced by __ast_context_destroy(), ast_context_find_or_create(), and context_merge().
char* registrar |
Registrar -- make sure you malloc this, as the registrar may have to survive module unloads
Definition at line 963 of file pbx.c.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_find_or_create(), ast_get_context_registrar(), and context_merge().
The root of the list of extensions
Definition at line 957 of file pbx.c.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), add_priority(), ast_add_extension2_lockopt(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), and ast_walk_context_extensions().
struct ast_hashtab* root_table [read] |
For exact matches on the extensions in the pattern tree, and for traversals of the pattern_tree
Definition at line 958 of file pbx.c.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), add_priority(), ast_add_extension2_lockopt(), ast_context_find_or_create(), ast_context_remove_extension_callerid2(), context_merge(), create_match_char_tree(), and pbx_find_extension().