mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +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:
@@ -324,6 +324,9 @@ static void ast_ari_add_channel_to_bridge_cb(
|
||||
args.channel[j] = (vals[j]);
|
||||
}
|
||||
} else
|
||||
if (strcmp(i->name, "role") == 0) {
|
||||
args.role = (i->value);
|
||||
} else
|
||||
{}
|
||||
}
|
||||
for (i = path_vars; i; i = i->next) {
|
||||
|
Reference in New Issue
Block a user