mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update xml_cdr.php
This commit is contained in:
@@ -411,6 +411,16 @@ 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->api_on_answer) > 0) {
|
||||||
|
$command = str_replace("\n", " ", urldecode($xml->variables->api_on_answer));
|
||||||
|
$parts = explode(" ", $command);
|
||||||
|
if ($parts[0] == "uuid_record") {
|
||||||
|
$recording = $parts[3];
|
||||||
|
$record_path = dirname($recording);
|
||||||
|
$record_name = basename($recording);
|
||||||
|
}
|
||||||
|
$record_length = urldecode($xml->variables->duration);
|
||||||
|
}
|
||||||
|
|
||||||
//add the call recording
|
//add the call recording
|
||||||
if (isset($record_path) && isset($record_name) && file_exists($record_path.'/'.$record_name) && $record_length > 0) {
|
if (isset($record_path) && isset($record_name) && file_exists($record_path.'/'.$record_name) && $record_length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user