1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-19 01:45:32 +00:00

FS-11058: [core] Add RTT to RECV_RTCP_MESSAGE

Add the RTT field to the RECV_RTCP_MESSAGE event emission which allows external listeners to compute MOS RTCP from the event.
This commit is contained in:
ifox 2018-03-09 17:25:34 -08:00 committed by Muteesa Fred
parent 835063f9d0
commit 8e362825de

@ -3047,6 +3047,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
snprintf(header, sizeof(header), "Source%u-DLSR", i);
snprintf(value, sizeof(value), "%u", rtcp_frame.reports[i].dlsr);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header, value);
snprintf(header, sizeof(header), "Rtt%u-Avg", i);
snprintf(value, sizeof(value), "%f", rtcp_frame.reports[i].rtt_avg);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header, value);
}
switch_event_fire(&event);