res_config_pgsql: normalize database connection option with cel and cdr by supporting new options name

(cherry picked from commit ddd6d64ea8)
This commit is contained in:
Abdelkader Boudih
2025-01-08 23:00:39 +01:00
committed by Asterisk Development Team
parent a98187e6f5
commit 3ab98a6b0d
2 changed files with 57 additions and 38 deletions

View File

@@ -1,25 +1,25 @@
;
; Sample configuration for res_config_pgsql
;
; The value of dbhost may be either a hostname or an IP address.
; If dbhost is commented out or the string "localhost", a connection
; The value of hostname may be either a hostname or an IP address.
; If hostname is commented out or the string "localhost", a connection
; to the local host is assumed and dbsock is used instead of TCP/IP
; to connect to the server.
;
[general]
dbhost=127.0.0.1
dbport=5432
dbname=asterisk
dbuser=asterisk
dbpass=password
;dbappname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.
;
; dbsock is specified as the directory where the socket file may be found. The
; actual socket is constructed as a combination of dbsock and dbport. For
;hostname=localhost
;port=5432
;dbname=asterisk
;user=postgres
;password=password
;appname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.
; socket is specified as the directory where the socket file may be found. The
; actual socket is constructed as a combination of socket and port. For
; example, the values of '/tmp' and '5432', respectively, will specify a socket
; file of '/tmp/.s.PGSQL.5432'.
;
;dbsock=/tmp
;socket=/tmp
;
; requirements - At startup, each realtime family will make requirements
; on the backend. There are several strategies for handling requirements: