Update xml_cdr.php

This commit is contained in:
FusionPBX 2018-02-05 13:32:40 -07:00 committed by GitHub
parent e6a5299593
commit ff363d921f
1 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2016-2017 Portions created by the Initial Developer are Copyright (C) 2016-2018
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -448,6 +448,11 @@ if (!class_exists('xml_cdr')) {
$record_name = basename(urldecode($xml->variables->sofia_record_file)); $record_name = basename(urldecode($xml->variables->sofia_record_file));
$record_length = urldecode($xml->variables->record_seconds); $record_length = urldecode($xml->variables->record_seconds);
} }
elseif (strlen($xml->variables->cc_record_filename) > 0) {
$record_path = dirname(urldecode($xml->variables->cc_record_filename));
$record_name = basename(urldecode($xml->variables->cc_record_filename));
$record_length = urldecode($xml->variables->record_seconds);
}
elseif (strlen($xml->variables->api_on_answer) > 0) { elseif (strlen($xml->variables->api_on_answer) > 0) {
$command = str_replace("\n", " ", urldecode($xml->variables->api_on_answer)); $command = str_replace("\n", " ", urldecode($xml->variables->api_on_answer));
$parts = explode(" ", $command); $parts = explode(" ", $command);