diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-31 02:24:16 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-31 02:24:16 +0000 |
commit | 21fe0648fe8022cb10670d2b37f0a58ad0ba0ea9 (patch) | |
tree | 7ed354a986a33b085080464d8810a3f0316ecb7d /rtp.c | |
parent | d19db3668af28eca518920b54444699748174a2a (diff) |
don't print an error when you receive no data until normal circumstances with recvfrom (bug #4156)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -351,9 +351,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp) 0, (struct sockaddr *)&sin, &len); if (res < 0) { - if (errno == EAGAIN) - ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n"); - else + if (errno != EAGAIN) ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno)); if (errno == EBADF) CRASH; @@ -426,9 +424,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) rtpheader = (unsigned int *)(rtp->rawdata + AST_FRIENDLY_OFFSET); if (res < 0) { - if (errno == EAGAIN) - ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n"); - else + if (errno != EAGAIN) ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno)); if (errno == EBADF) CRASH; |