[Asterisk-Dev] How does Asterisk choose the CDr backend to use?

Heison Chak heison at chak.ca
Tue Mar 1 08:57:48 MST 2005


Hi David,

	For future reference, please direct these type of questions 
to asterisk-users. By default, CDR will be logged to master.csv (the 
local file); if you want to disable it, you need to have: 

;modules.conf
noload => cdr_csv.so 

	If you want CDR in PostgreSQL, you need to have:

;cdr_pgsql.conf
[global]
hostname=databasehost
port=5432
dbname=asterisk
password=password
user=asterisk
table=cdr

	Likewise for MySQL. Alternately, you can use ODBC, look for 
cdr_odbc.conf.sample in /usr/src/asterisk/samples

-Heison
On Tue, Mar 01, 2005 at 10:47:15AM -0500, David Filion wrote:
> Hi,
> 
> I'm trying to understand how Asterisk chooses the backend it's going to 
> use for storing CDRs.
> For example, if PostgreSQL, MySQL, and FreeTDS are installed, how does 
> Asterisk know
> which one to choose? Does it choose which ever one is configured are 
> forget about the rest
> or will it send a CDR to each configured backend?
> 
> The reason I'm asking is because I've been asked to put in logic that 
> will write CDRs to a local
> file if the CDR engine cannot send the CDR to the DB being used.
> 
> Thanks,
> 
> David Filion
> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> 



More information about the asterisk-dev mailing list