Asterisk can store CDR data in a PostgreSQL database via the
cdr_pgsql.so module. When the module is loaded the
necessary information will be read from the
cdr_pgsql.conf file, and Asterisk will connect to the
PostgreSQL database to write and store CDR data.