Wed Jan 8 2020 09:50:23

Asterisk developer's documentation


ast_context Struct Reference

ast_context: An extension context More...

Data Fields

struct {
   struct ast_sw *   first
 
   struct ast_sw *   last
 
alts
 
struct ast_ignorepatignorepats
 
struct ast_includeincludes
 
ast_rwlock_t lock
 
ast_mutex_t macrolock
 
char name [0]
 
struct ast_contextnext
 
struct match_charpattern_tree
 
int refcount
 
char * registrar
 
struct ast_extenroot
 
struct ast_hashtabroot_table
 

Detailed Description

ast_context: An extension context

Definition at line 955 of file pbx.c.

Field Documentation

struct ast_sw* first

Definition at line 965 of file pbx.c.

struct ast_sw* last

Definition at line 965 of file pbx.c.

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

ast_mutex_t macrolock

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

struct ast_context* next

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

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

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


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