Update xml_cdr.php

This commit is contained in:
FusionPBX
2017-06-21 23:39:56 -06:00
committed by GitHub
parent b0bef2fc80
commit b8e460a81c

View File

@@ -122,6 +122,7 @@ if (!class_exists('xml_cdr')) {
$this->fields[] = "remote_media_ip";
$this->fields[] = "network_addr";
$this->fields[] = "recording_file";
$this->fields[] = "recording_name";
$this->fields[] = "leg";
$this->fields[] = "pdd_ms";
$this->fields[] = "rtp_audio_in_mos";
@@ -403,6 +404,11 @@ if (!class_exists('xml_cdr')) {
$this->array[$key]['recording_file'] = $recording_file;
}
//get the recording name
if (strlen($xml->variables->recording_name) > 0) {
$this->array[$key]['recording_name'] = urldecode($xml->variables->recording_name);
}
//save to the database in xml format
if ($_SESSION['cdr']['format']['text'] == "xml" && $_SESSION['cdr']['storage']['text'] == "db") {
$this->array[$key]['xml'] = check_str($xml_string);