mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Report checksum failures as such (bug #1942)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
rtp.c
5
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;
|
||||
|
||||
Reference in New Issue
Block a user