Asterisk - The Open Source Telephony Project GIT-master-2de1a68
Data Fields
ast_context Struct Reference

ast_context: An extension context More...

Collaboration diagram for ast_context:
Collaboration graph
[legend]

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 ast_ignorepats ignorepats
 
struct namelistignorepats
 
struct ast_ignorepatignorepats
 
struct namelistignorepats_last
 
struct ast_includes includes
 
struct namelistincludes
 
struct ast_includeincludes
 
struct namelistincludes_last
 
ast_rwlock_t lock
 
const char * name
 
char name [100]
 
struct ast_contextnext
 
struct match_charpattern_tree
 
int refcount
 
const char * registrar
 
char registrar [100]
 
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

◆ alts [1/2]

struct ast_sws alts

◆  [2/2]

struct { ... } alts

Alternative switches

◆ autohints

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

◆ data

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 _extension_match_core(), ast_add_extension(), ast_add_extension_nolock(), ast_context_add_switch(), ast_context_remove_switch(), ast_extension_match(), extension_match_core(), lua_read_extensions_file(), and lua_reload_extensions().

◆ 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 2400 of file extconf.c.

◆ ignorepats [1/3]

struct ast_ignorepats ignorepats

◆ ignorepats [2/3]

struct namelist* ignorepats

Definition at line 52 of file ael_main.c.

◆ ignorepats [3/3]

struct ast_ignorepat* ignorepats

Patterns for which to continue playing dialtone

Definition at line 2398 of file extconf.c.

◆ ignorepats_last

struct namelist* ignorepats_last

Definition at line 57 of file ael_main.c.

◆ includes [1/3]

struct ast_includes includes

◆ includes [2/3]

struct namelist* includes

Definition at line 51 of file ael_main.c.

◆ includes [3/3]

struct ast_include* includes

Include other contexts

Definition at line 2397 of file extconf.c.

◆ includes_last

struct namelist* includes_last

Definition at line 56 of file ael_main.c.

◆ last

struct ast_sw* last

Definition at line 2400 of file extconf.c.

◆ lock

A lock to prevent multiple threads from clobbering the context

Definition at line 288 of file pbx.c.

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

◆ name [1/2]

char name

◆ name [2/2]

char name[0]

Name of the context

Definition at line 49 of file ael_main.c.

Referenced by PathSegment::get_child(), Parameter::load(), Property::load(), and SwaggerType::load().

◆ next

struct ast_context * next

◆ pattern_tree

struct match_char* pattern_tree

A tree to speed up extension pattern matching

Definition at line 291 of file pbx.c.

Referenced by add_exten_to_pattern_tree(), add_pattern_node(), ast_add_extension2_lockopt(), and ast_context_remove_extension_callerid2().

◆ refcount

int refcount

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

Definition at line 296 of file pbx.c.

◆ registrar [1/2]

const char * registrar

Registrar

Definition at line 286 of file pbx.c.

Referenced by ast_context_create(), ast_context_find_or_create(), and context_table_create_autohints().

◆ registrar [2/2]

char registrar[100]

Definition at line 50 of file ael_main.c.

◆ 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 290 of file pbx.c.

Referenced by __ast_context_destroy(), add_priority(), ast_add_extension2_lockopt(), ast_context_remove_extension_callerid2(), and create_match_char_tree().

◆ 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: