diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /FS/FS/cdr/asterisk.pm | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'FS/FS/cdr/asterisk.pm')
-rw-r--r-- | FS/FS/cdr/asterisk.pm | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/FS/FS/cdr/asterisk.pm b/FS/FS/cdr/asterisk.pm deleted file mode 100644 index 8b29642..0000000 --- a/FS/FS/cdr/asterisk.pm +++ /dev/null @@ -1,45 +0,0 @@ -package FS::cdr::asterisk; - -use strict; -use vars qw(@ISA %info); -use FS::cdr qw(_cdr_date_parser_maker); - -@ISA = qw(FS::cdr); - -#http://www.the-asterisk-book.com/unstable/funktionen-cdr.html -my %amaflags = ( - DEFAULT => 0, - OMIT => 1, #asterisk 1.4+ - IGNORE => 1, #asterisk 1.2 - BILLING => 2, #asterisk 1.4+ - BILL => 2, #asterisk 1.2 - DOCUMENTATION => 3, - #? '' => 0, -); - -%info = ( - 'name' => 'Asterisk', - 'weight' => 10, - 'import_fields' => [ - 'accountcode', - 'src', - 'dst', - 'dcontext', - 'clid', - 'channel', - 'dstchannel', - 'lastapp', - 'lastdata', - _cdr_date_parser_maker('startdate'), - _cdr_date_parser_maker('answerdate'), - _cdr_date_parser_maker('enddate'), - 'duration', - 'billsec', - 'disposition', - sub { my($cdr, $amaflags) = @_; $cdr->amaflags($amaflags{$amaflags}); }, - 'uniqueid', - 'userfield', - ], -); - -1; |