| 1 |
# |
| 2 |
# Configuration file for dbsep.cgi |
| 3 |
# |
| 4 |
# The purpose of this file is to provide realtime access to a database, |
| 5 |
# possibly through ODBC, without needing to load the ODBC drivers into |
| 6 |
# Asterisk, since there are several backend drivers which are rather |
| 7 |
# buggy. |
| 8 |
# |
| 9 |
# We accomplish this separation by using the res_config_curl realtime |
| 10 |
# driver to connect to a server running dbsep.cgi (or another, which |
| 11 |
# implements the same protocol). |
| 12 |
# |
| 13 |
# This file contains the information necessary to configure dbsep.cgi. |
| 14 |
# |
| 15 |
# |
| 16 |
# Once installed to a web server, you'll need to preload func_curl.so |
| 17 |
# and res_config_curl.so in modules.conf and configure extconfig.conf: |
| 18 |
# |
| 19 |
# voicemail => curl,http://server/path/to/dbsep.cgi/voicemail |
| 20 |
# sippeers => curl,http://server/path/to/dbsep.cgi/sippeers |
| 21 |
# |
| 22 |
|
| 23 |
# The Data Source Name, as specified by the Perl DBI module. |
| 24 |
# Typically, this will be along the lines of 'DBI:mysql:astdbname[:dbhostname]' or 'DBI:Pg:dbname=astdbname;hostname=dbhostname' |
| 25 |
dsn=somedsn |
| 26 |
|
| 27 |
# Connected database user |
| 28 |
dbuser=someuser |
| 29 |
|
| 30 |
# And its password |
| 31 |
dbpass=password |
| 32 |
|
| 33 |
# For most databases, this is fine. Set to 'no' for Sybase or MS SQL Server. |
| 34 |
backslash_is_escape=yes |