projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c93e10d
)
28898 Change to cisco format
author
Jeremy Davis
<jeremyd@freeside.biz>
Fri, 20 Jun 2014 17:36:34 +0000
(13:36 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Fri, 20 Jun 2014 17:36:34 +0000
(13:36 -0400)
FS/FS/cdr/cisco.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/cisco.pm
b/FS/FS/cdr/cisco.pm
index
ebb2d00
..
f9b9bef
100644
(file)
--- a/
FS/FS/cdr/cisco.pm
+++ b/
FS/FS/cdr/cisco.pm
@@
-29,7
+29,7
@@
use Date::Parse;
skip(3), #origNodeId
#origSpan
#origIpAddr
skip(3), #origNodeId
#origSpan
#origIpAddr
- 'src', #callingPartyNumber
+ 'src', #callingPartyNumber
skip(20), #callingPartyUnicodeLoginUserID
#origCause_location
#origCause_value
skip(20), #callingPartyUnicodeLoginUserID
#origCause_location
#origCause_value
@@
-50,7
+50,10
@@
use Date::Parse;
#destNodeId
#destSpan
#destIpAddr
#destNodeId
#destSpan
#destIpAddr
- 'dst', #originalCalledPartyNumber
+ sub { my ($cdr, $dst) = @_;
+ $dst =~ s/\#//;
+ $cdr->set('dst', $dst);
+ }, #originalCalledPartyNumber
skip(17), #finalCalledPartyNumber
#finalCalledPartyUnicodeLoginUserID
#destCause_location
skip(17), #finalCalledPartyNumber
#finalCalledPartyUnicodeLoginUserID
#destCause_location
@@
-77,7
+80,7
@@
use Date::Parse;
#finalCalledPartyNumberPartition
#lastRedirectDnPartition
'billsec', #duration
#finalCalledPartyNumberPartition
#lastRedirectDnPartition
'billsec', #duration
- skip(
48
), #origDeviceName
+ skip(
22
), #origDeviceName
#destDeviceName
#origCallTerminationOnBehalfOf
#destCallTerminationOnBehalfOf
#destDeviceName
#origCallTerminationOnBehalfOf
#destCallTerminationOnBehalfOf
@@
-99,8
+102,12
@@
use Date::Parse;
#origMediaCap_Bandwidth
#destMediaCap_Bandwidth
#authorizationCodeValue
#origMediaCap_Bandwidth
#destMediaCap_Bandwidth
#authorizationCodeValue
- #outpulsedCallingPartyNumber
- #outpulsedCalledPartyNumber
+ sub { my ($cdr, $number) = @_;
+ if ($number){
+ $cdr->set('src',$number);
+ }
+ }, #outpulsedCallingPartyNumber
+ skip(23), #outpulsedCalledPartyNumber
#origIpv4v6Addr
#destIpv4v6Addr
#origVideoCap_Codec_Channel2
#origIpv4v6Addr
#destIpv4v6Addr
#origVideoCap_Codec_Channel2