Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX 2017-06-21 19:34:06 -06:00 committed by GitHub
parent 6ebf247241
commit b0bef2fc80
1 changed files with 9 additions and 1 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2015
Portions created by the Initial Developer are Copyright (C) 2008-2017
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -259,6 +259,14 @@
if(isset($recording_file) && !empty($recording_file)) {
$database->fields['recording_file'] = $recording_file;
}
if(isset($recording_file) && !empty($recording_file)) {
$database->fields['recording_name'] = $recording_file;
}
//get the recording name
if (strlen($xml->variables->recording_name) > 0) {
$database->fields['recording_name'] = urldecode($xml->variables->recording_name);
}
//dynamic cdr fields
if (is_array($_SESSION['cdr']['field'])) {