summaryrefslogtreecommitdiff
path: root/FS/FS/cdr/cx3.pm
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2015-01-20 11:19:40 -0500
committerJeremy Davis <jeremyd@freeside.biz>2015-01-20 11:19:40 -0500
commitba703eae98d1c77cfabc275c22a992b62c60548d (patch)
treefb846a4ac41ad94ec7b5a4e63417c1985aa74154 /FS/FS/cdr/cx3.pm
parentb2c9921fb758422557bc2728832646d9de2c654d (diff)
Ticket #29048 Strip leading # from destinations
Diffstat (limited to 'FS/FS/cdr/cx3.pm')
-rw-r--r--FS/FS/cdr/cx3.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cdr/cx3.pm b/FS/FS/cdr/cx3.pm
index 7f1222e..07d8967 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
],
);