diff options
author | Mark Michelson <mmichelson@digium.com> | 2016-05-09 14:27:53 -0500 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2016-05-23 13:18:18 -0500 |
commit | f6c33771f660c3ad15bc554b355cb21e83c85e36 (patch) | |
tree | 721f6cbbb2032fbabb5acae6dd2b73876ca3abed /main/stasis_channels.c | |
parent | 5b15ec966db9c686ca7fbc74be8d57b4c63253d7 (diff) |
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
Diffstat (limited to 'main/stasis_channels.c')
-rw-r--r-- | main/stasis_channels.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/stasis_channels.c b/main/stasis_channels.c index eb1f1bc62..e56d1b928 100644 --- a/main/stasis_channels.c +++ b/main/stasis_channels.c @@ -256,7 +256,9 @@ struct ast_channel_snapshot *ast_channel_snapshot_create(struct ast_channel *cha ast_string_field_set(snapshot, language, ast_channel_language(chan)); if ((bridge = ast_channel_get_bridge(chan))) { - ast_string_field_set(snapshot, bridgeid, bridge->uniqueid); + if (!ast_test_flag(&bridge->feature_flags, AST_BRIDGE_FLAG_INVISIBLE)) { + ast_string_field_set(snapshot, bridgeid, bridge->uniqueid); + } ao2_cleanup(bridge); } |