mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use last_bridge_hangup_cause to determine status
This commit is contained in:
@@ -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')) {
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user