diff --git a/app/xml_cdr/resources/dashboard/missed_calls.php b/app/xml_cdr/resources/dashboard/missed_calls.php index 7a97d9584d..293eccc203 100644 --- a/app/xml_cdr/resources/dashboard/missed_calls.php +++ b/app/xml_cdr/resources/dashboard/missed_calls.php @@ -30,6 +30,7 @@ //get the missed calls from call detail records $sql = "select \n"; + $sql .= " status, \n"; $sql .= " direction, \n"; $sql .= " to_char(timezone(:time_zone, start_stamp), '".(!empty($_SESSION['domain']['time_format']) && $_SESSION['domain']['time_format']['text'] == '12h' ? "DD Mon HH12:MI am" : "DD Mon HH24:MI")."') as start_date_time, \n"; $sql .= " caller_id_name, \n"; @@ -43,7 +44,7 @@ $sql .= " direction = 'inbound' \n"; $sql .= " or direction = 'local' \n"; $sql .= " ) \n"; - $sql .= " and (missed_call = true or bridge_uuid is null) "; + $sql .= " and (status = 'missed') "; $sql .= " and hangup_cause <> 'LOSE_RACE' "; if (!permission_exists('xml_cdr_domain')) { if (!empty($assigned_extensions)) { @@ -168,7 +169,7 @@ echo "