Update xml_cdr_inc.php
This commit is contained in:
@@ -303,8 +303,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($_GET['showall'] == 'true' && permission_exists('xml_cdr_all')) {
|
if ($_GET['show'] == 'all' && permission_exists('xml_cdr_all')) {
|
||||||
$param .= "&showall=true";
|
$param .= "&show=all";
|
||||||
}
|
}
|
||||||
if (isset($order_by)) {
|
if (isset($order_by)) {
|
||||||
$param .= "&order_by=".$order_by."&order=".$order;
|
$param .= "&order_by=".$order_by."&order=".$order;
|
||||||
@@ -395,11 +395,11 @@
|
|||||||
$sql .= "rtp_audio_in_mos, ";
|
$sql .= "rtp_audio_in_mos, ";
|
||||||
}
|
}
|
||||||
$sql .= "(answer_epoch - start_epoch) as tta ";
|
$sql .= "(answer_epoch - start_epoch) as tta ";
|
||||||
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
|
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
|
||||||
$sql .= ", domain_name ";
|
$sql .= ", domain_name ";
|
||||||
}
|
}
|
||||||
$sql .= "from v_xml_cdr ";
|
$sql .= "from v_xml_cdr ";
|
||||||
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
|
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
|
||||||
if ($sql_where) { $sql .= "where "; }
|
if ($sql_where) { $sql .= "where "; }
|
||||||
} else {
|
} else {
|
||||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||||
|
|||||||
Reference in New Issue
Block a user