Asterisk - The Open Source Telephony Project
21.4.1
|
Private Bridging API. More...
Go to the source code of this file.
Functions | |
struct ast_bridge * | bridge_alloc (size_t size, const struct ast_bridge_methods *v_table) |
struct ast_bridge * | bridge_base_init (struct ast_bridge *self, uint32_t capabilities, unsigned int flags, const char *creator, const char *name, const char *id) |
Initialize the base class of the bridge. More... | |
void | bridge_dissolve (struct ast_bridge *bridge, int cause) |
void | bridge_do_merge (struct ast_bridge *dst_bridge, struct ast_bridge *src_bridge, struct ast_bridge_channel **kick_me, unsigned int num_kick, unsigned int optimized) |
int | bridge_do_move (struct ast_bridge *dst_bridge, struct ast_bridge_channel *bridge_channel, int attempt_recovery, unsigned int optimized) |
struct ast_bridge_channel * | bridge_find_channel (struct ast_bridge *bridge, struct ast_channel *chan) |
void | bridge_merge_inhibit_nolock (struct ast_bridge *bridge, int request) |
void | bridge_reconfigured (struct ast_bridge *bridge, unsigned int colp_update) |
struct ast_bridge * | bridge_register (struct ast_bridge *bridge) |
Register the new bridge with the system. More... | |
Private Bridging API.
Functions in this file are intended to be used by the Bridging API, bridge mixing technologies, and bridge sub-classes. Users of bridges that do not fit those three categories should not use the API defined in this file.
See Also:
Definition in file bridge_internal.h.
struct ast_bridge* bridge_base_init | ( | struct ast_bridge * | self, |
uint32_t | capabilities, | ||
unsigned int | flags, | ||
const char * | creator, | ||
const char * | name, | ||
const char * | id | ||
) |
Initialize the base class of the bridge.
self | Bridge to operate upon. (Tolerates a NULL pointer) |
capabilities | The capabilities that we require to be used on the bridge |
flags | Flags that will alter the behavior of the bridge |
creator | Entity that created the bridge (optional) |
name | Name given to the bridge by its creator (optional, requires named creator) |
id | Unique ID given to the bridge by its creator (optional) |
NULL | on failure, self is already destroyed |
Example usage:
This creates a no frills two party bridge that will be destroyed once one of the channels hangs up.
Definition at line 742 of file bridge.c.
References ao2_ref, AST_BRIDGE_FLAG_INVISIBLE, ast_bridge_topic(), ast_debug, ast_string_field_set, ast_tvnow(), ast_uuid_generate_str(), find_best_technology(), and ast_bridge::uniqueid.
Referenced by ast_bridge_base_new(), ast_bridge_basic_new(), and bridge_parking_new().
struct ast_bridge* bridge_register | ( | struct ast_bridge * | bridge | ) |
Register the new bridge with the system.
bridge | What to register. (Tolerates a NULL pointer) |
NULL | on error. |
Definition at line 691 of file bridge.c.
References ao2_link, ast_bridge_destroy(), ast_bridge_lock, ast_bridge_publish_state(), ast_bridge_unlock, and ast_bridge::construction_completed.
Referenced by ast_bridge_base_new(), ast_bridge_basic_new(), and bridge_parking_new().