Update xml_cdr.php

This commit is contained in:
FusionPBX
2017-10-20 18:04:07 -06:00
committed by GitHub
parent 67a0f9eb07
commit 9b9c3950c0

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") {