mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix call center missed call
Fixed this by changing the order of operations. Billsec greater than zero overrode missed call equal to true.
This commit is contained in:
@@ -545,15 +545,15 @@
|
||||
//ring group or multi destination bridge statement
|
||||
$missed_call = 'false';
|
||||
}
|
||||
if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
||||
//answered call
|
||||
$missed_call = 'false';
|
||||
}
|
||||
if (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'member'
|
||||
&& isset($xml->variables->cc_cause) && $xml->variables->cc_cause == 'cancel') {
|
||||
//call center
|
||||
$missed_call = 'true';
|
||||
}
|
||||
if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
||||
//answered call
|
||||
$missed_call = 'false';
|
||||
}
|
||||
if (isset($xml->variables->destination_number) && substr($xml->variables->destination_number, 0, 3) == '*99') {
|
||||
//voicemail
|
||||
$missed_call = 'true';
|
||||
|
||||
Reference in New Issue
Block a user