Skip to content

Instantly share code, notes, and snippets.

@seanbright
Created February 11, 2024 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbright/ff1fef05fe3818f4579df9d868bfe3b3 to your computer and use it in GitHub Desktop.
Save seanbright/ff1fef05fe3818f4579df9d868bfe3b3 to your computer and use it in GitHub Desktop.
res_rtp_asterisk.c: Correct coefficient in MOS calculation.
Media Experience Score relies on incorrect pseudo_mos variable
calculation. According to forming an opinion section of the
documentation, calculation relies on ITU-T G.107 standard:
https://docs.asterisk.org/Deployment/Media-Experience-Score/#forming-an-opinion
ITU-T G.107 Annex B suggests to calculate MOS with a coefficient
"seven times ten to the power of negative six", 7 * 10^(-6). which
would mean 6 digits after the decimal point. Current implementation
has 7 digits after the decimal point, which downrates the calls.
Fixes: #597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment