Fix ring group missed call to show in CDR
This commit is contained in:
parent
c3c1b18358
commit
8655c792a3
|
|
@ -484,10 +484,6 @@ if (!class_exists('xml_cdr')) {
|
|||
}
|
||||
|
||||
//set missed calls
|
||||
if (isset($xml->variables->missed_call)) {
|
||||
//marked as missed
|
||||
$missed_call = $xml->variables->missed_call;
|
||||
}
|
||||
if (isset($call_direction) && $call_direction == 'inbound'
|
||||
&& isset($xml->variables->hangup_cause)
|
||||
&& $xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
||||
|
|
@ -526,6 +522,10 @@ if (!class_exists('xml_cdr')) {
|
|||
//voicemail
|
||||
$missed_call = 'true';
|
||||
}
|
||||
if (isset($xml->variables->missed_call) && $xml->variables->missed_call == 'true') {
|
||||
//marked as missed
|
||||
$missed_call = 'true';
|
||||
}
|
||||
|
||||
//read the bridge statement variables
|
||||
if (isset($xml->variables->last_app)) {
|
||||
|
|
@ -579,9 +579,6 @@ if (!class_exists('xml_cdr')) {
|
|||
if ($xml->variables->hangup_cause == 'NO_ANSWER') {
|
||||
$status = 'no_answer';
|
||||
}
|
||||
if ($missed_call == 'true') {
|
||||
$status = 'missed';
|
||||
}
|
||||
if (substr($destination_number, 0, 3) == '*99') {
|
||||
$status = 'voicemail';
|
||||
}
|
||||
|
|
@ -606,6 +603,9 @@ if (!class_exists('xml_cdr')) {
|
|||
if (!isset($status) && $xml->variables->billsec == 0) {
|
||||
$status = 'no_answer';
|
||||
}
|
||||
if ($missed_call == 'true') {
|
||||
$status = 'missed';
|
||||
}
|
||||
|
||||
//set the key
|
||||
$key = 'xml_cdr';
|
||||
|
|
|
|||
Loading…
Reference in New Issue