Update xml_cdr.php

This commit is contained in:
FusionPBX 2017-10-20 18:04:07 -06:00 committed by GitHub
parent 8e4fb530fa
commit 3c0ffc943d
1 changed files with 2 additions and 2 deletions

View File

@ -421,8 +421,8 @@ if (!class_exists('xml_cdr')) {
$record_length = urldecode($xml->variables->duration);
}
}
elseif (strlen($xml->variables->bridge) > 0) {
$commands = explode(",", urldecode($xml->variables->bridge));
elseif (strlen($xml->variables->current_application_data) > 0) {
$commands = explode(",", urldecode($xml->variables->current_application_data));
foreach ($commands as $command) {
$cmd = explode("=", $command);
if ($cmd[0] == "api_on_answer") {