diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php
index 6fe57a48ea..6f2266d220 100644
--- a/app/xml_cdr/xml_cdr_details.php
+++ b/app/xml_cdr/xml_cdr_details.php
@@ -122,39 +122,38 @@ exit;
echo "
\n";
//detail summary
- //get the variables from the xml
- $uuid = check_str(urldecode($xml->variables->uuid));
- $direction = check_str(urldecode($xml->channel_data->direction));
- $language = check_str(urldecode($xml->variables->language));
- $xml_string = check_str($xml_string);
- $start_epoch = check_str(urldecode($xml->variables->start_epoch));
- $start_stamp = check_str(urldecode($xml->variables->start_stamp));
- $start_uepoch = check_str(urldecode($xml->variables->start_uepoch));
- $answer_stamp = check_str(urldecode($xml->variables->answer_stamp));
- $answer_epoch = check_str(urldecode($xml->variables->answer_epoch));
- $answer_uepoch = check_str(urldecode($xml->variables->answer_uepoch));
- $end_epoch = check_str(urldecode($xml->variables->end_epoch));
- $end_uepoch = check_str(urldecode($xml->variables->end_uepoch));
- $end_stamp = check_str(urldecode($xml->variables->end_stamp));
- $duration = check_str(urldecode($xml->variables->duration));
- $mduration = check_str(urldecode($xml->variables->mduration));
- $billsec = check_str(urldecode($xml->variables->billsec));
- $billmsec = check_str(urldecode($xml->variables->billmsec));
- $bridge_uuid = check_str(urldecode($xml->variables->bridge_uuid));
- $read_codec = check_str(urldecode($xml->variables->read_codec));
- $write_codec = check_str(urldecode($xml->variables->write_codec));
- $remote_media_ip = check_str(urldecode($xml->variables->remote_media_ip));
- $hangup_cause = check_str(urldecode($xml->variables->hangup_cause));
- $hangup_cause_q850 = check_str(urldecode($xml->variables->hangup_cause_q850));
+ //get the variables
+ $uuid = check_str(urldecode($array["variables"]["uuid"]));
+ $direction = check_str(urldecode($array["channel_data"]["direction"]));
+ $language = check_str(urldecode($array["variables"]["language"]));
+ $start_epoch = check_str(urldecode($array["variables"]["start_epoch"]));
+ $start_stamp = check_str(urldecode($array["variables"]["start_stamp"]));
+ $start_uepoch = check_str(urldecode($array["variables"]["start_uepoch"]));
+ $answer_stamp = check_str(urldecode($array["variables"]["answer_stamp"]));
+ $answer_epoch = check_str(urldecode($array["variables"]["answer_epoch"]));
+ $answer_uepoch = check_str(urldecode($array["variables"]["answer_uepoch"]));
+ $end_epoch = check_str(urldecode($array["variables"]["end_epoch"]));
+ $end_uepoch = check_str(urldecode($array["variables"]["end_uepoch"]));
+ $end_stamp = check_str(urldecode($array["variables"]["end_stamp"]));
+ $duration = check_str(urldecode($array["variables"]["duration"]));
+ $mduration = check_str(urldecode($array["variables"]["mduration"]));
+ $billsec = check_str(urldecode($array["variables"]["billsec"]));
+ $billmsec = check_str(urldecode($array["variables"]["billmsec"]));
+ $bridge_uuid = check_str(urldecode($array["variables"]["bridge_uuid"]));
+ $read_codec = check_str(urldecode($array["variables"]["read_codec"]));
+ $write_codec = check_str(urldecode($array["variables"]["write_codec"]));
+ $remote_media_ip = check_str(urldecode($array["variables"]["remote_media_ip"]));
+ $hangup_cause = check_str(urldecode($array["variables"]["hangup_cause"]));
+ $hangup_cause_q850 = check_str(urldecode($array["variables"]["hangup_cause_q850"]));
$x = 0;
- foreach ($xml->callflow as $row) {
+ foreach ($array["callflow"] as $row) {
if ($x == 0) {
- $destination_number = check_str(urldecode($row->caller_profile->destination_number));
- $context = check_str(urldecode($row->caller_profile->context));
- $network_addr = check_str(urldecode($row->caller_profile->network_addr));
+ $destination_number = check_str(urldecode($row["caller_profile"]["destination_number"]));
+ $context = check_str(urldecode($row["caller_profile"]["context"]));
+ $network_addr = check_str(urldecode($row["caller_profile"]["network_addr"]));
}
- $caller_id_name = check_str(urldecode($row->caller_profile->caller_id_name));
- $caller_id_number = check_str(urldecode($row->caller_profile->caller_id_number));
+ $caller_id_name = check_str(urldecode($row["caller_profile"]["caller_id_name"]);
+ $caller_id_number = check_str(urldecode($row["caller_profile"]["caller_id_number"]));
$x++;
}
unset($x);
@@ -245,9 +244,7 @@ exit;
echo "
| ".$text['label-name']." | \n"; echo "".$text['label-value']." | \n"; echo "|||||||
|---|---|---|---|---|---|---|---|---|
| ".$key." | \n"; echo "".wordwrap($value,75," \n", TRUE)." | \n";
@@ -407,7 +403,7 @@ exit;
echo " ".$text['label-name']." | \n"; echo "".$text['label-value']." | \n"; echo "|||||
| ".$key." | \n"; echo "".wordwrap($value,75," \n", TRUE)." | \n";
@@ -432,9 +428,9 @@ exit;
echo " ".$text['label-name']." | \n"; echo "".$text['label-data']." | \n"; echo "|||||
| ".$app_name." | \n"; echo "".wordwrap($app_data,75," \n", TRUE)." | \n";
@@ -459,11 +455,10 @@ exit;
echo " ".$text['label-name']." | \n"; echo "".$text['label-value']." | \n"; echo "|||||
| ".$key." | \n"; echo "".wordwrap($value,75," \n", TRUE)." | \n";
}
@@ -471,10 +466,8 @@ exit;
echo " ".$key." | \n"; echo "\n";
echo "
|