[Asterisk-code-review] main/file.c: Don't throw error on flash event. (asterisk[16])

N A asteriskteam at digium.com
Thu May 13 10:17:52 CDT 2021


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/15879 )


Change subject: main/file.c: Don't throw error on flash event.
......................................................................

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
---
M main/file.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/79/15879/1

diff --git a/main/file.c b/main/file.c
index b426609..61f64d2 100644
--- a/main/file.c
+++ b/main/file.c
@@ -1702,6 +1702,7 @@
 				case AST_CONTROL_AOC:
 				case AST_CONTROL_UPDATE_RTP_PEER:
 				case AST_CONTROL_PVT_CAUSE_CODE:
+				case AST_CONTROL_FLASH:
 				case -1:
 					/* Unimportant */
 					break;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15879
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I4fa549bfb7ba1894a4044de999ea124877422fbc
Gerrit-Change-Number: 15879
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210513/25ae5331/attachment.html>


More information about the asterisk-code-review mailing list