diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-12 21:30:53 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-12 21:30:53 +0000 |
commit | 792bc71f008d97648474c8b1c5f1159f9d06ad05 (patch) | |
tree | 2d9a146f70d659e5f383630c4b827d4c11cc197a /apps/app_record.c | |
parent | d4039ba307a7b8402921e507bab4ba58cd712328 (diff) |
Eliminate extraneous message (bug #2633)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3984 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_record.c')
-rwxr-xr-x | apps/app_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c index c1f06780a..7de7016c0 100755 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -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); |