diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php
index bb5dcaad3c..daeb2d58d9 100644
--- a/app/xml_cdr/xml_cdr.php
+++ b/app/xml_cdr/xml_cdr.php
@@ -91,7 +91,7 @@
echo " \n";
echo " \n";
echo " \n";
- echo " \n";
+ echo " \n";
echo " \n";
echo " \n";
echo " \n";
@@ -323,7 +323,7 @@
echo " ".$text['label-caller-destination']."\n";
echo " \n";
echo "
\n";
- echo " \n";
+ echo " \n";
echo " | \n";
echo " \n";
echo "\n";
@@ -375,7 +375,7 @@
}
echo th_order_by('caller_id_name', $text['label-cid-name'], $order_by, $order, null, null, $param);
echo th_order_by('caller_id_number', $text['label-source'], $order_by, $order, null, null, $param);
- echo th_order_by('caller_destination_number', $text['label-caller_destination'], $order_by, $order, null, null, $param);
+ echo th_order_by('caller_destination', "caller destination ".$text['label-caller_destination'], $order_by, $order, null, null, $param);
echo th_order_by('destination_number', $text['label-destination'], $order_by, $order, null, null, $param);
if (permission_exists('recording_play') || permission_exists('recording_download')) {
echo "".$text['label-recording']." | \n";
@@ -550,12 +550,12 @@
echo " \n";
//caller destination
echo " ";
- echo " \n";
- if (is_numeric($row['caller_destination_number'])) {
- echo " ".format_phone($row['caller_destination_number']).' ';
+ echo " \n";
+ if (is_numeric($row['caller_destination'])) {
+ echo " ".format_phone($row['caller_destination']).' ';
}
else {
- echo " ".$row['caller_destination_number'].' ';
+ echo " ".$row['caller_destination'].' ';
}
echo " ";
echo " | \n";