WORKING avoid looking up options inside the rating loop, RT#4502
authorivan <ivan>
Tue, 13 Jan 2009 02:13:32 +0000 (02:13 +0000)
committerivan <ivan>
Tue, 13 Jan 2009 02:13:32 +0000 (02:13 +0000)
FS/FS/part_pkg/voip_cdr.pm

index 150c064..84a8a39 100644 (file)
@@ -262,7 +262,7 @@ sub calc_recur {
 
         my $reason = $self->check_chargable( $cdr,
                                              '411_rewrite'  => $da_rewrite,
-                                             'option_cache' => %opt_cache,
+                                             'option_cache' => \%opt_cache,
                                            );
 
         if ( $reason ) {