diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php
index 8b6536e84b..5473eb3537 100644
--- a/app/xml_cdr/xml_cdr.php
+++ b/app/xml_cdr/xml_cdr.php
@@ -640,6 +640,11 @@
file_exists($theme_image_path."icon_cdr_local_failed.png")
) ? true : false;
+ //simplify the variables
+ $outbound_caller_id_name = $_SESSION['user']['extension'][0]['outbound_caller_id_name'] ?? '';
+ $outbound_caller_id_number = $_SESSION['user']['extension'][0]['outbound_caller_id_number'] ?? '';
+ $user_extension = $_SESSION['user']['extension'][0]['user'] ?? '';
+
//loop through the results
$x = 0;
foreach ($result as $index => $row) {
@@ -731,7 +736,7 @@
//source
if (permission_exists('xml_cdr_caller_id_number')) {
$content .= "
";
- $content .= " \n";
+ $content .= " \n";
if (is_numeric($row['caller_id_number'])) {
$content .= " ".escape(format_phone(substr($row['caller_id_number'], 0, 20))).' ';
}
@@ -744,7 +749,7 @@
//caller destination
if (permission_exists('xml_cdr_caller_destination')) {
$content .= " | ";
- $content .= " \n";
+ $content .= " \n";
if (is_numeric($row['caller_destination'])) {
$content .= " ".escape(format_phone(substr($row['caller_destination'], 0, 20))).' ';
}
@@ -757,7 +762,7 @@
//destination
if (permission_exists('xml_cdr_destination')) {
$content .= " | ";
- $content .= " \n";
+ $content .= " \n";
if (is_numeric($row['destination_number'])) {
$content .= escape(format_phone(substr($row['destination_number'], 0, 20)))."\n";
}
|