From: Jeremy Davis Date: Tue, 20 Jan 2015 16:19:40 +0000 (-0500) Subject: Ticket #29048 Strip leading # from destinations X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ba703eae98d1c77cfabc275c22a992b62c60548d;hp=b2c9921fb758422557bc2728832646d9de2c654d 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 ], );