Admin Commit 7c2f649ffa This commit was manufactured by cvs2svn to create branch 'v1-0'. vor 20 Jahren
..
CODING-GUIDELINES 5f20824304 Update coding guidelines vor 21 Jahren
README.cdr 6003fda8da update doc (bug #3526) vor 20 Jahren
README.cliprompt 918d7a5488 Merge Tilghman's color patches for the asterisk prompt (bug #1535) vor 21 Jahren
README.h323 ade9fb7ad0 add new file README.h323 to help lower the signal-to-noise ratio vor 21 Jahren
README.iax f1ec242d81 update doc (bug #3310) vor 20 Jahren
README.ices 18838d5def Add Icecast streaming support vor 21 Jahren
README.mp3 226301435a Add README.mp3 to docs to clear up confusion about working and vor 20 Jahren
README.mysql 5701414e7a Remove MySQL support from default Asterisk in accordance with new MySQL library licensing vor 21 Jahren
README.sms b56b7d7ad2 Add revk's SMS application (bug #1437). Thanks! vor 21 Jahren
README.tds 7c2f649ffa This commit was manufactured by cvs2svn to create branch 'v1-0'. vor 20 Jahren
README.variables 573238fb23 reflect the correct format of ${DATETIME} in the doc (bug #3857) vor 20 Jahren
apps.txt f63ecebd3a Version 0.1.0 from FTP vor 25 Jahren
cdr.txt 4bee179ad5 nevermind ... (bug #3255) vor 20 Jahren
channel.txt 44a3ee3bdc Version 0.1.1 from FTP vor 25 Jahren
extensions.txt a3ac15cc5b Various spelling errors fixed in docs vor 21 Jahren
iax.txt 9d88e0ccd6 Version 0.1.2 from FTP vor 25 Jahren
linkedlists.README 70eb4b4b66 Version 0.2.0 from FTP vor 22 Jahren
localchannel.txt a3ac15cc5b Various spelling errors fixed in docs vor 21 Jahren
manager.txt 010c8d82d9 Allow "fast" asynchronous manager initiation of events (bug #772) vor 21 Jahren
model.txt a3ac15cc5b Various spelling errors fixed in docs vor 21 Jahren
modules.txt a3ac15cc5b Various spelling errors fixed in docs vor 21 Jahren
queuelog.txt 2bc857a3f9 Merge agent callback login/logoff events and logging (bug #1775) vor 21 Jahren

README.cdr

Asterisk billing support - Call Detail Records
----------------------------------------------
Asterisk generates Call Detail Records in a database or in a comma
separated text file.

* cdr_csv supports comma separated text file storage, this is the
default driver
* cdr_manager supports CDR information via the AMI, The Asterisk Manager
interface
* cdr_odbc supports UnixODBC databases, see http://www.unixodbc.org
for an updated list of supported databases, from MySQL to MsSQL
and text files.
* cdr_tds supports FreeTDS databases (Among them MS SQL)
* cdr_sqlite supports SQlite
* cdr_pgsql supports PostgreSQL

In the asterisk-addons cvs archive, there's a cdr_mysql driver for
MySQL.



Applications
------------

* setaccount Set account code for billing
* setAMAflags Sets AMA flags
* NoCDR Make sure no CDR is saved for a specific call
* resetCDR Reset CDR
* forkCDR Save current CDR and start a new CDR for this call
* authenticate Authenticates and sets the account code
* SetCDRUserField Set CDR user field
* AppendCDRUserField Append data to CDR User field

For more information, use the "show application" command.
You can set default account codes and AMA flags for devices in
channel configuration files, like sip.conf, iax.conf etc.


Fields of the CDR in Asterisk
-----------------------------

1. accountcode: What account number to use, (string, 20 characters)
2. src: Caller*ID number (string, 80 characters)
3. dst: Destination extension (string, 80 characters)
4. dcontext: Destination context (string, 80 characters)
5. clid: Caller*ID with text (80 characters)
6. channel: Channel used (80 characters)
7. dstchannel: Destination channel if appropriate (80 characters)
8. lastapp: Last application if appropriate (80 characters)
9. lastdata: Last application data (arguments) (80 characters)
10. start: Start of call (date/time)
11. answer: Answer of call (date/time)
12. end: End of call (date/time)
13. duration: Total time in system, in seconds (integer), from dial to hangup
14. billsec: Total time call is up, in seconds (integer), from answer to hangup
15. disposition: What happened to the call: ANSWERED, NO ANSWER, BUSY
16. amaflags: What flags to use: DOCUMENTATION, BILL, IGNORE etc,
specified on a per channel basis like accountcode.
17. user field: A user-defined field, maximum 255 characters

In some cases, uniqueid is appended:

* uniqueid: Unique Channel Identifier (32 characters)
This needs to be enabled in the source code at compile time


ONE IMPORTANT NOTE: If you are trying to collect records on IAX to IAX calls
you need to be aware that by default, IAX will attempt to transfer calls
in this situation (if DTMF is not required). When the transfer is completed
the call is dumped from the middle machine and thus the call detail records
will report a short call time. If you want detailed records you must
turn off IAX transfer, but unless your servers are very close together, you
will definitely get a latency hit from doing so.