]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_record: Do not hang up if beep audio is missing
authorCorey Farrell <git@cfware.com>
Thu, 9 Jan 2020 10:37:08 +0000 (05:37 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 9 Jan 2020 11:14:53 +0000 (06:14 -0500)
Additionally alter the warning to mention that it was "beep" which could
not be streamed to give admins a better clue about what the warning
means.

ASTERISK-28682

Change-Id: If5aed21226a173117ed17589f44826dd1ba6576e

apps/app_record.c

index 99948e79620d812bc1b25e2b6e293d0164a07356..0a220a9e7f4b0957c0d2d312713f417aaed7d5d1 100644 (file)
@@ -360,7 +360,8 @@ static int record_exec(struct ast_channel *chan, const char *data)
                if (!res) {
                        res = ast_waitstream(chan, "");
                } else {
-                       ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", ast_channel_name(chan));
+                       ast_log(LOG_WARNING, "ast_streamfile(beep) failed on %s\n", ast_channel_name(chan));
+                       res = 0;
                }
                ast_stopstream(chan);
        }