mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update the CDR details
This commit is contained in:
@@ -84,10 +84,10 @@ else {
|
||||
//parse the xml to get the call detail record info
|
||||
try {
|
||||
if ($format == 'json') {
|
||||
$xml = json_decode($json_string);
|
||||
$array = json_decode($json_string,true);
|
||||
}
|
||||
if ($format == 'json') {
|
||||
$xml = simplexml_load_string($xml_string);
|
||||
if ($format == 'xml') {
|
||||
$array = json_decode(json_encode((array)simplexml_load_string($xml_string)),true);
|
||||
}
|
||||
}
|
||||
catch(Exception $e) {
|
||||
@@ -97,6 +97,10 @@ else {
|
||||
//get the header
|
||||
require_once "resources/header.php";
|
||||
|
||||
print_r($array);
|
||||
|
||||
exit;
|
||||
|
||||
//page title and description
|
||||
echo "<br>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
Reference in New Issue
Block a user