Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_context Struct Reference

ast_context: An extension context More...

Data Fields

struct ast_sws alts
 
struct {
   struct ast_sw *   first
 
   struct ast_sw *   last
 
alts
 
int autohints
 
char data []
 
struct namelisteswitches
 
struct namelisteswitches_last
 
int extension_count
 
struct namelistignorepats
 
struct ast_ignorepats ignorepats
 
struct ast_ignorepatignorepats
 
struct namelistignorepats_last
 
struct namelistincludes
 
struct ast_includes includes
 
struct ast_includeincludes
 
struct namelistincludes_last
 
ast_rwlock_t lock
 
char name [100]
 
const char * name
 
struct ast_contextnext
 
struct match_charpattern_tree
 
int refcount
 
char registrar [100]
 
const char * registrar
 
struct ast_extenroot
 
struct ast_hashtabroot_table
 
struct namelistswitches
 
struct namelistswitches_last
 

Detailed Description

ast_context: An extension context

Definition at line 284 of file pbx.c.

Field Documentation

struct ast_sws alts

Alternative switches

Definition at line 295 of file pbx.c.

Referenced by ast_context_add_switch2(), ast_context_find_or_create(), and ast_context_remove_switch2().

struct { ... } alts

Alternative switches

int autohints

Whether autohints support is enabled or not

Definition at line 297 of file pbx.c.

Referenced by ast_context_set_autohints(), and context_table_create_autohints().

char data[]

Buffer to hold the name & registrar character data.

The context name must be stored first in this buffer.

Definition at line 304 of file pbx.c.

Referenced by ast_context_find_or_create(), lua_read_extensions_file(), and lua_reload_extensions().

struct ast_ignorepats ignorepats

Patterns for which to continue playing dialtone

Definition at line 294 of file pbx.c.

Referenced by ast_context_find_or_create().

struct ast_ignorepat* ignorepats

Patterns for which to continue playing dialtone

Definition at line 2398 of file extconf.c.

struct ast_includes includes

Include other contexts

Definition at line 293 of file pbx.c.

Referenced by ast_context_add_include2(), ast_context_find_or_create(), and ast_context_remove_include2().

struct ast_include* includes

Include other contexts

Definition at line 2397 of file extconf.c.

A lock to prevent multiple threads from clobbering the context

Definition at line 288 of file pbx.c.

Referenced by ast_context_find_or_create(), ast_rdlock_context(), ast_unlock_context(), and ast_wrlock_context().

char name[0]

Name of the context

Definition at line 49 of file ael_main.c.

char name
struct ast_context * next

Link them together

Definition at line 292 of file pbx.c.

Referenced by ast_context_find_or_create(), and ast_merge_contexts_and_delete().

struct match_char* pattern_tree

A tree to speed up extension pattern matching

Definition at line 291 of file pbx.c.

Referenced by ast_add_extension2_lockopt().

int refcount

each module that would have created this context should inc/dec this as appropriate

Definition at line 296 of file pbx.c.

Referenced by ast_context_find_or_create().

const char * registrar
struct ast_exten * root

The root of the list of extensions

Definition at line 289 of file pbx.c.

Referenced by add_pri(), add_priority(), ast_add_extension2(), ast_add_extension2_lockopt(), and ast_context_find_or_create().

struct ast_hashtab* root_table

For exact matches on the extensions in the pattern tree, and for traversals of the pattern_tree

Definition at line 290 of file pbx.c.

Referenced by add_priority(), ast_add_extension2_lockopt(), and ast_context_find_or_create().


The documentation for this struct was generated from the following files: