Add a new wait column

This commit is contained in:
FusionPBX
2025-08-05 22:27:39 -06:00
committed by GitHub
parent 86307eea73
commit 9a377766cd
4 changed files with 43 additions and 4 deletions

View File

@@ -777,6 +777,10 @@
echo "<th class='center shrink hide-lg-dn'>".$text['label-codecs']."</th>\n";
$col_count++;
}
if ($permission['xml_cdr_wait']) {
echo "<th class='right hide-lg-dn'>".$text['label-wait']."</th>\n";
$col_count++;
}
if ($permission['xml_cdr_tta']) {
echo "<th class='right hide-lg-dn' title=\"".$text['description-tta']."\">".$text['label-tta']."</th>\n";
$col_count++;
@@ -1050,13 +1054,17 @@
if ($permission['xml_cdr_codecs']) {
$content .= " <td class='middle right hide-lg-dn no-wrap'>".($row['read_codec'] ?? '').' / '.($row['write_codec'] ?? '')."</td>\n";
}
//tta (time to answer)
if ($permission['xml_cdr_wait']) {
$content .= " <td class='middle right hide-lg-dn'>".(!empty($row['wait']) && $row['wait'] >= 0 ? gmdate("i:s", $row['wait']) : "&nbsp;")."</td>\n";
}
//tta (time to answer)
if ($permission['xml_cdr_tta']) {
$content .= " <td class='middle right hide-lg-dn'>".(!empty($row['tta']) && $row['tta'] >= 0 ? $row['tta']."s" : "&nbsp;")."</td>\n";
$content .= " <td class='middle right hide-lg-dn'>".(!empty($row['tta']) && $row['tta'] >= 0 ? $row['tta'] : "&nbsp;")."</td>\n";
}
//pdd (post dial delay)
if ($permission['xml_cdr_pdd']) {
$content .= " <td class='middle right hide-lg-dn'>".number_format(escape($row['pdd_ms'])/1000,2)."s</td>\n";
$content .= " <td class='middle right hide-lg-dn'>".number_format(escape($row['pdd_ms'])/1000,2)."</td>\n";
}
//mos (mean opinion score)
if ($permission['xml_cdr_mos']) {