]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 186833 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 7 Apr 2009 23:51:54 +0000 (23:51 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 7 Apr 2009 23:51:54 +0000 (23:51 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186833 | mmichelson | 2009-04-07 18:50:56 -0500 (Tue, 07 Apr 2009) | 15 lines

  Merged revisions 186832 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186832 | mmichelson | 2009-04-07 18:49:49 -0500 (Tue, 07 Apr 2009) | 8 lines

    Set the AST_FEATURE_WARNING_ACTIVE flag when a p2p bridge returns AST_BRIDGE_RETRY.

    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.6.1@186835 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index af5fe052f38564b94ff50c2048e3254e9c7b6eb3..e54742982930c97ad7e70c96cdfb58b2911c1d7f 100644 (file)
@@ -4858,6 +4858,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:
                                ast_verb(3, "Native bridging %s and %s ended\n", c0->name, c1->name);