Check for missed_call variable use it if it exists
This commit is contained in:
parent
f591c04f22
commit
7a6c44267a
|
|
@ -374,7 +374,10 @@ if (!class_exists('xml_cdr')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//set missed calls
|
//set missed calls
|
||||||
if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
|
if (isset($xml->variables->missed_call) {
|
||||||
|
$missed_call = $xml->variables->missed_call;
|
||||||
|
}
|
||||||
|
elseif (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {
|
||||||
//answered call
|
//answered call
|
||||||
$missed_call = 'false';
|
$missed_call = 'false';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue