From ba74d54e5955b22ab4b20f73c408eede3bfbe23f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 10 Sep 2015 12:23:35 -0700 Subject: [PATCH] correct regex for importing with id 50, RT#37472 --- FS/FS/cdr/aapt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cdr/aapt.pm b/FS/FS/cdr/aapt.pm index 3c4964317..934608c72 100644 --- a/FS/FS/cdr/aapt.pm +++ b/FS/FS/cdr/aapt.pm @@ -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; } -- 2.20.1