diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-11 20:58:42 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-11 20:58:42 +0000 |
commit | 793a4505093a2d12fed3e1a5f3e0d6c2315214b4 (patch) | |
tree | 2bcebe05fd48c9f4cadc57fba2f977941795b603 /configs/dbsep.conf.sample | |
parent | 0f6d097b16684433020b4c46e3839d56c44a5cda (diff) |
Add contributed script for separation of database access from Asterisk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107721 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/dbsep.conf.sample')
-rw-r--r-- | configs/dbsep.conf.sample | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configs/dbsep.conf.sample b/configs/dbsep.conf.sample new file mode 100644 index 000000000..00d187d14 --- /dev/null +++ b/configs/dbsep.conf.sample @@ -0,0 +1,35 @@ +# +# Configuration file for dbsep.cgi +# +# The purpose of this file is to provide realtime access to a database, +# possibly through ODBC, without needing to load the ODBC drivers into +# Asterisk, since there are several backend drivers which are rather +# buggy. +# +# We accomplish this separation by using the res_config_curl realtime +# driver to connect to a server running dbsep.cgi (or another, which +# implements the same protocol). +# +# This file contains the information necessary to configure dbsep.cgi. +# +# +# Once installed to a web server, you'll need to preload func_curl.so +# and res_config_curl.so in modules.conf and configure extconfig.conf: +# +# voicemail => curl,http://server/path/to/dbsep.cgi/voicemail +# sippeers => curl,http://server/path/to/dbsep.cgi/sipfriends +# sipusers => curl,http://server/path/to/dbsep.cgi/sipfriends +# + +# The Data Source Name, as specified by the Perl DBI module. +dsn=somedsn + +# Connected database user +dbuser=someuser + +# And its password +dbpass=password + +# For most databases, this is fine. Set to 'no' for Sybase or MS SQL Server. +backslash_is_escape=yes + |