[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.53,1.54
Ivan,,,
ivan at wavetail.420.am
Mon Jan 19 14:32:34 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv18890
Modified Files:
voip_cdr.pm
Log Message:
don't ignore the cdrtypenum rule for 0, hopefully finally fix DA for QIS, RT#4502
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- voip_cdr.pm 13 Jan 2009 03:25:22 -0000 1.53
+++ voip_cdr.pm 19 Jan 2009 22:32:31 -0000 1.54
@@ -562,13 +562,13 @@
if $opt{'use_disposition_taqua'} && $cdr->disposition != 100;
return "carrierid != $opt{'use_carrierid'}"
- if $opt{'use_carrierid'}
- && $cdr->carrierid != $opt{'use_carrierid'}
+ if length($opt{'use_carrierid'})
+ && $cdr->carrierid ne $opt{'use_carrierid'} #ne otherwise 0 matches ''
&& ! $flags{'da_rewrote'};
return "cdrtypenum != $opt{'use_cdrtypenum'}"
- if $opt{'use_cdrtypenum'}
- && $cdr->cdrtypenum != $opt{'use_cdrtypenum'};
+ if length($opt{'use_cdrtypenum'})
+ && $cdr->cdrtypenum ne $opt{'use_cdrtypenum'}; #ne otherwise 0 matches ''
#all right then, rate it
'';
More information about the freeside-commits
mailing list