2003-11-25 01:17:50 +00:00
|
|
|
; Sample Asterisk config file for CDR logging to PostgresSQL
|
2009-10-10 08:30:24 +00:00
|
|
|
;
|
|
|
|
; Note that you can use TLS connections to your database server.
|
|
|
|
; This is configured for your PostgreSQL client installation
|
|
|
|
; on this system (check for pgsessions.conf)
|
2003-11-25 01:17:50 +00:00
|
|
|
|
|
|
|
[global]
|
2025-01-07 21:17:56 +01:00
|
|
|
;hostname=localhost ; Database server hostname
|
|
|
|
;port=5432 ; Port number for the PostgreSQL server
|
|
|
|
;dbname=asterisk ; Database name
|
|
|
|
;user=asterisk ; Username for the database
|
|
|
|
;password=password ; Password for the user
|
|
|
|
;appname=asterisk ; Optional PostgreSQL application_name (no whitespace allowed)
|
|
|
|
;table=cdr ; SQL table where Call Detail Records (CDRs) will be inserted
|
|
|
|
;encoding=LATIN9 ; Character encoding for logged data
|
|
|
|
;timezone=UTC ; Uncomment to log datetime fields in UTC/GMT
|
|
|
|
|