Add Call Detail Record status no answer
This commit is contained in:
@@ -560,6 +560,9 @@ if (!class_exists('xml_cdr')) {
|
||||
if ($xml->variables->billsec > 0) {
|
||||
$status = 'answered';
|
||||
}
|
||||
if ($xml->variables->hangup_cause == 'NO_ANSWER') {
|
||||
$status = 'no_answer';
|
||||
}
|
||||
if ($missed_call == 'true') {
|
||||
$status = 'missed';
|
||||
}
|
||||
@@ -575,9 +578,6 @@ if (!class_exists('xml_cdr')) {
|
||||
if (in_array($xml->variables->hangup_cause, $failed_array)) {
|
||||
$status = 'failed';
|
||||
}
|
||||
if (empty($status)) {
|
||||
$status = 'none';
|
||||
}
|
||||
|
||||
//misc
|
||||
$key = 0;
|
||||
|
||||
Reference in New Issue
Block a user