X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fcdr-ivr.import;h=212482de90927731f5a38cc24aacd5ba1e441661;hp=9a4eb0d5eeedc064e35da3ade3ebc60b588e2bab;hb=368ed08e24400e9d1faf401a1e4e23ea54d2c969;hpb=189f40043dc1e82373243acc73abd03f8151c87c diff --git a/bin/cdr-ivr.import b/bin/cdr-ivr.import index 9a4eb0d5e..212482de9 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]->{'COUNTRY_CODE'} !~ /^1/ + ? "011". $_[0]->{'DETAIL'} + : $_[0]->{'DETAIL'}; + }, #'' => 'SALES_GROUP', # #'' => 'TAX_GROUP', # 'userfield' => 'USER_1', # @@ -66,6 +68,7 @@ FS::cdr::Import->dbi_import( #'' => 'GRACE_PERIOD', # SMALLINT Grace period associated with the call #'' => 'ACCOUNT_TYPE', # Account type from ACCOUNT_TYPES table }, + 'batch_name' => 'IVR', ); 1;