From: Ivan Kohler Date: Thu, 10 Sep 2015 19:23:31 +0000 (-0700) Subject: correct regex for importing with id 50, RT#37472 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8d76610b4329151076c7e2b81891406df36d18bb correct regex for importing with id 50, RT#37472 --- 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; }