res_rtp_asterisk: Asterisk Media Experience Score (MES)
----------------- This commit reinstates MES with some casting fixes to the functions in time.h that convert between doubles and timeval structures. The casting issues were causing incorrect timestamps to be calculated which caused transcoding from/to G722 to produce bad or no audio. ASTERISK-30391 ----------------- This module has been updated to provide additional quality statistics in the form of an Asterisk Media Experience Score. The score is avilable using the same mechanisms you'd use to retrieve jitter, loss, and rtt statistics. For more information about the score and how to retrieve it, see https://wiki.asterisk.org/wiki/display/AST/Media+Experience+Score * Updated chan_pjsip to set quality channel variables when a call ends. * Updated channels/pjsip/dialplan_functions.c to add the ability to retrieve the MES along with the existing rtcp stats when using the CHANNEL dialplan function. * Added the ast_debug_rtp_is_allowed and ast_debug_rtcp_is_allowed checks for debugging purposes. * Added several function to time.h for manipulating time-in-samples and times represented as double seconds. * Updated rtp_engine.c to pass through the MES when stats are requested. Also debug output that dumps the stats when an rtp instance is destroyed. * Updated res_rtp_asterisk.c to implement the calculation of the MES. In the process, also had to update the calculation of jitter. Many debugging statements were also changed to be more informative. * Added a unit test for internal testing. The test should not be run during normal operation and is disabled by default. Change-Id: I4fce265965e68c3fdfeca55e614371ee69c65038
parent
62ca063f
No related branches found
No related tags found
Showing
- channels/chan_pjsip.c 19 additions, 0 deletionschannels/chan_pjsip.c
- channels/pjsip/dialplan_functions.c 67 additions, 0 deletionschannels/pjsip/dialplan_functions.c
- doc/CHANGES-staging/res_rtp_asterisk.txt 9 additions, 0 deletionsdoc/CHANGES-staging/res_rtp_asterisk.txt
- include/asterisk/rtp_engine.h 54 additions, 0 deletionsinclude/asterisk/rtp_engine.h
- include/asterisk/time.h 88 additions, 0 deletionsinclude/asterisk/time.h
- main/rtp_engine.c 66 additions, 8 deletionsmain/rtp_engine.c
- res/res_rtp_asterisk.c 453 additions, 85 deletionsres/res_rtp_asterisk.c
- tests/test_res_rtp.c 179 additions, 10 deletionstests/test_res_rtp.c
Loading
Please register or sign in to comment