From 283fa3a93bf0dacd1a75904ea02cdb471cb01189 Mon Sep 17 00:00:00 2001 From: Naveen Albert Date: Thu, 13 May 2021 11:13:55 -0400 Subject: [PATCH] main/file.c: Don't throw error on flash event. AST_CONTROL_FLASH isn't accounted for in a switch statement in file.c where it should be ignored. Adding this to the switch ensures a warning isn't thrown on RFC2833 flash events, since nothing's amiss. ASTERISK-29372 Change-Id: I4fa549bfb7ba1894a4044de999ea124877422fbc --- main/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/file.c b/main/file.c index b4266093ce..61f64d2984 100644 --- a/main/file.c +++ b/main/file.c @@ -1702,6 +1702,7 @@ static int waitstream_core(struct ast_channel *c, case AST_CONTROL_AOC: case AST_CONTROL_UPDATE_RTP_PEER: case AST_CONTROL_PVT_CAUSE_CODE: + case AST_CONTROL_FLASH: case -1: /* Unimportant */ break; -- 2.47.2