projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71dd08
)
in CallPlus CDR import, mark international calls as international, #72264
author
Mark Wells
<mark@freeside.biz>
Wed, 19 Oct 2016 22:49:41 +0000
(15:49 -0700)
committer
Mark Wells
<mark@freeside.biz>
Wed, 19 Oct 2016 22:49:41 +0000
(15:49 -0700)
FS/FS/cdr/callplus.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/callplus.pm
b/FS/FS/cdr/callplus.pm
index
fa6c799
..
1fcfa63
100644
(file)
--- a/
FS/FS/cdr/callplus.pm
+++ b/
FS/FS/cdr/callplus.pm
@@
-51,7
+51,14
@@
use Time::Local 'timelocal';
$value =~ s/^\$//;
$cdr->upstream_price($value);
},
- skip(4), # Smartcode, Smartcode Description, Type, SubType
+ skip(2), # Smartcode, Smartcode Description
+ sub { # Type. "I" = international, which matters.
+ my ($cdr, $value) = @_;
+ if ($value eq 'I') {
+ $cdr->set('dst', '+' . $cdr->dst);
+ } # else leave it alone
+ },
+ '', # SubType
],
);