Skip to content

Commit bc94155

Browse files
InterLinked1gtjoseph
authored andcommitted
func_frame_trace: Print text for text frames.
Since text frames contain a text body, make FRAME_TRACE more useful for text frames by actually printing the text. ASTERISK-30353 #close Change-Id: Ia6ce3d15cecd7a673a528d34faac86854a2bab50
1 parent a46d5f9 commit bc94155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

funcs/func_frame_trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ static void print_frame(struct ast_frame *frame)
397397
break;
398398
case AST_FRAME_TEXT:
399399
ast_verbose("FrameType: TXT\n");
400+
ast_verbose("Text: %.*s\n", frame->datalen, (char*) frame->data.ptr);
400401
break;
401402
case AST_FRAME_TEXT_DATA:
402403
ast_verbose("FrameType: TXT_DATA\n");

0 commit comments

Comments
 (0)