Modify the main page of the doxygen documentation to link to a new page dedicated
[asterisk-bristuff.git] / configs / res_odbc.conf.sample
blobc40b47e3ef96121532e7afa83e70c1548a7be95b
1 ;;; odbc setup file 
3 ; ENV is a global set of environmental variables that will get set.
4 ; Note that all environmental variables can be seen by all connections,
5 ; so you can't have different values for different connections.
6 [ENV]
7 ;INFORMIXSERVER => my_special_database
8 ;INFORMIXDIR => /opt/informix
9 ;ORACLE_HOME => /home/oracle
11 ; All other sections are arbitrary names for database connections.
13 [asterisk]
14 enabled => no
15 dsn => asterisk
16 ;username => myuser
17 ;password => mypass
18 pre-connect => yes
20 ; What should we execute to ensure that our connection is still alive?  The
21 ; statement should return a non-zero value in the first field of its first
22 ; record.  The default is "select 1".
23 ;sanitysql => select 1
26 [mysql2]
27 enabled => no
28 dsn => MySQL-asterisk
29 username => myuser
30 password => mypass
31 pre-connect => yes
33 ; On some databases, the connection times out and a reconnection will be
34 ; necessary.  This setting configures the amount of time a connection
35 ; may sit idle (in seconds) before a reconnection will be attempted.
36 ;idlecheck => 3600
38 ; Certain servers, such as MS SQL Server and Sybase use the TDS protocol, which
39 ; limits the number of active queries per connection to 1.  By telling res_odbc
40 ; not to share connections, Asterisk can be made to work with these servers.
41 [sqlserver]
42 enabled => no
43 dsn => mickeysoft
44 share_connections => no
45 limit => 5
46 username => oscar
47 password => thegrouch
48 pre-connect => yes
49 sanitysql => select count(*) from systables
51 ; Many databases have a default of '\' to escape special characters.  MS SQL
52 ; Server does not.
53 backslash_is_escape => no