projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d49fd2
)
add disable_tollfree option
author
ivan
<ivan>
Sat, 4 Oct 2008 20:43:51 +0000
(20:43 +0000)
committer
ivan
<ivan>
Sat, 4 Oct 2008 20:43:51 +0000
(20:43 +0000)
FS/FS/part_pkg/voip_cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_cdr.pm
b/FS/FS/part_pkg/voip_cdr.pm
index
64ea20a
..
6b27465
100644
(file)
--- a/
FS/FS/part_pkg/voip_cdr.pm
+++ b/
FS/FS/part_pkg/voip_cdr.pm
@@
-84,6
+84,10
@@
tie my %temporalities, 'Tie::IxHash',
'default' => '011',
},
'default' => '011',
},
+ 'disable_tollfree' => { 'name' => 'Disable automatic toll-free processing',
+ 'type' => 'checkbox',
+ },
+
'use_amaflags' => { 'name' => 'Do not charge for CDRs where the amaflags field is not set to "2" ("BILL"/"BILLING").',
'type' => 'checkbox',
},
'use_amaflags' => { 'name' => 'Do not charge for CDRs where the amaflags field is not set to "2" ("BILL"/"BILLING").',
'type' => 'checkbox',
},
@@
-147,6
+151,7
@@
tie my %temporalities, 'Tie::IxHash',
default_prefix
disable_src
domestic_prefix international_prefix
default_prefix
disable_src
domestic_prefix international_prefix
+ disable_tollfree
use_amaflags use_disposition
use_disposition_taqua use_carrierid use_cdrtypenum
411_rewrite
use_amaflags use_disposition
use_disposition_taqua use_carrierid use_cdrtypenum
411_rewrite
@@
-261,7
+266,10
@@
sub calc_recur {
}
my( $to_or_from, $number );
}
my( $to_or_from, $number );
- if ( $cdr->dst =~ /^(\+?1)?8([02-8])\1/ ) { #tollfree call
+ if ( $cdr->dst =~ /^(\+?1)?8([02-8])\1/
+ && ! $self->option('disable_tollfree')
+ )
+ { #tollfree call
$to_or_from = 'from';
$number = $cdr->src;
} else { #regular call
$to_or_from = 'from';
$number = $cdr->src;
} else { #regular call