Let's also include aclocal.m4
[asterisk-bristuff.git] / contrib / scripts / vmdb.sql
blobc8148cfcbf0d125290421cd09aa162f4c7428cda
1 DROP TABLE IF EXISTS voicemail;
2 CREATE TABLE voicemail (
3         -- All of these column names are very specific, including "uniqueid".  Do not change them if you wish voicemail to work.
4         uniqueid INT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY,
5         -- Mailbox context.
6         context CHAR(80) NOT NULL DEFAULT 'default',
7         -- Mailbox number.  Should be numeric.
8         mailbox CHAR(80) NOT NULL,
9         -- Must be numeric.  Negative if you don't want it to be changed from VoicemailMain
10         password CHAR(80) NOT NULL,
11         -- Used in email and for Directory app
12         fullname CHAR(80),
13         -- Email address (will get sound file if attach=yes)
14         email CHAR(80),
15         -- Email address (won't get sound file)
16         pager CHAR(80),
17         -- Attach sound file to email - YES/no
18         attach CHAR(3),
19         -- Which sound format to attach
20         attachfmt CHAR(10),
21         -- Send email from this address
22         serveremail CHAR(80),
23         -- Prompts in alternative language
24         language CHAR(20),
25         -- Alternative timezone, as defined in voicemail.conf
26         tz CHAR(30),
27         -- Delete voicemail from server after sending email notification - yes/NO
28         deletevoicemail CHAR(3),
29         -- Read back CallerID information during playback - yes/NO
30         saycid CHAR(3),
31         -- Allow user to send voicemail from within VoicemailMain - YES/no
32         sendvoicemail CHAR(3),
33         -- Listen to voicemail and approve before sending - yes/NO
34         review CHAR(3),
35         -- Warn user a temporary greeting exists - yes/NO
36         tempgreetwarn CHAR(3),
37         -- Allow '0' to jump out during greeting - yes/NO
38         operator CHAR(3),
39         -- Hear date/time of message within VoicemailMain - YES/no
40         envelope CHAR(3),
41         -- Hear length of message within VoicemailMain - yes/NO
42         sayduration CHAR(3),
43         -- Minimum duration in minutes to say
44         saydurationm INT(3),
45         -- Force new user to record name when entering voicemail - yes/NO
46         forcename CHAR(3),
47         -- Force new user to record greetings when entering voicemail - yes/NO
48         forcegreetings CHAR(3),
49         -- Context in which to dial extension for callback
50         callback CHAR(80),
51         -- Context in which to dial extension (from advanced menu)
52         dialout CHAR(80),
53         -- Context in which to execute 0 or * escape during greeting
54         exitcontext CHAR(80),
55         -- Maximum messages in a folder (100 if not specified)
56         maxmsg INT(5),
57         -- Increase DB gain on recorded message by this amount (0.0 means none)
58         volgain DECIMAL(5,2),
59         -- IMAP user for authentication (if using IMAP storage)
60         imapuser VARCHAR(80),
61         -- IMAP password for authentication (if using IMAP storage)
62         imappassword VARCHAR(80),
63         stamp timestamp