switch_size_t flush_packet_count;
} switch_rtp_numbers_t;
+
+typedef struct {
+ uint32_t packet_count;
+ uint32_t octet_count;
+} switch_rtcp_numbers_t;
+
typedef struct {
switch_rtp_numbers_t inbound;
switch_rtp_numbers_t outbound;
+ switch_rtcp_numbers_t rtcp;
} switch_rtp_stats_t;
typedef enum {
add_stat(stats->outbound.dtmf_packet_count, "out_dtmf_packet_count");
add_stat(stats->outbound.cng_packet_count, "out_cng_packet_count");
+ add_stat(stats->rtcp.packet_count, "rtcp_packet_count");
+ add_stat(stats->rtcp.octet_count, "rtcp_octet_count");
+
}
}
rtp_session->rtcp_fresh_frame = 1;
+ rtp_session->stats.rtcp.packet_count += sr->pc;
+ rtp_session->stats.rtcp.octet_count += sr->oc;
+
/* sender report */
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10,"Received a SR with %d report blocks, " \
"length in words = %d, " \