[Asterisk-cvs] asterisk/channels chan_sip.c,1.432,1.433
markster at lists.digium.com
markster at lists.digium.com
Tue Jun 29 10:36:36 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv17299/channels
Modified Files:
chan_sip.c
Log Message:
Report checksum failures as such (bug #1942)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.432
retrieving revision 1.433
diff -u -d -r1.432 -r1.433
--- chan_sip.c 29 Jun 2004 13:52:03 -0000 1.432
+++ chan_sip.c 29 Jun 2004 14:22:27 -0000 1.433
@@ -7168,7 +7168,9 @@
memset(&req, 0, sizeof(req));
res = recvfrom(sipsock, req.data, sizeof(req.data) - 1, 0, (struct sockaddr *)&sin, &len);
if (res < 0) {
- if (errno != ECONNREFUSED)
+ if (errno == EAGAIN)
+ ast_log(LOG_NOTICE, "SIP: Received packet with bad UDP checksum\n");
+ else if (errno != ECONNREFUSED)
ast_log(LOG_WARNING, "Recv error: %s\n", strerror(errno));
return 1;
}
More information about the svn-commits
mailing list