From d15883a3eca7aa91c9ecd98e85f7631cd236b3a1 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Tue, 24 Jun 2014 11:29:48 +0000 Subject: [PATCH] if not rate specified, outcalls rate 0.01, local/inbound 0 --- app/xml_cdr/v_xml_cdr_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index f104f44e6c..d7c2539938 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -250,7 +250,7 @@ function call_cost($rate, $i1, $i2, $t){ $db2->sql = $sql_user_rate; $db2->result = $db2->execute(); - $lcr_user_rate = (strlen($xml->variables->lcr_user_rate)?$xml->variables->lcr_user_rate: (check_str(urldecode($xml->variables->call_direction)) == "local"?0.0:0.01)); + $lcr_user_rate = (strlen($xml->variables->lcr_user_rate)?$xml->variables->lcr_user_rate:(check_str(urldecode($xml->variables->call_direction)) == "outbound"?0.01:0.0)); $lcr_user_first_increment = (strlen($db2->result[0]['connect_increment'])?check_str($db2->result[0]['connect_increment']):60); $lcr_user_second_increment = (strlen($db2->result[0]['talk_increment'])?check_str($db2->result[0]['talk_increment']):60);