diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php
index ba86476456..8eec2d3cab 100644
--- a/app/xml_cdr/v_xml_cdr_import.php
+++ b/app/xml_cdr/v_xml_cdr_import.php
@@ -77,7 +77,7 @@
$database->fields['accountcode'] = check_str(urldecode($xml->variables->accountcode));
$database->fields['default_language'] = check_str(urldecode($xml->variables->default_language));
$database->fields['bridge_uuid'] = check_str(urldecode($xml->variables->bridge_uuid));
- $database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
+ //$database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
$database->fields['sip_hangup_disposition'] = check_str(urldecode($xml->variables->sip_hangup_disposition));
//time
$database->fields['start_epoch'] = check_str(urldecode($xml->variables->start_epoch));
diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php
index 0f7d1484dd..33d83cf039 100644
--- a/app/xml_cdr/xml_cdr_details.php
+++ b/app/xml_cdr/xml_cdr_details.php
@@ -178,7 +178,6 @@ else {
//$tmp_file_array = explode("\.",$file);
echo $caller_id_name.' ';
echo " ";
-
}
else {
echo $caller_id_name.' ';
@@ -257,41 +256,43 @@ else {
foreach($xml->variables->children() as $child) {
$key = $child->getName();
$value = urldecode($child);
- echo "
\n";
- echo " | ".$key." | \n";
- if ($key == "bridge_uuid" || $key == "signal_bond") {
- echo " \n";
- echo " ".$value." \n";
- $tmp_dir = $_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
- $tmp_name = '';
- if (file_exists($tmp_dir.'/'.$value.'.wav')) {
- $tmp_name = $value.".wav";
+ if ($key != "digits_dialed" && $key != "dsn") {
+ echo " |
\n";
+ echo " | ".$key." | \n";
+ if ($key == "bridge_uuid" || $key == "signal_bond") {
+ echo " \n";
+ echo " ".$value." \n";
+ $tmp_dir = $_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
+ $tmp_name = '';
+ if (file_exists($tmp_dir.'/'.$value.'.wav')) {
+ $tmp_name = $value.".wav";
+ }
+ elseif (file_exists($tmp_dir.'/'.$value.'_1.wav')) {
+ $tmp_name = $value."_1.wav";
+ }
+ elseif (file_exists($tmp_dir.'/'.$value.'.mp3')) {
+ $tmp_name = $value.".mp3";
+ }
+ elseif (file_exists($tmp_dir.'/'.$value.'_1.mp3')) {
+ $tmp_name = $value."_1.mp3";
+ }
+ if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
+ echo " \n";
+ echo " play";
+ echo " ";
+ }
+ if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
+ echo " \n";
+ echo " download";
+ echo " ";
+ }
+ echo " | \n";
}
- elseif (file_exists($tmp_dir.'/'.$value.'_1.wav')) {
- $tmp_name = $value."_1.wav";
+ else {
+ echo " ".wordwrap($value,75," \n", TRUE)." | \n";
}
- elseif (file_exists($tmp_dir.'/'.$value.'.mp3')) {
- $tmp_name = $value.".mp3";
- }
- elseif (file_exists($tmp_dir.'/'.$value.'_1.mp3')) {
- $tmp_name = $value."_1.mp3";
- }
- if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
- echo " \n";
- echo " play";
- echo " ";
- }
- if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
- echo " \n";
- echo " download";
- echo " ";
- }
- echo "\n";
+ echo "
\n";
}
- else {
- echo " ".wordwrap($value,75," \n", TRUE)." | \n";
- }
- echo "\n";
if ($c==0) { $c=1; } else { $c=0; }
}
echo "";