Eliminate extraneous message (bug #2633)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-10-12 21:30:53 +00:00
parent e0ff16cf78
commit 9dde51a708
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name);
LOCAL_USER_REMOVE(u);
if (silence > 0) {
if ((silence > 0) && rfmt) {
res = ast_set_read_format(chan, rfmt);
if (res)
ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);