From 7601a5f0f8dc32ca7eef0a7cd3063c8c35a9ea4e Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Thu, 9 Jan 2020 05:37:08 -0500 Subject: [PATCH] app_record: Do not hang up if beep audio is missing 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/app_record.c b/apps/app_record.c index 99948e7962..0a220a9e7f 100644 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -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); } -- 2.47.2