mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI: Ability to inhibit COLP frames when adding channels to a bridge
This patch adds a new flag "inhibitConnectedLineUpdates" to the 'addChannel' operation in the Bridges REST API. When set, this flag avoids generating COLP frames when the specified channels enter the bridge. ASTERISK-28629 Change-Id: Ib995d4f0c6106279aa448b34b042b68f0f2ca5dc
This commit is contained in:
committed by
Joshua C. Colp
parent
987e10c75f
commit
034ac357ad
@@ -440,6 +440,10 @@ int ast_ari_bridges_add_channel_parse_body(
|
||||
if (field) {
|
||||
args->mute = ast_json_is_true(field);
|
||||
}
|
||||
field = ast_json_object_get(body, "inhibitConnectedLineUpdates");
|
||||
if (field) {
|
||||
args->inhibit_connected_line_updates = ast_json_is_true(field);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -515,6 +519,9 @@ static void ast_ari_bridges_add_channel_cb(
|
||||
if (strcmp(i->name, "mute") == 0) {
|
||||
args.mute = ast_true(i->value);
|
||||
} else
|
||||
if (strcmp(i->name, "inhibitConnectedLineUpdates") == 0) {
|
||||
args.inhibit_connected_line_updates = ast_true(i->value);
|
||||
} else
|
||||
{}
|
||||
}
|
||||
for (i = path_vars; i; i = i->next) {
|
||||
|
Reference in New Issue
Block a user