Check for missed_call variable use it if it exists

This commit is contained in:
FusionPBX
2022-08-04 12:50:29 -06:00
committed by GitHub
parent f591c04f22
commit 7a6c44267a

View File

@@ -374,7 +374,10 @@ if (!class_exists('xml_cdr')) {
}
//set missed calls
if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
if (isset($xml->variables->missed_call) {
$missed_call = $xml->variables->missed_call;
}
elseif (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
//answered call
$missed_call = 'false';
}