aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-08 23:14:18 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-08 23:14:18 +0000
commit0daeb6f1347f9e33c1184eb4278b43e4be312b2d (patch)
tree8be76b700a2dd41a2ae9049a77a64f61d4a303ad /main/channel.c
parent8629042580b6aee0e9deddaed25dc684dd1e1b9b (diff)
This update fixes 7531
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47348 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index 865c9ca75..8db899747 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -3859,7 +3859,11 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
bridge_playfile(c1, c0, config->warning_sound, t);
}
if (config->warning_freq) {
- nexteventts = ast_tvadd(nexteventts, ast_samp2tv(config->warning_freq, 1000));
+
+ if (time_left_ms > (config->warning_freq + 5000)) {
+ nexteventts = ast_tvadd(nexteventts, ast_samp2tv(config->warning_freq, 1000));
+ }
+
} else
nexteventts = ast_tvadd(config->start_time, ast_samp2tv(config->timelimit, 1000));
}