[freeside-commits] branch FREESIDE_3_BRANCH updated. a1e109664e34feb4e8dd10a771d26f01743140ee
Jeremy Davis
jeremyd at 420.am
Fri Jun 20 10:39:23 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via a1e109664e34feb4e8dd10a771d26f01743140ee (commit)
from c93e10d1ea0304bea31416c31706a92998fa0159 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a1e109664e34feb4e8dd10a771d26f01743140ee
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Fri Jun 20 13:36:34 2014 -0400
28898 Change to cisco format
diff --git a/FS/FS/cdr/cisco.pm b/FS/FS/cdr/cisco.pm
index ebb2d00..f9b9bef 100644
--- a/FS/FS/cdr/cisco.pm
+++ b/FS/FS/cdr/cisco.pm
@@ -29,7 +29,7 @@ use Date::Parse;
skip(3), #origNodeId
#origSpan
#origIpAddr
- 'src', #callingPartyNumber
+ 'src', #callingPartyNumber
skip(20), #callingPartyUnicodeLoginUserID
#origCause_location
#origCause_value
@@ -50,7 +50,10 @@ use Date::Parse;
#destNodeId
#destSpan
#destIpAddr
- 'dst', #originalCalledPartyNumber
+ sub { my ($cdr, $dst) = @_;
+ $dst =~ s/\#//;
+ $cdr->set('dst', $dst);
+ }, #originalCalledPartyNumber
skip(17), #finalCalledPartyNumber
#finalCalledPartyUnicodeLoginUserID
#destCause_location
@@ -77,7 +80,7 @@ use Date::Parse;
#finalCalledPartyNumberPartition
#lastRedirectDnPartition
'billsec', #duration
- skip(48), #origDeviceName
+ skip(22), #origDeviceName
#destDeviceName
#origCallTerminationOnBehalfOf
#destCallTerminationOnBehalfOf
@@ -99,8 +102,12 @@ use Date::Parse;
#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
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr/cisco.pm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list