From e47794ead1fb35527728a0c655585af35679e258 Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Mon, 5 Aug 2013 16:59:13 +0000 Subject: 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 --- res/stasis/control.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'res/stasis') diff --git a/res/stasis/control.c b/res/stasis/control.c index 211566e11..dcc029701 100644 --- a/res/stasis/control.c +++ b/res/stasis/control.c @@ -168,6 +168,16 @@ int stasis_app_control_dial(struct stasis_app_control *control, const char *endp return 0; } +int stasis_app_control_add_role(struct stasis_app_control *control, const char *role) +{ + return ast_channel_add_bridge_role(control->channel, role); +} + +void stasis_app_control_clear_roles(struct stasis_app_control *control) +{ + ast_channel_clear_bridge_roles(control->channel); +} + int control_is_done(struct stasis_app_control *control) { /* Called from stasis_app_exec thread; no lock needed */ -- cgit v1.2.3