[xml_cdr] cdr statistics fix LOSE_RACE (#6432)

This commit is contained in:
agree 2022-06-25 14:04:23 -04:00 committed by GitHub
parent 9c176e31e5
commit f907619679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -281,12 +281,12 @@
$sql_where_ands[] = "leg = :leg";
$parameters['leg'] = $leg;
}
//Exclude enterprise ring group legs
//Exclude enterprise ring group and follow me originated legs
if (!permission_exists('xml_cdr_enterprise_leg')) {
$sql_where_ands[] .= "originating_leg_uuid IS NULL";
}
//If you can't see lose_race, don't run stats on it
elseif (!permission_exists('xml_cdr_lose_race')) {
if (!permission_exists('xml_cdr_lose_race')) {
$sql_where_ands[] = "hangup_cause != 'LOSE_RACE'";
}