From 1445ab379089a89a790b65d2aff78cf480b6d1fd Mon Sep 17 00:00:00 2001 From: martinp Date: Tue, 18 Nov 2003 00:45:04 +0000 Subject: Fix AbsoluteTimeout on rtp native bridge git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1762 f38db490-d61c-443f-a65b-d21fe96a405b --- rtp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rtp.c') diff --git a/rtp.c b/rtp.c index b4b3bc18c..82a1cd5f6 100755 --- a/rtp.c +++ b/rtp.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -1264,6 +1265,9 @@ int ast_rtp_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, st who = ast_waitfor_n(cs, 2, &to); if (!who) { ast_log(LOG_DEBUG, "Ooh, empty read...\n"); + /* check for hagnup / whentohangup */ + if (ast_check_hangup(c0) || ast_check_hangup(c1)) + break; continue; } f = ast_read(who); -- cgit v1.2.3