[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.36,1.37
Ivan,,,
ivan at wavetail.420.am
Sat Oct 4 13:43:53 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv15800
Modified Files:
voip_cdr.pm
Log Message:
add disable_tollfree option
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- voip_cdr.pm 3 Oct 2008 19:41:59 -0000 1.36
+++ voip_cdr.pm 4 Oct 2008 20:43:51 -0000 1.37
@@ -84,6 +84,10 @@
'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',
},
@@ -147,6 +151,7 @@
default_prefix
disable_src
domestic_prefix international_prefix
+ disable_tollfree
use_amaflags use_disposition
use_disposition_taqua use_carrierid use_cdrtypenum
411_rewrite
@@ -261,7 +266,10 @@
}
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
More information about the freeside-commits
mailing list