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

Boris P. Korzun asteriskteam at digium.com
Wed Nov 17 15:03:16 CST 2021


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


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/40/17540/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/+/17540
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 19
Gerrit-Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82
Gerrit-Change-Number: 17540
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/20211117/d326fcba/attachment.html>


More information about the asterisk-code-review mailing list