mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
Add more support for native bridging.
* Added a start technology callback that technologies can use to start bridging operations. It is expected that native bridges will find this useful. * Factored out bridge_channel_complete_join(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -62,6 +62,16 @@ struct ast_bridge_technology {
|
||||
* However, it can be accessed as if it were locked.
|
||||
*/
|
||||
int (*create)(struct ast_bridge *bridge);
|
||||
/*!
|
||||
* \brief Request a bridge technology instance start operations.
|
||||
*
|
||||
* \retval 0 on success
|
||||
* \retval -1 on failure
|
||||
*
|
||||
* \note On entry, bridge may or may not already be locked.
|
||||
* However, it can be accessed as if it were locked.
|
||||
*/
|
||||
int (*start)(struct ast_bridge *bridge);
|
||||
/*!
|
||||
* \brief Request a bridge technology instance stop in preparation for being destroyed.
|
||||
*
|
||||
@@ -106,6 +116,9 @@ struct ast_bridge_technology {
|
||||
*
|
||||
* \retval 0 if not compatible
|
||||
* \retval non-zero if compatible
|
||||
*
|
||||
* \note On entry, bridge may or may not already be locked.
|
||||
* However, it can be accessed as if it were locked.
|
||||
*/
|
||||
int (*compatible)(struct ast_bridge *bridge);
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user