[Asterisk-code-review] rtp_engine: Add type field for JSON RTCP Report stasis messages (asterisk[18])
George Joseph
asteriskteam at digium.com
Fri Nov 19 07:09:59 CST 2021
George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/17539 )
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; 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/+/17539
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82
Gerrit-Change-Number: 17539
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: 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/20211119/ab254290/attachment.html>
More information about the asterisk-code-review
mailing list