fix noskip_dst_length_accountcode_tollfree, RT#9683
authorivan <ivan>
Wed, 29 Sep 2010 19:38:00 +0000 (19:38 +0000)
committerivan <ivan>
Wed, 29 Sep 2010 19:38:00 +0000 (19:38 +0000)
FS/FS/part_pkg/voip_cdr.pm

index 8294bed..005009a 100644 (file)
@@ -851,7 +851,7 @@ sub check_chargable {
   return "destination less than $dst_length digits"
     if $dst_length && length($cdr->dst) < $dst_length
     && ! ( $opt{'noskip_dst_length_accountcode_tollfree'}
-            && $cdr->is_tollfree
+            && $cdr->is_tollfree('accountcode')
          );
 
   return "lastapp is $opt{'skip_lastapp'}"