mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 12:42:49 +00:00
ARI: bridges/{bridgeID}/addChannel: add roles parameter
Roles are now cleared with each entry into a bridge with addChannel. If the roles parameter is present, the role specified will be applied to all channels being added with the addChannel command. (closes issue ASTERISK-21973) Reported by: Matt Jordan https://reviewboard.asterisk.org/r/2691/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -173,6 +173,24 @@ const char *stasis_app_control_get_channel_id(
|
||||
*/
|
||||
int stasis_app_control_dial(struct stasis_app_control *control, const char *endpoint, int timeout);
|
||||
|
||||
/*!
|
||||
* \brief Apply a bridge role to a channel controlled by a stasis app control
|
||||
*
|
||||
* \param control Control for \c res_stasis
|
||||
* \param role Role to apply
|
||||
*
|
||||
* \return 0 for success
|
||||
* \return -1 for error.
|
||||
*/
|
||||
int stasis_app_control_add_role(struct stasis_app_control *control, const char *role);
|
||||
|
||||
/*!
|
||||
* \brief Clear bridge roles currently applied to a channel controlled by a stasis app control
|
||||
*
|
||||
* \param control Control for \c res_stasis
|
||||
*/
|
||||
void stasis_app_control_clear_roles(struct stasis_app_control *control);
|
||||
|
||||
/*!
|
||||
* \brief Exit \c res_stasis and continue execution in the dialplan.
|
||||
*
|
||||
|
Reference in New Issue
Block a user