Update v_xml_cdr_import.php
This commit is contained in:
@@ -101,8 +101,16 @@
|
|||||||
|
|
||||||
//parse the xml to get the call detail record info
|
//parse the xml to get the call detail record info
|
||||||
try {
|
try {
|
||||||
|
//send info to lthe log
|
||||||
xml_cdr_log($xml_string);
|
xml_cdr_log($xml_string);
|
||||||
$xml = simplexml_load_string($xml_string);
|
|
||||||
|
//disable xml entities
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
|
|
||||||
|
//load the string into an xml object
|
||||||
|
$xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||||
|
|
||||||
|
//send info to the log
|
||||||
xml_cdr_log("\nxml load done\n");
|
xml_cdr_log("\nxml load done\n");
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user