summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-11-18 00:45:04 +0000
committerMartin Pycko <martinp@digium.com>2003-11-18 00:45:04 +0000
commit1ceb43f77f9a33ecb44d08404cee4834c3675f2a (patch)
tree3abd5da28fc9a280219afed801656bff83a3d640 /rtp.c
parent69bef6678afa25f37e5621f7bd197f21a4b8ac97 (diff)
Fix AbsoluteTimeout on rtp native bridge
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index b4b3bc18c..82a1cd5f6 100755
--- a/rtp.c
+++ b/rtp.c
@@ -31,6 +31,7 @@
#include <asterisk/options.h>
#include <asterisk/channel.h>
#include <asterisk/acl.h>
+#include <asterisk/channel.h>
#include <asterisk/channel_pvt.h>
#include <asterisk/config.h>
@@ -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);