RTP stats were not being logged. There is no JIRA on this sigh

This commit is contained in:
Anthony Minessale committed 2013-04-26 09:31:28 -05:00
1 parent 442a53ae3c
commit 7a42ec06df
7 files changed
+64 -57

No files matched your search

+6
View File
@@ -5748,6 +5748,11 @@ SWITCH_DECLARE(switch_rtp_stats_t *) switch_rtp_get_stats(switch_rtp_t *rtp_sess
{
switch_rtp_stats_t *s;
if (!rtp_session) {
return NULL;
}
switch_mutex_lock(rtp_session->flag_mutex);
if (pool) {
s = switch_core_alloc(pool, sizeof(*s));
*s = rtp_session->stats;
@@ -5758,6 +5763,7 @@ SWITCH_DECLARE(switch_rtp_stats_t *) switch_rtp_get_stats(switch_rtp_t *rtp_sess
if (rtp_session->jb) {
s->inbound.largest_jb_size = stfu_n_get_most_qlen(rtp_session->jb);
}
switch_mutex_unlock(rtp_session->flag_mutex);
return s;
}