mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-22 07:02:34 +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:
parent
5ee36d393e
commit
14e4a87fb0
@ -3039,6 +3039,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
|
|||||||
snprintf(header, sizeof(header), "Source%u-DLSR", i);
|
snprintf(header, sizeof(header), "Source%u-DLSR", i);
|
||||||
snprintf(value, sizeof(value), "%u", rtcp_frame.reports[i].dlsr);
|
snprintf(value, sizeof(value), "%u", rtcp_frame.reports[i].dlsr);
|
||||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header, value);
|
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);
|
switch_event_fire(&event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user