Asterisk - The Open Source Telephony Project GIT-master-590b490
Loading...
Searching...
No Matches
Data Fields
stasis_broadcast_ctx Struct Reference

Broadcast context stored on channel. More...

Collaboration diagram for stasis_broadcast_ctx:
Collaboration graph
[legend]

Data Fields

char app_filter [MAX_REGEX_LENGTH+1]
 
char channel_id [AST_MAX_PUBLIC_UNIQUEID]
 
unsigned int claimed:1
 
regex_t compiled_filter
 
ast_cond_t cond
 
struct ao2_containercontainer
 
unsigned int filter_compiled:1
 
unsigned int finished:1
 
unsigned int flags
 
char * winner_app
 

Detailed Description

Broadcast context stored on channel.

Definition at line 80 of file res_stasis_broadcast.c.

Field Documentation

◆ app_filter

char app_filter[MAX_REGEX_LENGTH+1]

Regex pattern used to filter broadcast recipients

Definition at line 86 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create().

◆ channel_id

char channel_id[AST_MAX_PUBLIC_UNIQUEID]

The unique ID of the channel

Definition at line 82 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create().

◆ claimed

unsigned int claimed

Flag indicating if channel was claimed

Definition at line 90 of file res_stasis_broadcast.c.

◆ compiled_filter

regex_t compiled_filter

Compiled regex for app_filter (valid only when filter_compiled is set)

Definition at line 88 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create(), broadcast_ctx_destructor(), and send_broadcast_event().

◆ cond

ast_cond_t cond

Condition variable for claim notification

Definition at line 100 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create(), and broadcast_ctx_destructor().

◆ container

struct ao2_container* container

Reference to the global container (prevents use-after-free during module unload)

Definition at line 98 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create(), broadcast_ctx_destructor(), and broadcast_datastore_destroy().

◆ filter_compiled

unsigned int filter_compiled

Whether compiled_filter is valid and must be freed

Definition at line 92 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create(), broadcast_ctx_destructor(), and send_broadcast_event().

◆ finished

unsigned int finished

Set when the PBX thread retrieves the winner; prevents late claims

Definition at line 94 of file res_stasis_broadcast.c.

◆ flags

unsigned int flags

Broadcast behaviour flags (STASIS_BROADCAST_FLAG_*)

Definition at line 96 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_create().

◆ winner_app

char* winner_app

Name of the winning application (dynamically allocated, NULL until claimed)

Definition at line 84 of file res_stasis_broadcast.c.

Referenced by broadcast_ctx_destructor().


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