projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
455ec0f
)
also set billsec for nextone CDR format
author
ivan
<ivan>
Tue, 7 Oct 2008 23:23:08 +0000
(23:23 +0000)
committer
ivan
<ivan>
Tue, 7 Oct 2008 23:23:08 +0000
(23:23 +0000)
FS/FS/cdr/genband.pm
patch
|
blob
|
history
FS/FS/cdr/nextone.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/genband.pm
b/FS/FS/cdr/genband.pm
index
298625b
..
599d306
100644
(file)
--- a/
FS/FS/cdr/genband.pm
+++ b/
FS/FS/cdr/genband.pm
@@
-63,7
+63,9
@@
use FS::cdr qw(_cdr_date_parser_maker);
#CallDirection:1:404:404
#ExtendedCall:1:405:405
#ExternalCall:1:406:406
#CallDirection:1:404:404
#ExtendedCall:1:405:405
#ExternalCall:1:406:406
- 'duration', #Duration:9:407:415
+ sub { my( $cdr, $duration ) = @_;
+ $cdr->duration($duration);
+ $cdr->billsec($duration); }, #'duration', #Duration:9:407:415
#SIPCallID:64:416:479
#IncomingDigits:30:480:509
#OutpulsedDigits:30:510:539
#SIPCallID:64:416:479
#IncomingDigits:30:480:509
#OutpulsedDigits:30:510:539
@@
-89,7
+91,7
@@
use FS::cdr qw(_cdr_date_parser_maker);
# answerdate - Answer time of call (UNIX-style integer timestamp)
# enddate - End time of call (UNIX-style integer timestamp)
# duration - Total time in system, in seconds
# answerdate - Answer time of call (UNIX-style integer timestamp)
# enddate - End time of call (UNIX-style integer timestamp)
# duration - Total time in system, in seconds
-# billsec - Total time call is up, in seconds
+#
billsec - Total time call is up, in seconds
# disposition - What happened to the call: ANSWERED, NO ANSWER, BUSY
# amaflags - What flags to use: BILL, IGNORE etc, specified on a per
# channel basis like accountcode.
# disposition - What happened to the call: ANSWERED, NO ANSWER, BUSY
# amaflags - What flags to use: BILL, IGNORE etc, specified on a per
# channel basis like accountcode.
diff --git
a/FS/FS/cdr/nextone.pm
b/FS/FS/cdr/nextone.pm
index
0e31456
..
22e6e86
100644
(file)
--- a/
FS/FS/cdr/nextone.pm
+++ b/
FS/FS/cdr/nextone.pm
@@
-14,7
+14,9
@@
use FS::cdr qw(_cdr_date_parser_maker);
'userfield', #CallZoneData ???userfield
'channel', #OrigGw
'dstchannel', #TermGw
'userfield', #CallZoneData ???userfield
'channel', #OrigGw
'dstchannel', #TermGw
- 'duration', #Duration
+ sub { my( $cdr, $duration ) = @_;
+ $cdr->duration($duration);
+ $cdr->billsec($duration); }, #Duration
'dst', #CallDTMF
'src', #Ani
'startdate', #DateTimeInt
'dst', #CallDTMF
'src', #Ani
'startdate', #DateTimeInt