Update xml_cdr.php

This commit is contained in:
FusionPBX 2017-09-14 17:27:38 -05:00 committed by GitHub
parent d6e382d5c4
commit d36c4bbcbd
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,7 @@ if (!class_exists('xml_cdr')) {
//add the call recording
if (urldecode($xml->variables->record_name) > 0 && file_exists($_SERVER["PROJECT_ROOT"]."/app/call_recordings/app_config.php")) {
if (urldecode($xml->variables->billsec) > 0) {
$x = 0;
$array['call_recordings'][$x]['call_recording_uuid'] = $uuid;
$array['call_recordings'][$x]['domain_uuid'] = $domain_uuid;
@ -443,6 +444,7 @@ if (!class_exists('xml_cdr')) {
$p->delete("call_recording_edit", "temp");
unset($array);
}
}
//save to the database in xml format
if ($_SESSION['cdr']['format']['text'] == "xml" && $_SESSION['cdr']['storage']['text'] == "db") {