Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
stasis_app_control Struct Reference

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

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 control_create(), stasis_app_control_register_add_rule(), and stasis_app_control_unregister_add_rule().

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_set_app(), and control_swap_channel_in_bridge().

struct ast_bridge* bridge

When a channel is in a bridge, the bridge that it is in.

Definition at line 66 of file control.c.

Referenced by add_to_dial_bridge(), control_swap_channel_in_bridge(), dial_bridge_after_cb(), and stasis_app_get_bridge().

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

struct ast_channel* channel

The associated channel. Be very careful with the threading associated w/ manipulating the channel.

Definition at line 62 of file control.c.

Referenced by control_create(), control_dispatch_all(), control_silence_stop_now(), dial_bridge_after_cb(), stasis_app_control_get_channel_id(), stasis_app_control_publish(), and stasis_app_control_queue_control().

struct ao2_container* command_queue

Queue of commands to dispatch on the channel

Definition at line 56 of file control.c.

Referenced by control_command_count(), control_create(), control_dispatch_all(), control_flush_queue(), control_prestart_dispatch_all(), control_set_thread(), and control_wait().

pthread_t control_thread

The thread currently blocking on the channel.

Definition at line 100 of file control.c.

Referenced by control_set_thread().

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 control_is_done(), and stasis_app_send_command_async().

char* next_app

The name of the next Stasis application to move to.

Definition at line 96 of file control.c.

Referenced by 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 control_create(), control_move_cleanup(), control_next_app_args(), and control_next_app_args_size().

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

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 control_create(), stasis_app_control_register_remove_rule(), and stasis_app_control_unregister_remove_rule().

struct ast_silence_generator* silgen

Silence generator, when silence is being generated.

Definition at line 86 of file control.c.

Referenced by control_silence_stop_now().


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