Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX 2016-12-21 14:15:57 -07:00 committed by GitHub
parent 13c601b88b
commit 3112a5a170
1 changed files with 7 additions and 0 deletions

View File

@ -239,6 +239,13 @@
$database->fields['recording_file'] = $recording_file;
}
//dynamic cdr fields
if (is_array($_SESSION['cdr']['field'])) {
foreach ($_SESSION['cdr']['field'] as $field) {
$database->fields[$field] = check_str(urldecode($xml->variables->$field));;
}
}
//save to the database in xml format
if ($_SESSION['cdr']['format']['text'] == "xml" && $_SESSION['cdr']['storage']['text'] == "db") {
$database->fields['xml'] = check_str($xml_string);