X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fpbxware.pm;h=36b1a2a828d139ae923f40e904b072798ed7aa76;hp=3da4c2ad1b4906369da8987ff745aed866308dac;hb=672c4452d590bc853f21f016b291496651156c8b;hpb=1feb4dcca56c44429f7b1ea74a0431ca51185082 diff --git a/FS/FS/part_export/pbxware.pm b/FS/FS/part_export/pbxware.pm index 3da4c2ad1..36b1a2a82 100644 --- a/FS/FS/part_export/pbxware.pm +++ b/FS/FS/part_export/pbxware.pm @@ -140,6 +140,11 @@ sub import_cdrs { uniqueid => $uniqueid, ); @hash{@names} = @$row; + # strip non-numeric junk that sometimes gets appended to these (it + # causes problems creating Freeside detail records) + foreach (qw(src dst)) { + $hash{$_} =~ s/\D*$//; + } my $cdr = FS::cdr->new(\%hash); $error = $cdr->insert;