Upgrade 3CX to v18 and get it hosted free!

Asterisk CDR csv handling

Author image

How a company handles CDR files from many Asterisk servers

We have a cron job that moves master.csv to subdir/<timestamp>.csv and then tries to parse and delete all csvs in that directory. The reasons we did this were

  1. We wanted to store more data in the database without having to change source code. For example, we have 45 asterisk servers writing to one cdr database so it’s nice to have a field in the database telling us which server input that row.
  2. Our database server is in another office so when the network goes down or there is a power outage somewhere, we no longer have this huge one point of failure for all of our remote phone servers. The csvs just keep piling up until a valid connection to the database can be restored.

To my knowledge asterisk doesn’t keep master.csv open between writes and when we’ve moved it we never had a problem. Asterisk simply creates a new master.csv the next time a write occurs.

David Carr, november 2003



Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.