summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 04:59:31 +0000
committerivan <ivan>2011-04-11 04:59:31 +0000
commit6ac8854b766c9216584867ad15e1e31fb9da759e (patch)
treee93b955d7c150e4b65ecd60489a2ee93b50532a3
parentb09d6c6464fa59fb4a0797df00ce1f2aec051b6c (diff)
taqua accountcodes, RT#12181
-rw-r--r--FS/FS/Conf.pm9
-rw-r--r--FS/FS/Schema.pm11
2 files changed, 16 insertions, 4 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index f3e53b537..7844ff0fd 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -3964,12 +3964,19 @@ and customer address. Include units.',
{
'key' => 'cdr-taqua-da_rewrite',
- 'section' => '',
+ 'section' => 'telephony',
'description' => 'For the Taqua CDR format, a comma-separated list of directory assistance 800 numbers. Any CDRs with these numbers as "BilledNumber" will be rewritten to the "CallingPartyNumber" (and CallType "12") on import.',
'type' => 'text',
},
{
+ 'key' => 'cdr-taqua-accountcode_rewrite',
+ 'section' => 'telephony',
+ 'description' => 'For the Taqua CDR format, pull accountcodes from secondary CDRs with matching sessionNumber.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'cust_pkg-show_autosuspend',
'section' => 'UI',
'description' => 'Show package auto-suspend dates. Use with caution for now; can slow down customer view for large insallations.',
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 0bee832e2..c0687cd91 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -2789,7 +2789,7 @@ sub tables_hashref {
# fields for unitel/RSLCOM/convergent that don't map well to asterisk
# defaults
# though these are now used elsewhere:
- # charged_party, upstream_price, rated_price, carrierid
+ # charged_party, upstream_price, rated_price, carrierid, cdrtypenum
###
#cdr_type: Usage = 1, S&E = 7, OC&C = 8
@@ -2835,10 +2835,14 @@ sub tables_hashref {
#an indexed place to put big numbers
'cdrid', 'bigint', 'NULL', '', '', '',
+ #for taqua accountcode rewriting, for starters
+ 'sessionnum', 'int', 'NULL', '', '', '',
+ 'subscriber', 'varchar', 'NULL', $char_d, '', '',
+
#old
- 'cdrbatch', 'varchar', 'NULL', 255, '', '',
+ 'cdrbatch', 'varchar', 'NULL', 255, '', '',
#new
- 'cdrbatchnum', 'int', 'NULL', '', '', '',
+ 'cdrbatchnum', 'int', 'NULL', '', '', '',
],
'primary_key' => 'acctid',
@@ -2846,6 +2850,7 @@ sub tables_hashref {
'index' => [ [ 'calldate' ],
[ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ],
[ 'accountcode' ], [ 'carrierid' ], [ 'cdrid' ],
+ [ 'sessionnum' ],
[ 'freesidestatus' ], [ 'freesiderewritestatus' ],
[ 'cdrbatch' ], [ 'cdrbatchnum' ],
],