From 0da7ecb92ccd671c47cb7fd4d04560cc80d4b520 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 3 Jan 2009 01:52:59 +0000 Subject: indosoft CDR format, RT#4425 --- bin/cdr.sftp_and_import | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/cdr.sftp_and_import') diff --git a/bin/cdr.sftp_and_import b/bin/cdr.sftp_and_import index 57d4e871e..79e743f39 100755 --- a/bin/cdr.sftp_and_import +++ b/bin/cdr.sftp_and_import @@ -16,8 +16,8 @@ use FS::cdr; # parse command line ### -use vars qw( $opt_e $opt_d $opt_u $opt_v ); -getopts('e:d:u:v'); +use vars qw( $opt_e $opt_d $opt_v ); +getopts('e:d:v'); $opt_e ||= 'csv'; #$opt_e = ".$opt_e" unless $opt_e =~ /^\./; @@ -64,7 +64,7 @@ foreach my $file ( @$ls ) { my $error = FS::cdr::batch_import( { 'file' => "$cachedir/$filename" 'format' => $format, - 'cdrbatch' => $filename, + 'params' => { 'cdrbatch' => $filename, }, 'empty_ok' => 1, } ); die $error if $error; -- cgit v1.2.1