(closes issue #13139)
[asterisk-bristuff.git] / doc / odbcstorage.txt
blob435574b0e88a09c3558cdc2620cdf7378ce58795
1 ODBC Voicemail Storage
2 ======================
4 ODBC Storage allows you to store voicemail messages within a database 
5 instead of using a file.  This is *not* a full realtime engine and 
6 *only* supports ODBC.  The table description for the "voicemessages" 
7 table is as follows:
9 +----------------+-------------+------+-----+---------+-------+
10 | Field          | Type        | Null | Key | Default | Extra |
11 +----------------+-------------+------+-----+---------+-------+
12 | msgnum         | int(11)     | YES  |     | NULL    |       |
13 | dir            | varchar(80) | YES  | MUL | NULL    |       |
14 | context        | varchar(80) | YES  |     | NULL    |       |
15 | macrocontext   | varchar(80) | YES  |     | NULL    |       |
16 | callerid       | varchar(40) | YES  |     | NULL    |       |
17 | origtime       | varchar(40) | YES  |     | NULL    |       |
18 | duration       | varchar(20) | YES  |     | NULL    |       |
19 | mailboxuser    | varchar(80) | YES  |     | NULL    |       |
20 | mailboxcontext | varchar(80) | YES  |     | NULL    |       |
21 | recording      | longblob    | YES  |     | NULL    |       |
22 +----------------+-------------+------+-----+---------+-------+
24 The database name (from /etc/asterisk/res_odbc.conf) is in the 
25 "odbcstorage" variable in the general section of voicemail.conf.
27 You may modify the voicemessages table name by using 
28 odbctable=??? in voicemail.conf