Add the extension name to CDR

This commit is contained in:
FusionPBX 2024-05-23 14:31:56 -06:00 committed by GitHub
parent c5547092d3
commit 5672944a5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -594,7 +594,7 @@
$col_count++;
}
if (permission_exists('xml_cdr_extension')) {
echo "<th class='shrink'>".$text['label-ext']."</th>\n";
echo "<th class='shrink'>".$text['label-extension']."</th>\n";
$col_count++;
}
if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == "all") {
@ -824,7 +824,7 @@
}
//extension
if (permission_exists('xml_cdr_extension')) {
$content .= " <td class='middle'>".$row['extension']."</td>\n";
$content .= " <td class='middle'>".$row['extension']." ".escape($row['extension_name'])."</td>\n";
}
//domain name
if (permission_exists('xml_cdr_all') && $_REQUEST['show'] == "all") {

View File

@ -256,6 +256,7 @@
$sql .= "c.domain_uuid, \n";
$sql .= "c.sip_call_id, \n";
$sql .= "e.extension, \n";
$sql .= "e.effective_caller_id_name as extension_name, \n";
$sql .= "c.start_stamp, \n";
$sql .= "c.end_stamp, \n";
$sql .= "to_char(timezone(:time_zone, start_stamp), 'DD Mon YYYY') as start_date_formatted, \n";