From: Jeremy Davis Date: Tue, 20 Jan 2015 16:21:46 +0000 (-0500) Subject: Ticket #29048 Strip leading # from destinations X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b26e299ec970541b5266916f6e898f856ae15eae Ticket #29048 Strip leading # from destinations --- diff --git a/FS/FS/cdr/cx3.pm b/FS/FS/cdr/cx3.pm index 7f1222e9a..07d8967c3 100644 --- a/FS/FS/cdr/cx3.pm +++ b/FS/FS/cdr/cx3.pm @@ -38,7 +38,10 @@ use Date::Parse; 'accountcode', # AccountCode skip(6), 'src', # source - 'dst', # destination + sub { my ($cdr, $dst, $param) = @_; + $dst =~ s/#//; + $cdr->set('dst', $dst); + }, # destination ], );