aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 22:28:50 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 22:28:50 +0000
commit5d365394535b3192f861a36874d1d69a626870f5 (patch)
tree5db4193ffe86ebea8a96f26a40e8670bbbaf17e4 /configs
parent31bb5e6c9eaf8373d7b1b17a6fd84834a0063f2c (diff)
Add a sample configuration file and example tables for use with res_config_pgsql.
(issue #9676, suretec) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63329 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r--configs/extconfig.conf.sample7
-rw-r--r--configs/res_pgsql.conf.sample14
2 files changed, 20 insertions, 1 deletions
diff --git a/configs/extconfig.conf.sample b/configs/extconfig.conf.sample
index a6c399f16..d2c5fbbb2 100644
--- a/configs/extconfig.conf.sample
+++ b/configs/extconfig.conf.sample
@@ -40,7 +40,12 @@
; the family if the table is not specified
;
;example => odbc,asterisk,alttable
-;example2 => ldap,"dc=oxymium,dc=net",example2
+;
+; "odbc" is shown in the examples below, but is not the only valid realtime
+; engine. There is:
+; odbc ... res_config_odbc
+; pgsql ... res_config_pgsql
+; mysql ... res_config_mysql (available from asterisk-addons)
;
;iaxusers => odbc,asterisk
;iaxpeers => odbc,asterisk
diff --git a/configs/res_pgsql.conf.sample b/configs/res_pgsql.conf.sample
new file mode 100644
index 000000000..1ec2293e2
--- /dev/null
+++ b/configs/res_pgsql.conf.sample
@@ -0,0 +1,14 @@
+;
+; 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
+; 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