Asterisk - The Open Source Telephony Project GIT-master-abe0018
Data Fields
stasis_app_control Struct Reference
Collaboration diagram for stasis_app_control:
Collaboration graph
[legend]

Data Fields

struct app_control_rules add_rules
 
struct stasis_appapp
 
struct ast_bridgebridge
 
struct ast_bridge_featuresbridge_features
 
struct ast_channelchannel
 
struct ao2_containercommand_queue
 
pthread_t control_thread
 
unsigned int is_done:1
 
char * next_app
 
struct {
   size_t   current
 
   char **   elems
 
   size_t   max
 
next_app_args
 
struct ast_pbxpbx
 
struct app_control_rules remove_rules
 
struct ast_silence_generatorsilgen
 
ast_cond_t wait_cond
 

Detailed Description

Definition at line 53 of file control.c.

Field Documentation

◆ add_rules

struct app_control_rules add_rules

A list of rules to check before adding a channel to a bridge.

Definition at line 78 of file control.c.

Referenced by app_control_can_add_channel_to_bridge(), control_create(), control_dtor(), stasis_app_control_register_add_rule(), and stasis_app_control_unregister_add_rule().

◆ app

struct stasis_app* app

The app for which this control is currently controlling. This can change through the use of the /channels/{channelId}/move command.

Definition at line 92 of file control.c.

Referenced by control_app(), control_create(), control_dtor(), control_set_app(), control_swap_channel_in_bridge(), and internal_bridge_after_cb().

◆ bridge

struct ast_bridge* bridge

◆ bridge_features

struct ast_bridge_features* bridge_features

Bridge features which should be applied to the channel when it enters the next bridge. These only apply to the next bridge and will be emptied thereafter.

Definition at line 70 of file control.c.

Referenced by control_dtor(), control_swap_channel_in_bridge(), stasis_app_control_absorb_dtmf_in_bridge(), stasis_app_control_bridge_features_init(), stasis_app_control_inhibit_colp_in_bridge(), and stasis_app_control_mute_in_bridge().

◆ channel

struct ast_channel* channel

◆ command_queue

struct ao2_container* command_queue

◆ control_thread

pthread_t control_thread

The thread currently blocking on the channel.

Definition at line 100 of file control.c.

Referenced by control_set_thread(), and exec_command_on_condition().

◆ current

size_t current

Definition at line 104 of file control.c.

◆ elems

char* * elems

Definition at line 104 of file control.c.

◆ is_done

unsigned int is_done

When set, /c app_stasis should exit and continue in the dialplan.

Definition at line 108 of file control.c.

Referenced by app_send_command_on_condition(), control_is_done(), control_mark_done(), exec_command_on_condition(), and stasis_app_send_command_async().

◆ max

size_t max

Definition at line 104 of file control.c.

◆ next_app

char* next_app

The name of the next Stasis application to move to.

Definition at line 96 of file control.c.

Referenced by app_control_move(), control_create(), control_move_cleanup(), and control_next_app().

◆ 

struct { ... } next_app_args

The list of arguments to pass to StasisStart when moving to another app.

Referenced by app_control_move(), control_create(), control_move_cleanup(), control_next_app_args(), and control_next_app_args_size().

◆ pbx

struct ast_pbx* pbx

Holding place for channel's PBX while imparted to a bridge.

Definition at line 74 of file control.c.

Referenced by control_swap_channel_in_bridge(), and internal_bridge_after_cb().

◆ remove_rules

struct app_control_rules remove_rules

A list of rules to check before removing a channel from a bridge.

Definition at line 82 of file control.c.

Referenced by app_control_can_remove_channel_from_bridge(), control_create(), control_dtor(), stasis_app_control_register_remove_rule(), and stasis_app_control_unregister_remove_rule().

◆ silgen

struct ast_silence_generator* silgen

Silence generator, when silence is being generated.

Definition at line 86 of file control.c.

Referenced by app_control_silence_start(), and control_silence_stop_now().

◆ wait_cond

ast_cond_t wait_cond

Definition at line 54 of file control.c.

Referenced by control_create(), control_dtor(), control_wait(), and exec_command_on_condition().


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