[freeside-commits] branch FREESIDE_3_BRANCH updated. 36d3a1f27ef9c801f4fb9a0189bde93f417e1a88

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


The branch, FREESIDE_3_BRANCH has been updated
       via  36d3a1f27ef9c801f4fb9a0189bde93f417e1a88 (commit)
      from  cd73071edf32a80ffd40ef08bdf7ae7a71cf5b99 (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 36d3a1f27ef9c801f4fb9a0189bde93f417e1a88
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 7 13:22:11 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