[freeside-commits] freeside/FS/FS/part_pkg voip_inbound.pm, 1.4.2.4, 1.4.2.5

Ivan,,, ivan at wavetail.420.am
Mon Oct 24 14:21:12 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv22810

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	voip_inbound.pm 
Log Message:
fix display of duration on inbound packages with use_duraiton, RT#14370

Index: voip_inbound.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_inbound.pm,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -u -w -d -r1.4.2.4 -r1.4.2.5
--- voip_inbound.pm	16 Jun 2011 22:57:05 -0000	1.4.2.4
+++ voip_inbound.pm	24 Oct 2011 21:21:10 -0000	1.4.2.5
@@ -285,9 +285,13 @@
 
       if ( $charge > 0 ) {
           $charges += $charge;
-          my @call_details = ($cdr->downstream_csv( 'format' => $output_format,
+        my @call_details = (
+          $cdr->downstream_csv( 'format'      => $output_format,
                                                  'charge'  => $charge,
-                                                 'minutes' => $minutes,
+                                'seconds'     => ($use_duration
+                                                   ? $cdr->duration
+                                                   : $cdr->billsec
+                                                 ),
                                                  'granularity' => $granularity,
                                                )
                             );



More information about the freeside-commits mailing list