[freeside-commits] freeside/FS/FS/part_pkg voip_inbound.pm, 1.16, 1.17

Ivan,,, ivan at wavetail.420.am
Mon Oct 24 14:20:54 PDT 2011


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

Modified Files:
	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.16
retrieving revision 1.17
diff -u -w -d -r1.16 -r1.17
--- voip_inbound.pm	8 Oct 2011 23:12:58 -0000	1.16
+++ voip_inbound.pm	24 Oct 2011 21:20:51 -0000	1.17
@@ -272,9 +272,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