[freeside-commits] branch master updated. 2feeba5b4b1abee57667bbe6be5e9daf24d5a447

Ivan ivan at 420.am
Thu Aug 7 13:22:10 PDT 2014


The branch, master has been updated
       via  2feeba5b4b1abee57667bbe6be5e9daf24d5a447 (commit)
      from  926b02216b16ef746a10c5e150596977a198a0fd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2feeba5b4b1abee57667bbe6be5e9daf24d5a447
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 7 13:22:09 2014 -0700

    for domestic calls, use DETAIL for dst instead of DNIS, RT#29055

diff --git a/bin/cdr-ivr.import b/bin/cdr-ivr.import
index 9a4eb0d..4af5da0 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', #

-----------------------------------------------------------------------

Summary of changes:
 bin/cdr-ivr.import |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list