[Asterisk-cvs] asterisk rtp.c,1.92.2.12,1.92.2.13

russell at lists.digium.com russell at lists.digium.com
Mon May 30 22:20:55 CDT 2005


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

Modified Files:
      Tag: v1-0
	rtp.c 
Log Message:
don't print an error when you receive no data until normal circumstances with recvfrom (bug #4156)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.12
retrieving revision 1.92.2.13
diff -u -d -r1.92.2.12 -r1.92.2.13
--- rtp.c	12 May 2005 01:47:39 -0000	1.92.2.12
+++ rtp.c	31 May 2005 02:24:16 -0000	1.92.2.13
@@ -351,9 +351,7 @@
 					0, (struct sockaddr *)&sin, &len);
 	
 	if (res < 0) {
-		if (errno == EAGAIN)
-			ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n");
-		else
+		if (errno != EAGAIN)
 			ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
 		if (errno == EBADF)
 			CRASH;
@@ -426,9 +424,7 @@
 
 	rtpheader = (unsigned int *)(rtp->rawdata + AST_FRIENDLY_OFFSET);
 	if (res < 0) {
-		if (errno == EAGAIN)
-			ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n");
-		else
+		if (errno != EAGAIN)
 			ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
 		if (errno == EBADF)
 			CRASH;




More information about the svn-commits mailing list