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

Friendly Automation asteriskteam at digium.com
Thu Nov 18 17:39:38 CST 2021


Friendly Automation has submitted this change. ( 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(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



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: 2
Gerrit-Owner: Boris P. Korzun <drtr0jan at yandex.ru>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211118/e8cf96bd/attachment.html>


More information about the asterisk-code-review mailing list