mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Simplify missed call handling.
This commit is contained in:
@@ -340,14 +340,12 @@ if (!class_exists('xml_cdr')) {
|
||||
}
|
||||
|
||||
//set missed calls
|
||||
$missed_call = 'false';
|
||||
if ($xml->variables->missed_call == 'true') {
|
||||
$missed_call = 'true';
|
||||
if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
|
||||
//answered call
|
||||
$missed_call = 'false';
|
||||
}
|
||||
elseif ($xml->variables->cc_side != "agent" && strlen($xml->variables->originating_leg_uuid) == 0 && $xml->variables->call_direction != 'outbound' && strlen($xml->variables->answer_stamp) == 0) {
|
||||
$missed_call = 'true';
|
||||
}
|
||||
elseif ($xml->variables->voicemail_action == "save" && strlen($xml->variables->bridge_uuid) > 0) {
|
||||
else {
|
||||
//missed call
|
||||
$missed_call = 'true';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user