Asterisk logs


#1

hello.

i am really very new to asterisk and i have a little question.

I would like to use asterisk for voice answering machine and i need to know in real time how many call i had and the duration of all call.

is there a way to do that with asterisk ?

Thank you.


#2

I’m not exactly sure what you are looking for but it sounds like you are looking for call detail records. Asterisk writes CDR records by default to /var/log/asterisk/cdr-csv/Master.csv. This will tell you number of calls, call lengths, and other general things used for billing.

Also of note, you can configure asterisk to write CDR’s to database. Which will probably be more convenient for ‘real-time’ access.

Good Luck,
Dan


#3

[quote=“dmikusa”]
Also of note, you can configure asterisk to write CDR’s to database. Which will probably be more convenient for ‘real-time’ access.

Good Luck,
Dan[/quote]

Thank you very much.

Can you tell me where i can find information about that ?

Thank you.


#4

I know that you can use just about any database that you want either through ODBC or a direct module. Most notable are MySQL and Postgre SQL. There may also be an Oracle one but I don’t know. MySQL is compiled in through the asterisk-addons packages, while Postgre SQL and ODBC are compiled in through the default build of Asterisk ( assuming you have the required development files on your computers ).

MySQL
voip-info.org/tiki-index.php … +cdr+mysql

ODBC
voip-info.org/tiki-index.php … k+cdr+odbc

Try searching around more on this site. There’s a lot of stuff up about processing cdr records and such.

voip-info.org/tiki-index.php?page=Asterisk

Dan