2004-06-11 00:12:35 +00:00
|
|
|
;;; odbc setup file
|
|
|
|
|
2005-12-08 23:33:08 +00:00
|
|
|
; ENV is a global set of environmental variables that will get set.
|
|
|
|
; Note that all environmental variables can be seen by all connections,
|
|
|
|
; so you can't have different values for different connections.
|
|
|
|
[ENV]
|
|
|
|
INFORMIXSERVER => my_special_database
|
|
|
|
INFORMIXDIR => /opt/informix
|
|
|
|
|
|
|
|
; All other sections are arbitrary names for database connections.
|
|
|
|
|
2004-11-28 21:28:30 +00:00
|
|
|
[asterisk]
|
2007-11-08 18:48:15 +00:00
|
|
|
enabled => no
|
2004-11-28 21:28:30 +00:00
|
|
|
dsn => asterisk
|
|
|
|
;username => myuser
|
|
|
|
;password => mypass
|
2004-06-11 00:12:35 +00:00
|
|
|
pre-connect => yes
|
2006-11-13 05:58:14 +00:00
|
|
|
; What should we execute to ensure that our connection is still alive? The
|
|
|
|
; statement should return a non-zero value in the first field of its first
|
|
|
|
; record. The default is "select 1".
|
|
|
|
;sanitysql => select 1
|
2004-06-11 00:12:35 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:33:08 +00:00
|
|
|
[mysql2]
|
|
|
|
enabled => no
|
|
|
|
dsn => MySQL-asterisk
|
|
|
|
username => myuser
|
|
|
|
password => mypass
|
|
|
|
pre-connect => yes
|
2004-06-11 00:12:35 +00:00
|
|
|
|
2006-09-21 23:29:32 +00:00
|
|
|
; Certain servers, such as MS SQL Server and Sybase use the TDS protocol, which
|
|
|
|
; limits the number of active queries per connection to 1. By setting up pools
|
|
|
|
; of connections, Asterisk can be made to work with these servers.
|
|
|
|
[sqlserver]
|
|
|
|
enabled => no
|
|
|
|
dsn => mickeysoft
|
|
|
|
pooling => yes
|
|
|
|
limit => 5
|
|
|
|
username => oscar
|
|
|
|
password => thegrouch
|
|
|
|
pre-connect => yes
|
2006-11-13 05:58:14 +00:00
|
|
|
sanitysql => select count(*) from systables
|
2004-06-11 00:12:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|