Eliminate faxes from missed calls and ring group destinations that didn't answer the call.

This commit is contained in:
FusionPBX 2022-08-04 19:09:23 -06:00 committed by GitHub
parent 74d034d7a9
commit 301dc1501c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -377,7 +377,16 @@ if (!class_exists('xml_cdr')) {
if (isset($xml->variables->missed_call)) {
$missed_call = $xml->variables->missed_call;
}
elseif (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
elseif (isset($xml->variables->fax_success)) {
$missed_call = 'false';
}
elseif ($xml->variables->hangup_cause = 'LOSE_RACE') {
$missed_call = 'false';
}
elseif ($xml->variables->hangup_cause = 'NO_ANSWER' && isset($xml->variables->originating_leg_uuid)) {
$missed_call = 'false';
}
elseif (isset($xml->variables->answer_stamp)) {
//answered call
$missed_call = 'false';
}