make an error message more descriptive (issue #6855)

M    rtp.c


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-03-31 17:46:03 +00:00
parent 83b7de9463
commit a4bbb3ff90

4
rtp.c
View File

@@ -543,7 +543,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
rtp->lasteventseqn = seqno; rtp->lasteventseqn = seqno;
} else } else
f = NULL; f = NULL;
if (f) if (f)
return f; return f;
else else
return &ast_null_frame; return &ast_null_frame;
@@ -555,7 +555,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
else else
return &ast_null_frame; return &ast_null_frame;
} else { } else {
ast_log(LOG_NOTICE, "Unknown RTP codec %d received\n", payloadtype); ast_log(LOG_NOTICE, "Unknown RTP codec %d received from '%s'\n", payloadtype, ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->them.sin_addr));
return &ast_null_frame; return &ast_null_frame;
} }
} }