correct regex for importing with id 50, RT#37472
authorIvan Kohler <ivan@freeside.biz>
Thu, 10 Sep 2015 19:23:31 +0000 (12:23 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 10 Sep 2015 19:23:31 +0000 (12:23 -0700)
FS/FS/cdr/aapt.pm

index 3c49643..934608c 100644 (file)
@@ -77,7 +77,7 @@ my %UNIT_SCALE = ( #Table 2.1.4
     'calltypenum',          # usage ID (CUSG)
     sub {                   # ID type
       my ($cdr, $data, $conf, $param) = @_;
-      if ($data !~ /(1|50)/) {
+      if ($data !~ /^(1|50)$/) {
         warn "AAPT: service ID type is not telephone number.\n";
         $param->{skiprow} = 1;
       }