]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
We need to ensure timelimit stuff is included as well so warnings get played. (issue...
authorJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 21:33:41 +0000 (21:33 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 21:33:41 +0000 (21:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47707 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 8db899747fa18bf7edf20d56f5e0f413c08b74c4..95293d6614a69c93e239918c4c78b3bf80deef3b 100644 (file)
@@ -3648,7 +3648,10 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct
                if (bridge_end.tv_sec) {
                        to = ast_tvdiff_ms(bridge_end, ast_tvnow());
                        if (to <= 0) {
-                               res = AST_BRIDGE_COMPLETE;
+                               if (config->timelimit)
+                                       res = AST_BRIDGE_RETRY;
+                               else
+                                       res = AST_BRIDGE_COMPLETE;
                                break;
                        }
                } else
@@ -3828,8 +3831,11 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
                        now = ast_tvnow();
                        to = ast_tvdiff_ms(nexteventts, now);
                        if (to <= 0) {
-                               res = AST_BRIDGE_COMPLETE;
-                               break;
+                               if (!config->timelimit) {
+                                       res = AST_BRIDGE_COMPLETE;
+                                       break;
+                               }
+                               to = 0;
                        }
                }