aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-29 14:22:27 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-29 14:22:27 +0000
commitdb03d7ba425b62622f606287822b1fcae4f59cb6 (patch)
treea2abd349a2d8d706334f0dae2aceb0acbc53be6e /rtp.c
parenta809376df83fc16b31c3e3cd827d9364b2a3b996 (diff)
Report checksum failures as such (bug #1942)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3350 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index 46b653fe2..631ea1e33 100755
--- a/rtp.c
+++ b/rtp.c
@@ -346,7 +346,10 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
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;