mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 18:54:14 +00:00
RTP stats were not being logged. There is no JIRA on this sigh
This commit is contained in:
1 parent
442a53ae3c
commit
7a42ec06df
7 files changed
+64
-57
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user