diff options
Diffstat (limited to 'include/asterisk/core_unreal.h')
-rw-r--r-- | include/asterisk/core_unreal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/core_unreal.h b/include/asterisk/core_unreal.h index a6e98895a..751c5d455 100644 --- a/include/asterisk/core_unreal.h +++ b/include/asterisk/core_unreal.h @@ -31,6 +31,7 @@ #include "asterisk/astobj2.h" #include "asterisk/channel.h" +#include "asterisk/bridging.h" #include "asterisk/abstract_jb.h" #if defined(__cplusplus) || defined(c_plusplus) @@ -208,6 +209,20 @@ struct ast_channel *ast_unreal_new_channels(struct ast_unreal_pvt *p, */ void ast_unreal_call_setup(struct ast_channel *semi1, struct ast_channel *semi2); +/*! + * \brief Push the semi2 unreal channel into a bridge from either member of the unreal pair + * \since 12.0.0 + * + * \param ast A member of the unreal channel being pushed + * \param bridge Which bridge we want to push the channel to + * + * \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); + /* ------------------------------------------------------------------- */ #if defined(__cplusplus) || defined(c_plusplus) |