CDR change direction to call_direction
This commit is contained in:
parent
1d5d6e9e7a
commit
9808049c47
|
|
@ -449,7 +449,7 @@ else {
|
||||||
unset($database->result);
|
unset($database->result);
|
||||||
|
|
||||||
$sell_price = $row['call_sell'];
|
$sell_price = $row['call_sell'];
|
||||||
$lcr_direction = (strlen($row['direction'])?$row['direction']:"outbound");
|
$lcr_direction = (strlen($row['call_direction'])?$row['call_direction']:"outbound");
|
||||||
$n = (($lcr_direction == "inbound")?$row['caller_id_number']:$row['destination_number']);
|
$n = (($lcr_direction == "inbound")?$row['caller_id_number']:$row['destination_number']);
|
||||||
|
|
||||||
$database->table = "v_lcr";
|
$database->table = "v_lcr";
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ else {
|
||||||
define('TIME_24HR', 1);
|
define('TIME_24HR', 1);
|
||||||
|
|
||||||
//get post or get variables from http
|
//get post or get variables from http
|
||||||
if (count($_REQUEST)>0) {
|
if (count($_REQUEST) > 0) {
|
||||||
$order_by = check_str($_REQUEST["order_by"]);
|
$order_by = check_str($_REQUEST["order_by"]);
|
||||||
$order = check_str($_REQUEST["order"]);
|
$order = check_str($_REQUEST["order"]);
|
||||||
$cdr_id = check_str($_REQUEST["cdr_id"]);
|
$cdr_id = check_str($_REQUEST["cdr_id"]);
|
||||||
|
|
@ -79,7 +79,7 @@ else {
|
||||||
$sql_where_ands[] = "start_epoch BETWEEN ".$start_epoch." AND ".$stop_epoch." ";
|
$sql_where_ands[] = "start_epoch BETWEEN ".$start_epoch." AND ".$stop_epoch." ";
|
||||||
}
|
}
|
||||||
if (strlen($cdr_id) > 0) { $sql_where_ands[] = "cdr_id like '%".$cdr_id."%'"; }
|
if (strlen($cdr_id) > 0) { $sql_where_ands[] = "cdr_id like '%".$cdr_id."%'"; }
|
||||||
if (strlen($direction) > 0) { $sql_where_ands[] = "direction = '".$direction."'"; }
|
if (strlen($direction) > 0) { $sql_where_ands[] = "call_direction = '".$direction."'"; }
|
||||||
if (strlen($caller_id_name) > 0) {
|
if (strlen($caller_id_name) > 0) {
|
||||||
$mod_caller_id_name = str_replace("*", "%", $caller_id_name);
|
$mod_caller_id_name = str_replace("*", "%", $caller_id_name);
|
||||||
$sql_where_ands[] = "caller_id_name like '".$mod_caller_id_name."'";
|
$sql_where_ands[] = "caller_id_name like '".$mod_caller_id_name."'";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue