diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 14:22:27 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 14:22:27 +0000 |
commit | db03d7ba425b62622f606287822b1fcae4f59cb6 (patch) | |
tree | a2abd349a2d8d706334f0dae2aceb0acbc53be6e /rtp.c | |
parent | a809376df83fc16b31c3e3cd827d9364b2a3b996 (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-x | rtp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |