res_pgsql.conf.sample 1.1 KB

123456789101112131415161718192021222324252627282930
  1. ;
  2. ; Sample configuration for res_config_pgsql
  3. ;
  4. ; The value of dbhost may be either a hostname or an IP address.
  5. ; If dbhost is commented out or the string "localhost", a connection
  6. ; to the local host is assumed and dbsock is used instead of TCP/IP
  7. ; to connect to the server.
  8. ;
  9. [general]
  10. dbhost=127.0.0.1
  11. dbport=5432
  12. dbname=asterisk
  13. dbuser=asterisk
  14. dbpass=password
  15. ;dbappname=asterisk ; Postgres application_name support (optional). Whitespace not allowed.
  16. ;
  17. ; dbsock is specified as the directory where the socket file may be found. The
  18. ; actual socket is constructed as a combination of dbsock and dbport. For
  19. ; example, the values of '/tmp' and '5432', respectively, will specify a socket
  20. ; file of '/tmp/.s.PGSQL.5432'.
  21. ;
  22. ;dbsock=/tmp
  23. ;
  24. ; requirements - At startup, each realtime family will make requirements
  25. ; on the backend. There are several strategies for handling requirements:
  26. ; warn - Warn if the required column does not exist.
  27. ; createclose - Create columns as close to the requirements as possible.
  28. ; createchar - Create char columns only
  29. ;
  30. requirements=warn