]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/file.c: Don't throw error on flash event.
authorNaveen Albert <mail@interlinked.x10host.com>
Thu, 13 May 2021 15:13:55 +0000 (11:13 -0400)
committerN A <mail@interlinked.x10host.com>
Thu, 13 May 2021 15:17:43 +0000 (10:17 -0500)
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

index b4266093ce3fd501ea9040a720873e9ae2adf241..61f64d29840f477dff9514c0ed2e62e7eafb96e8 100644 (file)
@@ -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;