Use answer_stamp and bridge_uuid to deteremine if the call was answered.

This commit is contained in:
FusionPBX 2021-11-19 11:11:40 -07:00 committed by GitHub
parent 65b3cc0e32
commit 80cfab92b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ if (!class_exists('xml_cdr')) {
$sql .= "count(*) \n";
$sql .= "filter ( \n";
$sql .= " where c.extension_uuid = e.extension_uuid \n";
$sql .= " and missed_call = false \n";
$sql .= " and (answer_stamp is not null and bridge_uuid is not null) \n";
if ($this->include_internal) {
$sql .= " and (direction = 'inbound' or direction = 'local') \n";
}