From 2dac2bf8dc08f65102b67f6b93f19217c389712d Mon Sep 17 00:00:00 2001
From: Naveen Albert <asterisk@phreaknet.org>
Date: Thu, 8 Sep 2022 14:12:34 +0000
Subject: [PATCH] func_frame_trace: Remove bogus assertion.

The FRAME_TRACE function currently asserts if it sees
a MASQUERADE_NOTIFY. However, this is a legitimate thing
that can happen so asserting is inappropriate, as there
are no clear negative ramifications of such a thing. This
is adjusted to be like the other frames to print out
the subclass.

ASTERISK-30210 #close

Change-Id: I8ecbdcf17e35f64bdeab42868471f581ad1d1a56
---
 funcs/func_frame_trace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/funcs/func_frame_trace.c b/funcs/func_frame_trace.c
index b023c9f41d..c1f258fd5e 100644
--- a/funcs/func_frame_trace.c
+++ b/funcs/func_frame_trace.c
@@ -341,8 +341,7 @@ static void print_frame(struct ast_frame *frame)
 			ast_verbose("SubClass: PVT_CAUSE_CODE\n");
 			break;
 		case AST_CONTROL_MASQUERADE_NOTIFY:
-			/* Should never happen. */
-			ast_assert(0);
+			ast_verbose("SubClass: MASQUERADE_NOTIFY\n");
 			break;
 		case AST_CONTROL_STREAM_TOPOLOGY_REQUEST_CHANGE:
 			ast_verbose("SubClass: STREAM_TOPOLOGY_REQUEST_CHANGE\n");
-- 
GitLab