Use last_bridge_hangup_cause to determine status
This commit is contained in:
parent
4919633568
commit
7de2ae0d23
|
|
@ -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')) {
|
|||
}
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue