X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fcdr-ivr.import;h=212482de90927731f5a38cc24aacd5ba1e441661;hb=9c00bcb663c6b868c3da83af917163db58c73b93;hp=4af5da04aafd2b8f8850dd595f8f1847cb889a2d;hpb=36d3a1f27ef9c801f4fb9a0189bde93f417e1a88;p=freeside.git 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;