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;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to