]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Set the AST_FEATURE_WARNING_ACTIVE flag when a p2p bridge returns AST_BRIDGE_RETRY.
authorMark Michelson <mmichelson@digium.com>
Tue, 7 Apr 2009 23:49:49 +0000 (23:49 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 7 Apr 2009 23:49:49 +0000 (23:49 +0000)
Without this flag set, warning sounds will not be properly played to either party
of the bridge.

(closes issue #14845)
Reported by: adomjan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@186832 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 32e5bf2cb749e70e69609191615205e7a4cb7de8..bfe3183bddb8654dfabf127b2de59e7096ab9205 100644 (file)
@@ -4293,6 +4293,9 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
                        }
                        switch (res) {
                        case AST_BRIDGE_RETRY:
+                               if (config->play_warning) {
+                                       ast_set_flag(config, AST_FEATURE_WARNING_ACTIVE);
+                               }
                                continue;
                        default:
                                if (option_verbose > 2)