used BillingNumber and not CallingPartyNumber for non-toll-free calls
authorjeff <jeff>
Thu, 9 Apr 2009 22:51:35 +0000 (22:51 +0000)
committerjeff <jeff>
Thu, 9 Apr 2009 22:51:35 +0000 (22:51 +0000)
FS/FS/cdr/taqua.pm

index 3e98400..26c0bda 100644 (file)
@@ -94,7 +94,11 @@ use FS::cdr qw(_cdr_date_parser_maker);
           return;
         }
       }
-      '';
+      if ( $cdr->is_tollfree ) {        # thankfully this is already available
+        $cdr->charged_party($cdr->dst); # and this
+      } else {
+        $cdr->charged_party($field);
+      }
     },
 
     sub { my($cdr, $field) = @_; },       #SubscriberNumber