mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Handle no answer for unset status
This commit is contained in:
@@ -583,6 +583,12 @@ if (!class_exists('xml_cdr')) {
|
|||||||
if (!isset($status) && in_array($xml->variables->last_bridge_hangup_cause, $failed_array)) {
|
if (!isset($status) && in_array($xml->variables->last_bridge_hangup_cause, $failed_array)) {
|
||||||
$status = 'failed';
|
$status = 'failed';
|
||||||
}
|
}
|
||||||
|
if ($xml->variables->cc_side == 'agent' && $xml->variables->billsec == 0) {
|
||||||
|
$status = 'no_answer';
|
||||||
|
}
|
||||||
|
if (!isset($status) && $xml->variables->billsec == 0) {
|
||||||
|
$status = 'no_answer';
|
||||||
|
}
|
||||||
|
|
||||||
//set the provider id
|
//set the provider id
|
||||||
if (isset($xml->variables->provider_uuid)) {
|
if (isset($xml->variables->provider_uuid)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user