Bridging: introduce "invisible" bridges.

Invisible bridges function the same as normal bridges, but they have the
following restrictions:

* They never show up in CLI, AMI, or ARI queries.
* They do not have Stasis messages published about them.

Invisible bridges' main use is for when use of the bridging system is
desired, but the bridge should not be known to users of the Asterisk
system.

ASTERISK-25925

Change-Id: I804a209d3181d7c54e3d61a60eb462e7ce0e3670
This commit is contained in:
Mark Michelson
2016-05-09 14:27:53 -05:00
parent 5b15ec966d
commit f6c33771f6
5 changed files with 33 additions and 12 deletions

View File

@@ -572,7 +572,7 @@ static int manager_bridge_kick(struct mansession *s, const struct message *m)
}
} else {
bridge = ast_bridge_find_by_id(bridge_uniqueid);
if (!bridge) {
if (!bridge || ast_test_flag(&bridge->feature_flags, AST_BRIDGE_FLAG_INVISIBLE)) {
astman_send_error(s, m, "Bridge not found");
return 0;
}