Skip to content

Commit 6c73d3b

Browse files
InterLinked1Friendly Automation
authored and
Friendly Automation
committed
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
1 parent 063722a commit 6c73d3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

funcs/func_frame_trace.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ static void print_frame(struct ast_frame *frame)
341341
ast_verbose("SubClass: PVT_CAUSE_CODE\n");
342342
break;
343343
case AST_CONTROL_MASQUERADE_NOTIFY:
344-
/* Should never happen. */
345-
ast_assert(0);
344+
ast_verbose("SubClass: MASQUERADE_NOTIFY\n");
346345
break;
347346
case AST_CONTROL_STREAM_TOPOLOGY_REQUEST_CHANGE:
348347
ast_verbose("SubClass: STREAM_TOPOLOGY_REQUEST_CHANGE\n");

0 commit comments

Comments
 (0)