From 141d9f7156c165e05ad9ec03e22ba2866bf6e3ce Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Fri, 14 Oct 2005 17:02:20 +0000 Subject: Make sure when the timeout occurs that we actually break the bridge (bug #5252) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6791 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- rtp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rtp.c') diff --git a/rtp.c b/rtp.c index 468445e5f..284e99b1b 100755 --- a/rtp.c +++ b/rtp.c @@ -1677,6 +1677,8 @@ enum ast_bridge_result ast_rtp_bridge(struct ast_channel *c0, struct ast_channel } who = ast_waitfor_n(cs, 2, &timeoutms); if (!who) { + if (!timeoutms) + return AST_BRIDGE_RETRY; if (option_debug) ast_log(LOG_DEBUG, "Ooh, empty read...\n"); /* check for hangup / whentohangup */ -- cgit v1.2.3