[Asterisk-cvs] asterisk rtp.c,1.44,1.45

martinp at lists.digium.com martinp at lists.digium.com
Mon Nov 17 18:18:47 CST 2003


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16177

Modified Files:
	rtp.c 
Log Message:
Fix AbsoluteTimeout on rtp native bridge


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- rtp.c	15 Nov 2003 00:53:33 -0000	1.44
+++ rtp.c	18 Nov 2003 00:45:04 -0000	1.45
@@ -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 @@
 		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);




More information about the svn-commits mailing list