[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.52,1.53
Ivan,,,
ivan at wavetail.420.am
Mon Jan 12 19:25:24 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv11162
Modified Files:
voip_cdr.pm
Log Message:
whew, works fine, rewrite to 411 was sticky that's why calls were being skipped for wrong carrierid, RT#4502
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- voip_cdr.pm 13 Jan 2009 02:39:37 -0000 1.52
+++ voip_cdr.pm 13 Jan 2009 03:25:22 -0000 1.53
@@ -255,7 +255,7 @@
if ( $rating_method eq 'prefix' ) {
my $da_rewrote = 0;
- if ( scalar(@dirass) && $cdr->dst && grep { $cdr->dst eq $_ } @dirass ){
+ if ( length($cdr->dst) && grep { $cdr->dst eq $_ } @dirass ){
$cdr->dst('411');
$da_rewrote = 1;
}
@@ -335,11 +335,11 @@
if ( $rate_detail ) {
+ $rate_region = $rate_detail->dest_region;
+ $regionnum = $rate_region->regionnum;
warn " found rate for regionnum $regionnum ".
"and rate detail $rate_detail\n"
if $DEBUG;
- $rate_region = $rate_detail->dest_region;
- $regionnum = $rate_region->regionnum;
} elsif ( $ignore_unrateable ) {
More information about the freeside-commits
mailing list