summaryrefslogtreecommitdiff
path: root/FS/FS/cdr
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-09-10 12:23:35 -0700
committerIvan Kohler <ivan@freeside.biz>2015-09-10 12:23:35 -0700
commitba74d54e5955b22ab4b20f73c408eede3bfbe23f (patch)
tree19208d35c14e8e837df0dc20ae60408f569dde6b /FS/FS/cdr
parent8e6f89bf64394706aafcb949cc33dae88bbb6bcc (diff)
correct regex for importing with id 50, RT#37472
Diffstat (limited to 'FS/FS/cdr')
-rw-r--r--FS/FS/cdr/aapt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cdr/aapt.pm b/FS/FS/cdr/aapt.pm
index 3c49643..934608c 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;
}