mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
bridge_channel: Support the lonely flag and make ARI use it.
The lonely flag is an optional flag for bridge channels that will make them leave a bridge when a channel leaves if only lonely channels are in the bridge at that point. This is useful for things like ending recording and playback channels when they cease to be interacting with other channels in the bridge. (closes issue ASTERISK-22117) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2721/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -215,13 +215,14 @@ void ast_unreal_call_setup(struct ast_channel *semi1, struct ast_channel *semi2)
|
||||
*
|
||||
* \param ast A member of the unreal channel being pushed
|
||||
* \param bridge Which bridge we want to push the channel to
|
||||
* \param flags Feature flags to be set on the bridge channel.
|
||||
*
|
||||
* \retval 0 if the channel is successfully imparted onto the bridge
|
||||
* \retval -1 on failure
|
||||
*
|
||||
* \note This is equivalent to ast_call() on unreal based channel drivers that are designed to use it instead.
|
||||
*/
|
||||
int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge *bridge);
|
||||
int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge *bridge, unsigned int flags);
|
||||
|
||||
/* ------------------------------------------------------------------- */
|
||||
|
||||
|
Reference in New Issue
Block a user