[Asterisk-code-review] func_frame_trace: Print text for text frames. (asterisk[18])

N A asteriskteam at digium.com
Tue Jan 3 06:42:13 CST 2023


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


Change subject: func_frame_trace: Print text for text frames.
......................................................................

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
---
M funcs/func_frame_trace.c
1 file changed, 15 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/19806/1

diff --git a/funcs/func_frame_trace.c b/funcs/func_frame_trace.c
index c1f258f..108f17a 100644
--- a/funcs/func_frame_trace.c
+++ b/funcs/func_frame_trace.c
@@ -397,6 +397,7 @@
 		break;
 	case AST_FRAME_TEXT:
 		ast_verbose("FrameType: TXT\n");
+		ast_verbose("Text: %.*s\n", frame->datalen, (char*) frame->data.ptr);
 		break;
 	case AST_FRAME_TEXT_DATA:
 		ast_verbose("FrameType: TXT_DATA\n");

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

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ia6ce3d15cecd7a673a528d34faac86854a2bab50
Gerrit-Change-Number: 19806
Gerrit-PatchSet: 1
Gerrit-Owner: N A <asterisk at phreaknet.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230103/9f7f218b/attachment-0001.html>


More information about the asterisk-code-review mailing list