]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
get rid of extra error message (bug #2633)
authorRussell Bryant <russell@russellbryant.com>
Wed, 13 Oct 2004 02:24:30 +0000 (02:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 13 Oct 2004 02:24:30 +0000 (02:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_record.c

index c1f06780a254315a25cf6dbc057a65c71a8c5948..7de7016c0f4e7b96c42e56c48d7aebd9262ba98c 100755 (executable)
@@ -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);