743bd44925c32d83ed60f4c624cc7f9b3d8b3703
[asterisk/asterisk.git] / contrib / realtime / mysql / voicemail_data.sql
1 DROP TABLE IF EXISTS voicemail_data;
2 CREATE TABLE voicemail_data (
3         -- Path to the recording
4         filename CHAR(255) NOT NULL PRIMARY KEY,
5         -- Mailbox number (without context)
6         origmailbox CHAR(80),
7         -- Dialplan context
8         context CHAR(80),
9         -- Dialplan context, if voicemail was invoked from a macro
10         macrocontext CHAR(80),
11         -- Dialplan extension
12         exten CHAR(80),
13         -- Dialplan priority
14         priority INT(5),
15         -- Name of the channel, when message was left
16         callerchan CHAR(80),
17         -- CallerID on the channel, when message was left
18         callerid CHAR(80),
19         -- Contrary to the name, origdate is a full datetime, in localized format
20         origdate CHAR(30),
21         -- Same date as origdate, but in Unixtime
22         origtime INT(11),
23         -- Value of the channel variable VM_CATEGORY, if set
24         category CHAR(30),
25         -- Length of the message, in seconds
26         duration INT(11)
27 );
28
29