From 6adce64d7fbdafad463d17c243d40ca94839b7c4 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Fri, 23 Jun 2017 18:21:25 +0300 Subject: [PATCH] Add. Support `missed` argument in xml_cdr.php (#2711) This argument used when build link in xml_cdr_statistics.php. --- app/xml_cdr/xml_cdr_inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index f185306970..a38574a435 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -47,6 +47,7 @@ //get post or get variables from http if (count($_REQUEST) > 0) { $cdr_id = check_str($_REQUEST["cdr_id"]); + $missed = check_str($_REQUEST["missed"]); $direction = check_str($_REQUEST["direction"]); $caller_id_name = check_str($_REQUEST["caller_id_name"]); $caller_id_number = check_str($_REQUEST["caller_id_number"]); @@ -107,6 +108,9 @@ } //build the sql where string + if ($missed == true) { + $sql_where_ands[] = "billsec = '0'"; + } if (strlen($start_epoch) > 0 && strlen($stop_epoch) > 0) { $sql_where_ands[] = "start_epoch BETWEEN ".$start_epoch." AND ".$stop_epoch." "; } @@ -258,6 +262,7 @@ //set the param variable which is used with paging $param = "&cdr_id=".$cdr_id; + $param .= "&missed=".$missed; $param .= "&direction=".$direction; $param .= "&caller_id_name=".$caller_id_name; $param .= "&caller_id_number=".$caller_id_number;