[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm, 1.124, 1.125
Mark Wells
mark at wavetail.420.am
Tue Aug 2 13:57:53 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv31953/FS/FS/part_pkg
Modified Files:
voip_cdr.pm
Log Message:
skip_dst_prefix, #13895
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -w -d -r1.124 -r1.125
--- voip_cdr.pm 26 Jul 2011 23:46:07 -0000 1.124
+++ voip_cdr.pm 2 Aug 2011 20:57:51 -0000 1.125
@@ -899,6 +899,11 @@
if $opt{'ignore_disposition'} =~ /\S/
&& grep { $cdr->disposition eq $_ } split(/\s*,\s*/, $opt{'ignore_disposition'});
+ foreach(split(/\s*,\s*/, $opt{'skip_dst_prefix'})) {
+ return "dst starts with '$_'"
+ if length($_) && substr($cdr->dst,0,length($_)) eq $_;
+ }
+
return "carrierid != $opt{'use_carrierid'}"
if length($opt{'use_carrierid'})
&& $cdr->carrierid ne $opt{'use_carrierid'} #ne otherwise 0 matches ''
@@ -912,11 +917,6 @@
if length($opt{'ignore_cdrtypenum'})
&& $cdr->cdrtypenum eq $opt{'ignore_cdrtypenum'}; #eq otherwise 0 matches ''
- foreach(split(',',$opt{'skip_dst_prefix'})) {
- return "dst starts with '$_'"
- if length($_) && substr($cdr->dst,0,length($_)) eq $_;
- }
-
return "dcontext IN ( $opt{'skip_dcontext'} )"
if $opt{'skip_dcontext'} =~ /\S/
&& grep { $cdr->dcontext eq $_ } split(/\s*,\s*/, $opt{'skip_dcontext'});
More information about the freeside-commits
mailing list