Commit b3759064 authored by Ghislain MARY's avatar Ghislain MARY

Set flags in RTCP XR stat summary packet.

parent 9b0cba1f
......@@ -121,9 +121,9 @@ typedef enum {
} OrtpRtcpXrRcvrRttMode;
typedef enum {
OrtpRtcpXrStatSummaryLoss = (1 << 0),
OrtpRtcpXrStatSummaryDup = (1 << 1),
OrtpRtcpXrStatSummaryJitt = (1 << 2),
OrtpRtcpXrStatSummaryLoss = (1 << 7),
OrtpRtcpXrStatSummaryDup = (1 << 6),
OrtpRtcpXrStatSummaryJitt = (1 << 5),
OrtpRtcpXrStatSummaryTTL = (1 << 3),
OrtpRtcpXrStatSummaryHL = (1 << 4)
} OrtpRtcpXrStatSummaryFlag;
......
......@@ -555,7 +555,7 @@ static int rtcp_xr_stat_summary_init(uint8_t *buf, RtpSession *session) {
rtcp_xr_stat_summary_report_block_t *block = (rtcp_xr_stat_summary_report_block_t *)buf;
block->bt = RTCP_XR_STAT_SUMMARY;
block->flags = 0; // TODO: Fill flags
block->flags = session->rtcp.xr_conf.stat_summary_flags;
block->length = htons(9);
// TODO: Fill other fields from info in the session
return sizeof(rtcp_xr_stat_summary_report_block_t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment