Ticket #32088 Thinktel integration
authorJeremy Davis <jeremyd@freeside.biz>
Thu, 4 Dec 2014 14:54:10 +0000 (09:54 -0500)
committerJeremy Davis <jeremyd@freeside.biz>
Thu, 4 Dec 2014 14:54:10 +0000 (09:54 -0500)
bin/cdr-thinktel.import

index ccbd78c..9afd34c 100755 (executable)
@@ -52,7 +52,8 @@ $ftp->login($login, $password)
 warn "Retrieving directory listing\n" if $opt_v;
 
 $ftp->cwd('/');
-my @files = $ftp->ls();
+my @files = grep { $_ =~ /MetaSwitch/ } $ftp->ls();
+
 warn scalar(@files)." CDR files found.\n" if $opt_v;
 # apply date range
 if ( $opt_a ) {