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