Update the CDR details
This commit is contained in:
parent
8e0f548da3
commit
87502835a4
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue