[Asterisk-cvs] asterisk rtp.c,1.124,1.125
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Wed May 4 00:36:27 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11699
Modified Files:
rtp.c
Log Message:
don't report EAGAIN as an error (bug #4128)
Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- rtp.c 21 Apr 2005 06:02:43 -0000 1.124
+++ rtp.c 4 May 2005 04:43:30 -0000 1.125
@@ -371,9 +371,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;
@@ -449,9 +447,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