Asterisk - The Open Source Telephony Project  GIT-master-932eae6
Data Fields
ast_context Struct Reference

ast_context: An extension context - must remain in sync with fake_context More...

Data Fields

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

Detailed Description

ast_context: An extension context - must remain in sync with fake_context

ast_context: An extension context

Definition at line 284 of file pbx.c.

Field Documentation

◆ alts [1/3]

struct { ... } alts

Alternative switches

◆ alts [2/3]

struct ast_sws alts

◆ alts [3/3]

struct { ... } alts

Alternative switches

◆ autohints

int autohints

Whether autohints support is enabled or not

Definition at line 295 of file pbx.c.

Referenced by ast_context_set_autohints(), context_merge(), context_table_create_autohints(), and show_dialplan_helper().

◆ eswitches

struct namelist* eswitches

Definition at line 54 of file ael_main.c.

Referenced by ast_add_extension2(), ast_context_add_switch2(), and main().

◆ eswitches_last

struct namelist* eswitches_last

Definition at line 59 of file ael_main.c.

◆ extension_count

int extension_count

Definition at line 48 of file ael_main.c.

Referenced by ast_add_extension2(), and main().

◆ first

struct ast_sw* first

Definition at line 181 of file conf2ael.c.

◆ ignorepats [1/3]

struct namelist* ignorepats

Definition at line 52 of file ael_main.c.

◆ ignorepats [2/3]

struct ast_ignorepat* ignorepats

Patterns for which to continue playing dialtone

Definition at line 179 of file conf2ael.c.

◆ ignorepats [3/3]

struct ast_ignorepat * ignorepats

◆ ignorepats_last

struct namelist* ignorepats_last

Definition at line 57 of file ael_main.c.

◆ includes [1/3]

struct namelist* includes

Definition at line 51 of file ael_main.c.

◆ includes [2/3]

struct ast_include* includes

Include other contexts

Definition at line 178 of file conf2ael.c.

◆ includes [3/3]

struct ast_include * includes

◆ includes_last

struct namelist* includes_last

Definition at line 56 of file ael_main.c.

◆ last

struct ast_sw* last

Definition at line 181 of file conf2ael.c.

◆ lock

A lock to prevent multiple threads from clobbering the context

Definition at line 285 of file pbx.c.

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

◆ macrolock

ast_mutex_t macrolock

A lock to implement "exclusive" macros - held whilst a call is executing in the macro

Definition at line 296 of file pbx.c.

Referenced by __ast_context_create(), __ast_internal_context_destroy(), ast_context_find_or_create(), ast_context_lockmacro(), and ast_context_unlockmacro().

◆ name

char name

◆ next

struct ast_context * next

◆ pattern_tree

struct match_char* pattern_tree

◆ refcount

int refcount

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

Definition at line 294 of file pbx.c.

Referenced by __ast_context_destroy(), ast_context_find_or_create(), and context_merge().

◆ registrar [1/3]

char registrar[100]

Definition at line 50 of file ael_main.c.

◆ registrar [2/3]

const char* registrar

Registrar

Definition at line 180 of file conf2ael.c.

◆ registrar [3/3]

const char * registrar

Registrar – make sure you malloc this, as the registrar may have to survive module unloads

Registrar

Definition at line 293 of file pbx.c.

Referenced by __ast_context_create(), __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_create(), ast_context_find_or_create(), ast_get_context_registrar(), ast_merge_contexts_and_delete(), context_merge(), and context_table_create_autohints().

◆ root

struct ast_exten * root

◆ root_table

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 287 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().

◆ switches

struct namelist* switches

Definition at line 53 of file ael_main.c.

Referenced by ast_add_extension2(), ast_context_add_switch2(), and main().

◆ switches_last

struct namelist* switches_last

Definition at line 58 of file ael_main.c.


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