Simplify missed call handling.

This commit is contained in:
FusionPBX 2021-11-19 15:47:54 -07:00 committed by GitHub
parent 80cfab92b8
commit 2d4c65abee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -340,14 +340,12 @@ if (!class_exists('xml_cdr')) {
} }
//set missed calls //set missed calls
if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
//answered call
$missed_call = 'false'; $missed_call = 'false';
if ($xml->variables->missed_call == 'true') {
$missed_call = 'true';
} }
elseif ($xml->variables->cc_side != "agent" && strlen($xml->variables->originating_leg_uuid) == 0 && $xml->variables->call_direction != 'outbound' && strlen($xml->variables->answer_stamp) == 0) { else {
$missed_call = 'true'; //missed call
}
elseif ($xml->variables->voicemail_action == "save" && strlen($xml->variables->bridge_uuid) > 0) {
$missed_call = 'true'; $missed_call = 'true';
} }