diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 14:43:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 14:43:32 +0000 |
commit | d982dbbccefcdde9d573d35267213eb2c5f0448c (patch) | |
tree | 562331f963b0d6e7c26177ebc40e101068c21cb0 /channel.c | |
parent | 9139d9e1239f518e17fae9a09e437da23775302c (diff) |
Do not depend on having an end sound for stopping the bridge when time runs out. (issue #6979 reported by ppyy)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21130 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3461,10 +3461,10 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha if (time_left_ms < to) to = time_left_ms; - if (time_left_ms <= 0 && config->end_sound) { - if (caller_warning) + if (time_left_ms <= 0) { + if (caller_warning && config->end_sound) bridge_playfile(c0, c1, config->end_sound, 0); - if (callee_warning) + if (callee_warning && config->end_sound) bridge_playfile(c1, c0, config->end_sound, 0); *fo = NULL; if (who) |