Exclude LOSE_RACE for missed calls (#6338)

* Exclude LOSE_RACE for missed calls

* Update xml_cdr_inc.php
This commit is contained in:
FusionPBX 2022-04-07 10:05:54 -06:00 committed by GitHub
parent a16c109c96
commit 4ab4fbbae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,7 @@
}
if ($missed == true) {
$sql .= "and missed_call = 1 \n";
$sql .= "and hangup_cause <> 'LOSE_RACE' ";
}
if (strlen($start_epoch) > 0 && strlen($stop_epoch) > 0) {
$sql .= "and start_epoch between :start_epoch and :stop_epoch \n";
@ -470,6 +471,7 @@
break;
case 'missed':
$sql .= "and missed_call = '1' ";
$sql .= "and hangup_cause <> 'LOSE_RACE' ";
break;
case 'cancelled':
if ($direction == 'inbound' || $direction == 'local' || $call_result == 'missed') {

View File

@ -154,6 +154,7 @@
}
if ($missed == true) {
$sql_where_ands[] = "missed_call = true ";
$sql_where_ands[] = "and hangup_cause <> 'LOSE_RACE' ";
}
if (strlen($start_epoch) > 0 && strlen($stop_epoch) > 0) {
$sql_where_ands[] = "start_epoch between :start_epoch and :stop_epoch";