[Asterisk-code-review] rtp_engine: Add type field for JSON RTCP Report stasis messages (asterisk[16])

Boris P. Korzun asteriskteam at digium.com
Mon Nov 8 14:12:36 CST 2021


Boris P. Korzun has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17331 )


Change subject: rtp_engine: Add type field for JSON RTCP Report stasis messages
......................................................................

rtp_engine: Add type field for JSON RTCP Report stasis messages

ASTERISK-29727 #close

Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82
---
M main/rtp_engine.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/31/17331/1

diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index f88b877..b50420a 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -3455,7 +3455,8 @@
 		}
 	}
 
-	return ast_json_pack("{s: o?, s: o, s: O?}",
+	return ast_json_pack("{s: s, s: o?, s: o, s: O?}",
+		"type", stasis_message_type(msg) == ast_rtp_rtcp_received_type() ? "RTCPReceived" : "RTCPSent",
 		"channel", json_channel,
 		"rtcp_report", json_rtcp_report,
 		"blob", payload->blob);

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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82
Gerrit-Change-Number: 17331
Gerrit-PatchSet: 1
Gerrit-Owner: Boris P. Korzun <drtr0jan at yandex.ru>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211108/b14b8a05/attachment-0001.html>


More information about the asterisk-code-review mailing list