summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2014-07-25 06:41:30 -0400
committerJeremy Davis <jeremyd@freeside.biz>2014-07-25 06:41:30 -0400
commitdcf60589abb9f6c0b1b1c53e57a6afe8a64aee80 (patch)
treec6e2d294abd45b7ca443f4244e331e3c94fce52e /bin
parent2f55a20e4ca789d73cda7463f5edfce0049ee18d (diff)
#30518 Add 011 to international calls
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cdr-ivr.import4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cdr-ivr.import b/bin/cdr-ivr.import
index 4af5da04a..9285b3b3b 100755
--- a/bin/cdr-ivr.import
+++ b/bin/cdr-ivr.import
@@ -45,8 +45,8 @@ FS::cdr::Import->dbi_import(
#'' => 'CONVERSION_RATE', #
'lastapp' => 'MODULE_NAME', #
'src' => 'ANI', # 'clid' => 'ANI', #
- 'dst' => sub { $_[0]->{'DNIS'} =~ /^011/
- ? $_[0]->{'DNIS'}
+ 'dst' => sub { $_[0]->{'COUNTRY_CODE'} !~ /^1/
+ ? "011". $_[0]->{'DETAIL'}
: $_[0]->{'DETAIL'};
},
#'' => 'SALES_GROUP', #