% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
freeside-cdrrewrited - Real-time daemon for CDR rewriting
freeside-cdrrewrited
Runs continuously, searches for CDRs and does forwarded-call rewriting if any of the following config options are enabled:
Marks as 'skipped' (prevents billing for) any CDRs with a src, dst and calldate identical to an existing CDR
Classifies Australian numbers as domestic, mobile, tollfree, international, or "other", and tries to assign a cdrtypenum based on that.
Identifies Asterisk forwarded calls using the 'dstchannel' field. If the dstchannel is "Local/" followed by a number, but the number doesn't match the dst field, the dst field will be rewritten to match.
Calls set_charged_party on all calls.
These actually have the same effect. Taqua uses cdrtypenum = 1 to tag accessory records. They will have "sessionnum" = that of the primary record, and "lastapp" indicating their function:
- "acctcode": "lastdata" contains the dialed account code. Insert this into the accountcode field of the primary record.
- "CallerId": "lastdata" contains "allowed" or "restricted". If "restricted" then the clid field of the primary record is set to "PRIVATE".
Finds records where the destination number has the "011" international prefix, but with seven or fewer digits in the rest of the number, and strips the "011" prefix so that they will be treated as domestic calls. This is very uncommon.
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'