[Asterisk-cvs] asterisk rtp.c,1.74,1.75
markster at lists.digium.com
markster at lists.digium.com
Tue Jun 29 10:36:36 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17299
Modified Files:
rtp.c
Log Message:
Report checksum failures as such (bug #1942)
Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- rtp.c 29 Jun 2004 12:56:46 -0000 1.74
+++ rtp.c 29 Jun 2004 14:22:27 -0000 1.75
@@ -346,7 +346,10 @@
0, (struct sockaddr *)&sin, &len);
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