add largest_jb_size
This commit is contained in:
parent
8529ba3336
commit
1772fcb079
|
@ -489,6 +489,7 @@ typedef struct {
|
|||
switch_size_t dtmf_packet_count;
|
||||
switch_size_t cng_packet_count;
|
||||
switch_size_t flush_packet_count;
|
||||
switch_size_t largest_jb_size;
|
||||
} switch_rtp_numbers_t;
|
||||
|
||||
|
||||
|
|
|
@ -2554,6 +2554,7 @@ static void set_stats(switch_rtp_t *rtp_session, private_object_t *tech_pvt, con
|
|||
add_stat(stats->inbound.dtmf_packet_count, "in_dtmf_packet_count");
|
||||
add_stat(stats->inbound.cng_packet_count, "in_cng_packet_count");
|
||||
add_stat(stats->inbound.flush_packet_count, "in_flush_packet_count");
|
||||
add_stat(stats->inbound.largest_jb_size, "in_largest_jb_size");
|
||||
|
||||
add_stat(stats->outbound.raw_bytes, "out_raw_bytes");
|
||||
add_stat(stats->outbound.media_bytes, "out_media_bytes");
|
||||
|
|
|
@ -4138,6 +4138,10 @@ SWITCH_DECLARE(switch_rtp_stats_t *) switch_rtp_get_stats(switch_rtp_t *rtp_sess
|
|||
s = &rtp_session->stats;
|
||||
}
|
||||
|
||||
if (rtp_session->jb) {
|
||||
s->inbound.largest_jb_size = stfu_n_get_most_qlen(rtp_session->jb);
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue