Exclude Call center agent as missed call

The call could have been answered by another call center agent.
This commit is contained in:
FusionPBX
2023-01-28 14:49:35 -07:00
committed by GitHub
parent 87716d051d
commit e3b600eaff

View File

@@ -423,11 +423,15 @@ if (!class_exists('xml_cdr')) {
//answered call
$missed_call = 'false';
}
elseif (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'agent') {
//call center
$missed_call = 'false';
}
else {
//missed call
$missed_call = 'true';
}
//get the last bridge_uuid from the call to preserve previous behavior
foreach ($xml->variables->bridge_uuids as $bridge) {
$last_bridge = urldecode($bridge);