mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update xml_cdr.php
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user