[Asterisk-cvs] asterisk rtp.c,1.70,1.71

markster at lists.digium.com markster at lists.digium.com
Sun Jun 6 12:42:26 CDT 2004


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

Modified Files:
	rtp.c 
Log Message:
Clearly label EAGAIN as being the UDP checksum error that it is


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- rtp.c	30 May 2004 20:24:48 -0000	1.70
+++ rtp.c	6 Jun 2004 17:44:47 -0000	1.71
@@ -411,7 +411,10 @@
 
 	rtpheader = (unsigned int *)(rtp->rawdata + AST_FRIENDLY_OFFSET);
 	if (res < 0) {
-		ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
+		if (errno == EAGAIN)
+			ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n");
+		else
+			ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
 		if (errno == EBADF)
 			CRASH;
 		return &null_frame;




More information about the svn-commits mailing list