Search code examples
mysqlasteriskasteriskami

Saving Asterisk CDR in 2 different databases


I'm working on a PHP probject, but require some help in Asterisk PBX. For my project, I need to save Asterisk CDR on a remote database and also want to save the CDR in the existing database.

So my question is: Can we save Asterisk CDR in two different databases? One of them would be a MySQL database on same asterisk server and other database will be on a remote server. If yes, how can I achieve it?


Solution

  • Just put TWO sections in cdr_mysql.conf and it will work like you want.

    No need do complex things here

    Also you can use for one cdr_mysql for other cdr_odbc(if other database is not mysql)