Update xml_cdr_inc.php
This commit is contained in:
parent
d58d9914cc
commit
2def533ebf
|
|
@ -67,7 +67,7 @@
|
||||||
$billsec = check_str($_REQUEST["billsec"]);
|
$billsec = check_str($_REQUEST["billsec"]);
|
||||||
$hangup_cause = check_str($_REQUEST["hangup_cause"]);
|
$hangup_cause = check_str($_REQUEST["hangup_cause"]);
|
||||||
$call_result = check_str($_REQUEST["call_result"]);
|
$call_result = check_str($_REQUEST["call_result"]);
|
||||||
$uuid = check_str($_REQUEST["uuid"]);
|
$xml_cdr_uuid = check_str($_REQUEST["xml_cdr_uuid"]);
|
||||||
$bleg_uuid = check_str($_REQUEST["bleg_uuid"]);
|
$bleg_uuid = check_str($_REQUEST["bleg_uuid"]);
|
||||||
$accountcode = check_str($_REQUEST["accountcode"]);
|
$accountcode = check_str($_REQUEST["accountcode"]);
|
||||||
$read_codec = check_str($_REQUEST["read_codec"]);
|
$read_codec = check_str($_REQUEST["read_codec"]);
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
$sql_where_ands[] = "(answer_stamp is null and bridge_uuid is null and billsec = 0 and sip_hangup_disposition = 'send_refuse')";
|
$sql_where_ands[] = "(answer_stamp is null and bridge_uuid is null and billsec = 0 and sip_hangup_disposition = 'send_refuse')";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strlen($uuid) > 0) { $sql_where_ands[] = "uuid = '".$uuid."'"; }
|
if (strlen($xml_cdr_uuid) > 0) { $sql_where_ands[] = "xml_cdr_uuid = '".$xml_cdr_uuid."'"; }
|
||||||
if (strlen($bleg_uuid) > 0) { $sql_where_ands[] = "bleg_uuid = '".$bleg_uuid."'"; }
|
if (strlen($bleg_uuid) > 0) { $sql_where_ands[] = "bleg_uuid = '".$bleg_uuid."'"; }
|
||||||
if (strlen($accountcode) > 0) { $sql_where_ands[] = "accountcode = '".$accountcode."'"; }
|
if (strlen($accountcode) > 0) { $sql_where_ands[] = "accountcode = '".$accountcode."'"; }
|
||||||
if (strlen($read_codec) > 0) { $sql_where_ands[] = "read_codec like '%".$read_codec."%'"; }
|
if (strlen($read_codec) > 0) { $sql_where_ands[] = "read_codec like '%".$read_codec."%'"; }
|
||||||
|
|
@ -284,7 +284,7 @@
|
||||||
$param .= "&billsec=".escape($billsec);
|
$param .= "&billsec=".escape($billsec);
|
||||||
$param .= "&hangup_cause=".escape($hangup_cause);
|
$param .= "&hangup_cause=".escape($hangup_cause);
|
||||||
$param .= "&call_result=".escape($call_result);
|
$param .= "&call_result=".escape($call_result);
|
||||||
$param .= "&uuid=".escape($uuid);
|
$param .= "&xml_cdr_uuid=".escape($xml_cdr_uuid);
|
||||||
$param .= "&bleg_uuid=".escape($bleg_uuid);
|
$param .= "&bleg_uuid=".escape($bleg_uuid);
|
||||||
$param .= "&accountcode=".escape($accountcode);
|
$param .= "&accountcode=".escape($accountcode);
|
||||||
$param .= "&read_codec=".escape($read_codec);
|
$param .= "&read_codec=".escape($read_codec);
|
||||||
|
|
@ -324,7 +324,7 @@
|
||||||
//count the records in the database
|
//count the records in the database
|
||||||
/*
|
/*
|
||||||
if ($_SESSION['cdr']['limit']['numeric'] == 0) {
|
if ($_SESSION['cdr']['limit']['numeric'] == 0) {
|
||||||
$sql = "select count(uuid) as num_rows from v_xml_cdr ";
|
$sql = "select count(xml_cdr_uuid) as num_rows from v_xml_cdr ";
|
||||||
$sql .= "where domain_uuid = '".$domain_uuid."' ".$sql_where;
|
$sql .= "where domain_uuid = '".$domain_uuid."' ".$sql_where;
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
|
|
@ -365,7 +365,7 @@
|
||||||
$sql .= "billmsec, ";
|
$sql .= "billmsec, ";
|
||||||
$sql .= "record_path, ";
|
$sql .= "record_path, ";
|
||||||
$sql .= "record_name, ";
|
$sql .= "record_name, ";
|
||||||
$sql .= "uuid, ";
|
$sql .= "xml_cdr_uuid, ";
|
||||||
$sql .= "bridge_uuid, ";
|
$sql .= "bridge_uuid, ";
|
||||||
$sql .= "direction, ";
|
$sql .= "direction, ";
|
||||||
$sql .= "billsec, ";
|
$sql .= "billsec, ";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue