Sat Apr 26 2014 22:03:23

Asterisk developer's documentation


ast_bridge Struct Reference

Structure that contains information about a bridge. More...

#include <bridging.h>

Collaboration diagram for ast_bridge:

Public Member Functions

 AST_LIST_HEAD_NOLOCK (, ast_bridge_channel) channels

Data Fields

struct ast_channel ** array
size_t array_num
size_t array_size
void * bridge_pvt
struct ast_callidcallid
struct ast_flags feature_flags
struct ast_bridge_features features
unsigned int internal_mixing_interval
unsigned int internal_sample_rate
int num
unsigned int refresh:1
unsigned int stop:1
struct ast_bridge_technologytechnology
pthread_t thread
struct ast_bridge_video_mode video_mode
unsigned int waiting:1

Detailed Description

Structure that contains information about a bridge.

Definition at line 214 of file bridging.h.


Member Function Documentation

Linked list of channels participating in the bridge


Field Documentation

struct ast_channel** array

Array of channels that the bridge thread is currently handling

Definition at line 243 of file bridging.h.

Referenced by ast_bridge_new(), bridge_array_add(), bridge_array_remove(), destroy_bridge(), and generic_thread_loop().

size_t array_num

Number of channels in the above array

Definition at line 245 of file bridging.h.

Referenced by bridge_array_add(), bridge_array_remove(), bridge_thread(), generic_thread_loop(), and softmix_bridge_thread().

size_t array_size

Number of channels the array can handle

Definition at line 247 of file bridging.h.

Referenced by ast_bridge_new(), and bridge_array_add().

struct ast_callid* callid

Call ID associated with the bridge

Definition at line 249 of file bridging.h.

Referenced by ast_bridge_destroy(), bridge_channel_join(), and bridge_thread().

Bridge flags to tweak behavior

Definition at line 233 of file bridging.h.

Referenced by ast_bridge_merge(), ast_bridge_new(), bridge_channel_join(), and bridge_check_dissolve().

The mixing interval indicates how quickly the bridges internal mixing should occur for bridge technologies that mix audio. When set to 0, the bridge tech must choose a default interval for itself.

Definition at line 225 of file bridging.h.

Referenced by ast_bridge_set_mixing_interval(), and softmix_bridge_thread().

unsigned int internal_sample_rate

The internal sample rate this bridge is mixed at when multiple channels are being mixed. If this value is 0, the bridge technology may auto adjust the internal mixing rate.

Definition at line 221 of file bridging.h.

Referenced by ast_bridge_set_internal_sample_rate(), and softmix_bridge_thread().

int num

Number of channels participating in the bridge

Definition at line 216 of file bridging.h.

Referenced by ast_bridge_merge(), bridge_channel_join(), and softmix_bridge_thread().

unsigned int refresh

Bit to indicate the bridge thread should refresh itself

Definition at line 231 of file bridging.h.

Referenced by bridge_thread(), generic_thread_loop(), smart_bridge_operation(), and softmix_bridge_thread().

unsigned int stop

Bit to indicate the bridge thread should stop

Definition at line 229 of file bridging.h.

Referenced by ast_bridge_destroy(), bridge_channel_join(), bridge_thread(), generic_thread_loop(), smart_bridge_operation(), and softmix_bridge_thread().

pthread_t thread
unsigned int waiting

Bit to indicate that the bridge thread is waiting on channels in the bridge array

Definition at line 227 of file bridging.h.

Referenced by bridge_array_add(), bridge_array_remove(), and generic_thread_loop().


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