[freeside-commits] branch master updated. 3121656a25c75654a3fdfdf8e6036b54720ac73a

Ivan ivan at 420.am
Thu Feb 13 13:37:01 PST 2014


The branch, master has been updated
       via  3121656a25c75654a3fdfdf8e6036b54720ac73a (commit)
      from  2cefad7f1ba75c13574f9bce5e5d8211c301c995 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3121656a25c75654a3fdfdf8e6036b54720ac73a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Feb 13 13:36:58 2014 -0800

    fix voipswitch import, RT#26228

diff --git a/bin/cdr-voipswitch.import b/bin/cdr-voipswitch.import
index 0392f6b..ce5b453 100644
--- a/bin/cdr-voipswitch.import
+++ b/bin/cdr-voipswitch.import
@@ -50,11 +50,11 @@ else {
 }
 
 my @cols = (qw( 
-  id_call id_client ip_number caller_id called_number call-start call_end
+  id_call id_client ip_number caller_id called_number call_start call_end
   route_type id_tariff cost duration tariff_prefix client_type id_route pdd
   costR1 costR2 costR3 costD id_reseller tariffdesc id_cc ratio client_pdd
   orig_call_id term_call_id id_callback_call id_cn dialing_plan_prefix
-  call_rate effective_duration dtmf call-data tariff_data id_dial_plan
+  call_rate effective_duration dtmf call_data tariff_data id_dial_plan
 ));
 
 #effective_duration/billsec appears from the documentation to be post-minimum time and granularity, calculated on the switch (see p4-5).  would probably have weired effects if we then tried to do the same in freeside.
@@ -121,7 +121,7 @@ my $imported = 0;
 my $row;
 while ( $row = $sth->fetchrow_hashref ) {
 
-  my $cdr = FS::cdr->new({
+  my $cdr = FS::cdr->new(
       cdrid                   => $row->{id_call},
       charged_party           => sprintf('%.2d', $row->{client_type}).
                                  $row->{id_client},

-----------------------------------------------------------------------

Summary of changes:
 bin/cdr-voipswitch.import |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list