From: Boris P. Korzun Date: Mon, 8 Nov 2021 19:59:02 +0000 (+0300) Subject: rtp_engine: Add type field for JSON RTCP Report stasis messages X-Git-Tag: 18.9.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b14f3edaac8a325954432f84e29db0fae45506;p=thirdparty%2Fasterisk.git rtp_engine: Add type field for JSON RTCP Report stasis messages ASTERISK-29727 #close Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82 --- diff --git a/main/rtp_engine.c b/main/rtp_engine.c index f88b877d63..b50420ac5a 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -3455,7 +3455,8 @@ static struct ast_json *rtcp_report_to_json(struct stasis_message *msg, } } - 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);