X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fcdr-ivr.import;h=212482de90927731f5a38cc24aacd5ba1e441661;hp=4af5da04aafd2b8f8850dd595f8f1847cb889a2d;hb=368ed08e24400e9d1faf401a1e4e23ea54d2c969;hpb=2feeba5b4b1abee57667bbe6be5e9daf24d5a447 diff --git a/bin/cdr-ivr.import b/bin/cdr-ivr.import index 4af5da04a..212482de9 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', # @@ -68,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;