---
--- static asterisk config
---
CREATE TABLE `static_ast_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cat_metric` int(11) NOT NULL DEFAULT '0',
`var_metric` int(11) NOT NULL DEFAULT '0',
`commented` int(11) NOT NULL DEFAULT '0',
`filename` varchar(128) NOT NULL DEFAULT '',
`category` varchar(128) NOT NULL DEFAULT 'default',
`var_name` varchar(128) NOT NULL DEFAULT '',
`var_val` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `filename_comment` (`filename`,`commented`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
---
---realtime dialplan
---
CREATE TABLE `extensions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`context` varchar(40) NOT NULL,
`exten` varchar(40) NOT NULL,
`priority` int(11) NOT NULL,
`app` varchar(40) NOT NULL,
`appdata` varchar(256) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `context` (`context`,`exten`,`priority`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
--
-- Table structure for table `iaxfriends`
--
DROP TABLE IF EXISTS `iaxfriends`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iaxfriends` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(40) NOT NULL,
`type` enum('friend','user','peer') DEFAULT NULL,
`username` varchar(40) DEFAULT NULL,
`mailbox` varchar(40) DEFAULT NULL,
`secret` varchar(40) DEFAULT NULL,
`dbsecret` varchar(40) DEFAULT NULL,
`context` varchar(40) DEFAULT NULL,
`regcontext` varchar(40) DEFAULT NULL,
`host` varchar(40) DEFAULT NULL,
`ipaddr` varchar(40) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`defaultip` varchar(20) DEFAULT NULL,
`sourceaddress` varchar(20) DEFAULT NULL,
`mask` varchar(20) DEFAULT NULL,
`regexten` varchar(40) DEFAULT NULL,
`regseconds` int(11) DEFAULT NULL,
`accountcode` varchar(80) DEFAULT NULL,
`mohinterpret` varchar(20) DEFAULT NULL,
`mohsuggest` varchar(20) DEFAULT NULL,
`inkeys` varchar(40) DEFAULT NULL,
`outkeys` varchar(40) DEFAULT NULL,
`language` varchar(10) DEFAULT NULL,
`callerid` varchar(100) DEFAULT NULL,
`cid_number` varchar(40) DEFAULT NULL,
`sendani` enum('yes','no') DEFAULT NULL,
`fullname` varchar(40) DEFAULT NULL,
`trunk` enum('yes','no') DEFAULT NULL,
`auth` varchar(20) DEFAULT NULL,
`maxauthreq` int(11) DEFAULT NULL,
`requirecalltoken` enum('yes','no','auto') DEFAULT NULL,
`encryption` enum('yes','no','aes128') DEFAULT NULL,
`transfer` enum('yes','no','mediaonly') DEFAULT NULL,
`jitterbuffer` enum('yes','no') DEFAULT NULL,
`forcejitterbuffer` enum('yes','no') DEFAULT NULL,
`disallow` varchar(200) DEFAULT NULL,
`allow` varchar(200) DEFAULT NULL,
`codecpriority` varchar(40) DEFAULT NULL,
`qualify` varchar(10) DEFAULT NULL,
`qualifysmoothing` enum('yes','no') DEFAULT NULL,
`qualifyfreqok` varchar(10) DEFAULT NULL,
`qualifyfreqnotok` varchar(10) DEFAULT NULL,
`timezone` varchar(20) DEFAULT NULL,
`adsi` enum('yes','no') DEFAULT NULL,
`amaflags` varchar(20) DEFAULT NULL,
`setvar` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `iaxfriends_name` (`name`),
KEY `iaxfriends_name_host` (`name`,`host`),
KEY `iaxfriends_name_ipaddr_port` (`name`,`ipaddr`,`port`),
KEY `iaxfriends_ipaddr_port` (`ipaddr`,`port`),
KEY `iaxfriends_host_port` (`host`,`port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `meetme`
--
CREATE TABLE `meetme` (
`bookid` int(11) NOT NULL AUTO_INCREMENT,
`confno` varchar(80) NOT NULL,
`starttime` datetime DEFAULT NULL,
`endtime` datetime DEFAULT NULL,
`pin` varchar(20) DEFAULT NULL,
`adminpin` varchar(20) DEFAULT NULL,
`opts` varchar(20) DEFAULT NULL,
`adminopts` varchar(20) DEFAULT NULL,
`recordingfilename` varchar(80) DEFAULT NULL,
`recordingformat` varchar(10) DEFAULT NULL,
`maxusers` int(11) DEFAULT NULL,
`members` int(11) NOT NULL,
PRIMARY KEY (`bookid`),
KEY `meetme_confno_start_end` (`confno`,`starttime`,`endtime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `musiconhold`
--
CREATE TABLE `musiconhold` (
`name` varchar(80) NOT NULL,
`mode` enum('custom','files','mp3nb','quietmp3nb','quietmp3') DEFAULT NULL,
`directory` varchar(255) DEFAULT NULL,
`application` varchar(255) DEFAULT NULL,
`digit` varchar(1) DEFAULT NULL,
`sort` varchar(10) DEFAULT NULL,
`format` varchar(10) DEFAULT NULL,
`stamp` datetime DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `queue_members`
--
CREATE TABLE `queue_members` (
`queue_name` varchar(80) NOT NULL,
`interface` varchar(80) NOT NULL,
`membername` varchar(80) DEFAULT NULL,
`state_interface` varchar(80) DEFAULT NULL,
`penalty` int(11) DEFAULT NULL,
`paused` int(11) DEFAULT NULL,
`uniqueid` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`queue_name`,`interface`),
UNIQUE KEY `uniqueid` (`uniqueid`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
--
-- Table structure for table `queue_rules`
--
CREATE TABLE `queue_rules` (
`rule_name` varchar(80) NOT NULL,
`time` varchar(32) NOT NULL,
`min_penalty` varchar(32) NOT NULL,
`max_penalty` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `queues`
--
CREATE TABLE `queues` (
`name` varchar(128) NOT NULL,
`musiconhold` varchar(128) DEFAULT NULL,
`announce` varchar(128) DEFAULT NULL,
`context` varchar(128) DEFAULT NULL,
`timeout` int(11) DEFAULT NULL,
`ringinuse` enum('yes','no') DEFAULT NULL,
`setinterfacevar` enum('yes','no') DEFAULT NULL,
`setqueuevar` enum('yes','no') DEFAULT NULL,
`setqueueentryvar` enum('yes','no') DEFAULT NULL,
`monitor_format` varchar(8) DEFAULT NULL,
`membermacro` varchar(512) DEFAULT NULL,
`membergosub` varchar(512) DEFAULT NULL,
`queue_youarenext` varchar(128) DEFAULT NULL,
`queue_thereare` varchar(128) DEFAULT NULL,
`queue_callswaiting` varchar(128) DEFAULT NULL,
`queue_quantity1` varchar(128) DEFAULT NULL,
`queue_quantity2` varchar(128) DEFAULT NULL,
`queue_holdtime` varchar(128) DEFAULT NULL,
`queue_minutes` varchar(128) DEFAULT NULL,
`queue_minute` varchar(128) DEFAULT NULL,
`queue_seconds` varchar(128) DEFAULT NULL,
`queue_thankyou` varchar(128) DEFAULT NULL,
`queue_callerannounce` varchar(128) DEFAULT NULL,
`queue_reporthold` varchar(128) DEFAULT NULL,
`announce_frequency` int(11) DEFAULT NULL,
`announce_to_first_user` enum('yes','no') DEFAULT NULL,
`min_announce_frequency` int(11) DEFAULT NULL,
`announce_round_seconds` int(11) DEFAULT NULL,
`announce_holdtime` varchar(128) DEFAULT NULL,
`announce_position` varchar(128) DEFAULT NULL,
`announce_position_limit` int(11) DEFAULT NULL,
`periodic_announce` varchar(50) DEFAULT NULL,
`periodic_announce_frequency` int(11) DEFAULT NULL,
`relative_periodic_announce` enum('yes','no') DEFAULT NULL,
`random_periodic_announce` enum('yes','no') DEFAULT NULL,
`retry` int(11) DEFAULT NULL,
`wrapuptime` int(11) DEFAULT NULL,
`penaltymemberslimit` int(11) DEFAULT NULL,
`autofill` enum('yes','no') DEFAULT NULL,
`monitor_type` varchar(128) DEFAULT NULL,
`autopause` enum('yes','no','all') DEFAULT NULL,
`autopausedelay` int(11) DEFAULT NULL,
`autopausebusy` enum('yes','no') DEFAULT NULL,
`autopauseunavail` enum('yes','no') DEFAULT NULL,
`maxlen` int(11) DEFAULT NULL,
`servicelevel` int(11) DEFAULT NULL,
`strategy` enum('ringall','leastrecent','fewestcalls','random','rrmemory','linear','wrandom','rrordered') DEFAULT NULL,
`joinempty` varchar(128) DEFAULT NULL,
`leavewhenempty` varchar(128) DEFAULT NULL,
`reportholdtime` enum('yes','no') DEFAULT NULL,
`memberdelay` int(11) DEFAULT NULL,
`weight` int(11) DEFAULT NULL,
`timeoutrestart` enum('yes','no') DEFAULT NULL,
`defaultrule` varchar(128) DEFAULT NULL,
`timeoutpriority` varchar(128) DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `sippeers`
--
CREATE TABLE `sippeers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(40) NOT NULL,
`ipaddr` varchar(45) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`regseconds` int(11) DEFAULT NULL,
`defaultuser` varchar(40) DEFAULT NULL,
`fullcontact` varchar(80) DEFAULT NULL,
`regserver` varchar(20) DEFAULT NULL,
`useragent` varchar(255) DEFAULT NULL,
`lastms` int(11) DEFAULT NULL,
`host` varchar(40) DEFAULT NULL,
`type` enum('friend','user','peer') DEFAULT NULL,
`context` varchar(40) DEFAULT NULL,
`permit` varchar(95) DEFAULT NULL,
`deny` varchar(95) DEFAULT NULL,
`secret` varchar(40) DEFAULT NULL,
`md5secret` varchar(40) DEFAULT NULL,
`remotesecret` varchar(40) DEFAULT NULL,
`transport` enum('udp','tcp','tls','ws','wss','udp,tcp','tcp,udp') DEFAULT NULL,
`encryption` varchar(128) DEFAULT NULL,
`dtmfmode` enum('rfc2833','info','shortinfo','inband','auto') DEFAULT NULL,
`directmedia` enum('yes','no','nonat','update','outgoing') DEFAULT NULL,
`nat` varchar(29) DEFAULT NULL,
`callgroup` varchar(40) DEFAULT NULL,
`pickupgroup` varchar(40) DEFAULT NULL,
`language` varchar(40) DEFAULT NULL,
`disallow` varchar(200) DEFAULT NULL,
`allow` varchar(200) DEFAULT NULL,
`insecure` varchar(40) DEFAULT NULL,
`trustrpid` enum('yes','no') DEFAULT NULL,
`progressinband` enum('yes','no','never') DEFAULT NULL,
`promiscredir` enum('yes','no') DEFAULT NULL,
`useclientcode` enum('yes','no') DEFAULT NULL,
`accountcode` varchar(80) DEFAULT NULL,
`setvar` varchar(200) DEFAULT NULL,
`callerid` varchar(40) DEFAULT NULL,
`amaflags` varchar(40) DEFAULT NULL,
`callcounter` enum('yes','no') DEFAULT NULL,
`busylevel` int(11) DEFAULT NULL,
`allowoverlap` enum('yes','no') DEFAULT NULL,
`allowsubscribe` enum('yes','no') DEFAULT NULL,
`videosupport` enum('yes','no') DEFAULT NULL,
`maxcallbitrate` int(11) DEFAULT NULL,
`rfc2833compensate` enum('yes','no') DEFAULT NULL,
`mailbox` varchar(40) DEFAULT NULL,
`session-timers` enum('accept','refuse','originate') DEFAULT NULL,
`session-expires` int(11) DEFAULT NULL,
`session-minse` int(11) DEFAULT NULL,
`session-refresher` enum('uac','uas') DEFAULT NULL,
`t38pt_usertpsource` varchar(40) DEFAULT NULL,
`regexten` varchar(40) DEFAULT NULL,
`fromdomain` varchar(40) DEFAULT NULL,
`fromuser` varchar(40) DEFAULT NULL,
`qualify` varchar(40) DEFAULT NULL,
`defaultip` varchar(45) DEFAULT NULL,
`rtptimeout` int(11) DEFAULT NULL,
`rtpholdtimeout` int(11) DEFAULT NULL,
`sendrpid` enum('yes','no') DEFAULT NULL,
`outboundproxy` varchar(40) DEFAULT NULL,
`callbackextension` varchar(40) DEFAULT NULL,
`timert1` int(11) DEFAULT NULL,
`timerb` int(11) DEFAULT NULL,
`qualifyfreq` int(11) DEFAULT NULL,
`constantssrc` enum('yes','no') DEFAULT NULL,
`contactpermit` varchar(95) DEFAULT NULL,
`contactdeny` varchar(95) DEFAULT NULL,
`usereqphone` enum('yes','no') DEFAULT NULL,
`textsupport` enum('yes','no') DEFAULT NULL,
`faxdetect` enum('yes','no') DEFAULT NULL,
`buggymwi` enum('yes','no') DEFAULT NULL,
`auth` varchar(40) DEFAULT NULL,
`fullname` varchar(40) DEFAULT NULL,
`trunkname` varchar(40) DEFAULT NULL,
`cid_number` varchar(40) DEFAULT NULL,
`callingpres` enum('allowed_not_screened','allowed_passed_screen','allowed_failed_screen','allowed','prohib_not_screened','prohib_passed_screen','prohib_failed_screen','prohib') DEFAULT NULL,
`canreinvite` varchar(15) DEFAULT NULL,
`mohinterpret` varchar(40) DEFAULT NULL,
`mohsuggest` varchar(40) DEFAULT NULL,
`parkinglot` varchar(40) DEFAULT NULL,
`hasvoicemail` enum('yes','no') DEFAULT NULL,
`subscribemwi` enum('yes','no') DEFAULT NULL,
`vmexten` varchar(40) DEFAULT NULL,
`autoframing` enum('yes','no') DEFAULT NULL,
`rtpkeepalive` int(11) DEFAULT NULL,
`call-limit` int(11) DEFAULT NULL,
`g726nonstandard` enum('yes','no') DEFAULT NULL,
`ignoresdpversion` enum('yes','no') DEFAULT NULL,
`allowtransfer` enum('yes','no') DEFAULT NULL,
`dynamic` enum('yes','no') DEFAULT NULL,
`path` varchar(256) DEFAULT NULL,
`supportpath` enum('yes','no') DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `sippeers_name` (`name`),
KEY `sippeers_name_host` (`name`,`host`),
KEY `sippeers_ipaddr_port` (`ipaddr`,`port`),
KEY `sippeers_host_port` (`host`,`port`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8;
--
-- Table structure for table `voicemail`
--
CREATE TABLE `voicemail` (
`uniqueid` int(11) NOT NULL AUTO_INCREMENT,
`context` varchar(80) NOT NULL,
`mailbox` varchar(80) NOT NULL,
`password` varchar(80) NOT NULL,
`fullname` varchar(80) DEFAULT NULL,
`alias` varchar(80) DEFAULT NULL,
`email` varchar(80) DEFAULT NULL,
`pager` varchar(80) DEFAULT NULL,
`attach` enum('yes','no') DEFAULT NULL,
`attachfmt` varchar(10) DEFAULT NULL,
`serveremail` varchar(80) DEFAULT NULL,
`language` varchar(20) DEFAULT NULL,
`tz` varchar(30) DEFAULT NULL,
`deletevoicemail` enum('yes','no') DEFAULT NULL,
`saycid` enum('yes','no') DEFAULT NULL,
`sendvoicemail` enum('yes','no') DEFAULT NULL,
`review` enum('yes','no') DEFAULT NULL,
`tempgreetwarn` enum('yes','no') DEFAULT NULL,
`operator` enum('yes','no') DEFAULT NULL,
`envelope` enum('yes','no') DEFAULT NULL,
`sayduration` int(11) DEFAULT NULL,
`forcename` enum('yes','no') DEFAULT NULL,
`forcegreetings` enum('yes','no') DEFAULT NULL,
`callback` varchar(80) DEFAULT NULL,
`dialout` varchar(80) DEFAULT NULL,
`exitcontext` varchar(80) DEFAULT NULL,
`maxmsg` int(11) DEFAULT NULL,
`volgain` decimal(5,2) DEFAULT NULL,
`imapuser` varchar(80) DEFAULT NULL,
`imappassword` varchar(80) DEFAULT NULL,
`imapserver` varchar(80) DEFAULT NULL,
`imapport` varchar(8) DEFAULT NULL,
`imapflags` varchar(80) DEFAULT NULL,
`stamp` datetime DEFAULT NULL,
PRIMARY KEY (`uniqueid`),
KEY `voicemail_mailbox` (`mailbox`),
KEY `voicemail_context` (`context`),
KEY `voicemail_mailbox_context` (`mailbox`,`context`),
KEY `voicemail_imapuser` (`imapuser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;