diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 38aa1840d9..79aa8a653d 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -507,7 +507,7 @@ if (!class_exists('xml_cdr')) { //call center $missed_call = 'false'; } - if (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'member' + 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'; @@ -580,6 +580,9 @@ if (!class_exists('xml_cdr')) { if (in_array($xml->variables->hangup_cause, $failed_array)) { $status = 'failed'; } + if (!isset($status) && in_array($xml->variables->last_bridge_hangup_cause, $failed_array)) { + $status = 'failed'; + } //set the provider id if (isset($xml->variables->provider_uuid)) { @@ -1992,3 +1995,4 @@ if (!class_exists('xml_cdr')) { } ?> +