aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-07 23:52:17 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-07 23:52:17 +0000
commit36e101312b6ada902e668671f7d8c784797c83e0 (patch)
tree3028f263bf244bab55be24112bb4b2486f040063 /main
parentfa6636e31b8a19995db72399a5257994ebb1d4db (diff)
Merged revisions 186833 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@186836 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index b492f5113..f570ea70b 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -4886,6 +4886,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);