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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -374,7 +374,10 @@ if (!class_exists('xml_cdr')) {
} }
//set missed calls //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 //answered call
$missed_call = 'false'; $missed_call = 'false';
} }