CDR Statistics: Updates for PHP 8.1
This commit is contained in:
parent
4d8bad9f1a
commit
3adeb15ace
|
|
@ -329,11 +329,11 @@
|
|||
echo " <td>".$row['time']." </td>\n";
|
||||
}
|
||||
echo " <td>".escape($row['volume'])." </td>\n";
|
||||
echo " <td>".(round(escape($row['minutes']),2))." </td>\n";
|
||||
echo " <td>".(round(escape($row['avg_min']),2))." / ".(round(escape($row['cpm_ans']),2))." </td>\n";
|
||||
echo " <td class='center'><a href=\"xml_cdr.php?call_result=missed&direction=$direction&start_epoch=".escape($row['start_epoch'])."&stop_epoch=".escape($row['stop_epoch'])."\">".escape($row['missed'])."</a> </td>\n";
|
||||
echo " <td>".(round(escape($row['asr']),2))." </td>\n";
|
||||
echo " <td>".(round(escape($row['aloc']),2))." </td>\n";
|
||||
echo " <td>".escape(round($row['minutes'] ?? 0, 2))." </td>\n";
|
||||
echo " <td>".escape(round($row['avg_min'] ?? 0, 2))." / ".escape(round($row['cpm_ans'] ?? 0, 2))." </td>\n";
|
||||
echo " <td class='center'><a href=\"xml_cdr.php?call_result=missed&direction=".$direction."&start_epoch=".escape($row['start_epoch'] ?? '')."&stop_epoch=".escape($row['stop_epoch'] ?? '')."\">".escape($row['missed'] ?? '')."</a> </td>\n";
|
||||
echo " <td>".escape(round($row['asr'] ?? 0, 2))." </td>\n";
|
||||
echo " <td>".escape(round($row['aloc'] ?? 0, 2))." </td>\n";
|
||||
echo "</tr >\n";
|
||||
$i++;
|
||||
}
|
||||
|
|
@ -343,4 +343,4 @@
|
|||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
@ -297,7 +297,7 @@
|
|||
}
|
||||
//Exclude enterprise ring group legs
|
||||
if (!permission_exists('xml_cdr_enterprise_leg')) {
|
||||
$sql_where_ands[] .= "c.originating_leg_uuid IS NULL";
|
||||
$sql_where_ands[] = "c.originating_leg_uuid IS NULL";
|
||||
}
|
||||
//If you can't see lose_race, don't run stats on it
|
||||
elseif (!permission_exists('xml_cdr_lose_race')) {
|
||||
|
|
@ -604,7 +604,7 @@
|
|||
$x = 0;
|
||||
foreach ($stats as $row) {
|
||||
$graph['minutes'][$x][] = $row['start_epoch'] * 1000;
|
||||
$graph['minutes'][$x][] = round($row['minutes'],2);
|
||||
$graph['minutes'][$x][] = round($row['minutes'] ?? 0,2);
|
||||
if ($x == $hours) { break; }
|
||||
$x++;
|
||||
}
|
||||
|
|
@ -625,16 +625,16 @@
|
|||
$x = 0;
|
||||
foreach ($stats as $row) {
|
||||
$graph['asr'][$x][] = $row['start_epoch'] * 1000;
|
||||
$graph['asr'][$x][] = round($row['asr'],2) / 100;
|
||||
$graph['asr'][$x][] = round($row['asr'] ?? 0,2) / 100;
|
||||
if ($x == $hours) { break; }
|
||||
$x++;
|
||||
}
|
||||
$x = 0;
|
||||
foreach ($stats as $row) {
|
||||
$graph['aloc'][$x][] = $row['start_epoch'] * 1000;
|
||||
$graph['aloc'][$x][] = round($row['aloc'],2);
|
||||
$graph['aloc'][$x][] = round($row['aloc'] ?? 0,2);
|
||||
if ($x == $hours) { break; }
|
||||
$x++;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue