fix voipswitch import, RT#26228
authorIvan Kohler <ivan@freeside.biz>
Thu, 13 Feb 2014 21:37:36 +0000 (13:37 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 13 Feb 2014 21:37:36 +0000 (13:37 -0800)
bin/cdr-voipswitch.import

index ce5b453..817c4bc 100644 (file)
@@ -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},