mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
samples: Use "asterisk" instead of "postgres" for username
(cherry picked from commit 4b6d40bd66
)
This commit is contained in:
committed by
Asterisk Development Team
parent
45f51341db
commit
635f6fa564
@@ -5,12 +5,13 @@
|
|||||||
; on this system (check for pgsessions.conf)
|
; on this system (check for pgsessions.conf)
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
;hostname=localhost
|
;hostname=localhost ; Database server hostname
|
||||||
;port=5432
|
;port=5432 ; Port number for the PostgreSQL server
|
||||||
;dbname=asterisk
|
;dbname=asterisk ; Database name
|
||||||
;password=password
|
;user=asterisk ; Username for the database
|
||||||
;user=postgres
|
;password=password ; Password for the user
|
||||||
;appname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.
|
;appname=asterisk ; Optional PostgreSQL application_name (no whitespace allowed)
|
||||||
;table=cdr ;SQL table where CDRs will be inserted
|
;table=cdr ; SQL table where Call Detail Records (CDRs) will be inserted
|
||||||
;encoding=LATIN9 ; Encoding of logged characters in Asterisk
|
;encoding=LATIN9 ; Character encoding for logged data
|
||||||
;timezone=UTC ; Uncomment if you want datetime fields in UTC/GMT
|
;timezone=UTC ; Uncomment to log datetime fields in UTC/GMT
|
||||||
|
|
||||||
|
@@ -3,9 +3,8 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
; Sample Asterisk config file for CEL logging to PostgreSQL
|
; Sample Asterisk config file for CEL logging to PostgreSQL
|
||||||
;
|
|
||||||
; CEL field names:
|
; CEL field names:
|
||||||
;
|
|
||||||
; eventtype
|
; eventtype
|
||||||
; CHANNEL_START = 1
|
; CHANNEL_START = 1
|
||||||
; CHANNEL_END = 2
|
; CHANNEL_END = 2
|
||||||
@@ -55,19 +54,19 @@
|
|||||||
|
|
||||||
[global]
|
[global]
|
||||||
; Use 'show_user_defined' to put "USER_DEFINED" in the eventtype field,
|
; Use 'show_user_defined' to put "USER_DEFINED" in the eventtype field,
|
||||||
; instead of (by default) just putting the user defined event name there.
|
; instead of (by default) just putting the user-defined event name there.
|
||||||
;
|
|
||||||
;show_user_defined=yes
|
;show_user_defined=yes
|
||||||
|
|
||||||
; Log date/time in GMT. The default of this option is 'no'.
|
; Log date/time in GMT. The default of this option is 'no'.
|
||||||
;usegmtime=yes
|
;usegmtime=yes
|
||||||
|
|
||||||
;hostname=localhost
|
; PostgreSQL connection settings
|
||||||
;port=5432
|
;hostname=localhost ; Database server hostname
|
||||||
;dbname=asterisk
|
;port=5432 ; Port number for the PostgreSQL server
|
||||||
;password=password
|
;dbname=asterisk ; Database name
|
||||||
;user=postgres
|
;user=asterisk ; Username for the database
|
||||||
;table=cel ;SQL table where CEL's will be inserted
|
;password=password ; Password for the user
|
||||||
;schema=public ;Schema where CEL's table is located. Optional parameter.
|
;table=cel ; SQL table where CELs will be inserted
|
||||||
;If schema support is present the default value used will be current_schema().
|
;schema=public ; Schema where the CEL table is located (optional).
|
||||||
;appname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.
|
; Defaults to `current_schema()` if not specified.
|
||||||
|
;appname=asterisk ; Optional PostgreSQL application_name (no whitespace allowed)
|
||||||
|
Reference in New Issue
Block a user