diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 13:22:09 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 13:22:09 -0700 |
commit | 2feeba5b4b1abee57667bbe6be5e9daf24d5a447 (patch) | |
tree | 53a012a3eb7542cd456326cc9d2555ca6d64a19c /bin | |
parent | 926b02216b16ef746a10c5e150596977a198a0fd (diff) |
for domestic calls, use DETAIL for dst instead of DNIS, RT#29055
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cdr-ivr.import | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/cdr-ivr.import b/bin/cdr-ivr.import index 9a4eb0d5e..4af5da04a 100755 --- a/bin/cdr-ivr.import +++ b/bin/cdr-ivr.import @@ -33,7 +33,6 @@ FS::cdr::Import->dbi_import( # $_[0]->{NXX}. $_[0]->{LOCAL_NUMBER}; # }, 'description' => 'DESCRIPTION', # or upstream_dst_regionname ? - #'' => 'DETAIL', # #'' => 'PER_CALL_CHARGE', # #'' => 'PER_MINUTE_CHARGE', # #'' => 'PER_CALL_SURCHARGE', # @@ -46,7 +45,10 @@ FS::cdr::Import->dbi_import( #'' => 'CONVERSION_RATE', # 'lastapp' => 'MODULE_NAME', # 'src' => 'ANI', # 'clid' => 'ANI', # - 'dst' => 'DNIS', + 'dst' => sub { $_[0]->{'DNIS'} =~ /^011/ + ? $_[0]->{'DNIS'} + : $_[0]->{'DETAIL'}; + }, #'' => 'SALES_GROUP', # #'' => 'TAX_GROUP', # 'userfield' => 'USER_1', # |