BugFix-[master]-mos (#2547)

change incorrect % calculation of MOS to tagged words to represent the standard, see - https://en.wikipedia.org/wiki/Mean_opinion_score
This commit is contained in:
Mafoo
2017-05-10 21:09:30 +01:00
committed by FusionPBX
parent bca24ac04d
commit ce6fed13fd
2 changed files with 70 additions and 1 deletions

View File

@@ -649,7 +649,11 @@
}
//mos (mean opinion score)
if (permission_exists("xml_cdr_mos")) {
echo " <td valign='top' class='".$row_style[$c]."' ".((strlen($row['rtp_audio_in_mos']) > 0) ? "title='".($row['rtp_audio_in_mos'] / 5 * 100)."%'" : null)." style='text-align: center;'>".((strlen($row['rtp_audio_in_mos']) > 0) ? $row['rtp_audio_in_mos'] : "&nbsp;")."</td>\n";
if(strlen($row['rtp_audio_in_mos']) > 0){
$title = " title='".$text['label-mos_score-'.round($row['rtp_audio_in_mos'])]."'";
$value = $row['rtp_audio_in_mos'];
}
echo " <td valign='top' class='".$row_style[$c]."'$title style='text-align: center;'>$value</td>\n";
}
//hangup cause/call result
if (if_group("admin") || if_group("superadmin") || if_group("cdr")) {