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;
}
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;