| 1 |
-- |
|---|
| 2 |
|
|---|
| 3 |
-- |
|---|
| 4 |
-- Database: `asterisk` |
|---|
| 5 |
-- |
|---|
| 6 |
|
|---|
| 7 |
-- -------------------------------------------------------- |
|---|
| 8 |
|
|---|
| 9 |
-- |
|---|
| 10 |
-- Table structure for table `customcontexts_contexts` |
|---|
| 11 |
-- |
|---|
| 12 |
|
|---|
| 13 |
CREATE TABLE IF NOT EXISTS `customcontexts_contexts` ( |
|---|
| 14 |
`context` varchar(100) NOT NULL default '', |
|---|
| 15 |
`description` varchar(100) NOT NULL default '', |
|---|
| 16 |
PRIMARY KEY (`context`), |
|---|
| 17 |
UNIQUE KEY `description` (`description`) |
|---|
| 18 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 19 |
|
|---|
| 20 |
-- -------------------------------------------------------- |
|---|
| 21 |
|
|---|
| 22 |
-- |
|---|
| 23 |
-- Table structure for table `customcontexts_contexts_list` |
|---|
| 24 |
-- |
|---|
| 25 |
|
|---|
| 26 |
CREATE TABLE IF NOT EXISTS `customcontexts_contexts_list` ( |
|---|
| 27 |
`context` varchar(100) NOT NULL default '', |
|---|
| 28 |
`description` varchar(100) NOT NULL default '', |
|---|
| 29 |
`locked` tinyint(1) NOT NULL default '0', |
|---|
| 30 |
PRIMARY KEY (`context`), |
|---|
| 31 |
UNIQUE KEY `description` (`description`) |
|---|
| 32 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 33 |
|
|---|
| 34 |
-- |
|---|
| 35 |
-- Dumping data for table `customcontexts_contexts_list` |
|---|
| 36 |
-- |
|---|
| 37 |
|
|---|
| 38 |
INSERT IGNORE INTO `customcontexts_contexts_list` (`context`, `description`, `locked`) VALUES ('from-internal', 'Default Internal Context', 1), |
|---|
| 39 |
('from-internal-additional', 'Internal Dialplan', 0), |
|---|
| 40 |
('outbound-allroutes', 'Outbound Routes', 0); |
|---|
| 41 |
|
|---|
| 42 |
-- -------------------------------------------------------- |
|---|
| 43 |
|
|---|
| 44 |
-- |
|---|
| 45 |
-- Table structure for table `customcontexts_includes` |
|---|
| 46 |
-- |
|---|
| 47 |
|
|---|
| 48 |
CREATE TABLE IF NOT EXISTS `customcontexts_includes` ( |
|---|
| 49 |
`context` varchar(100) NOT NULL default '', |
|---|
| 50 |
`include` varchar(100) NOT NULL default '', |
|---|
| 51 |
`timegroupid` int(11) default NULL, |
|---|
| 52 |
`sort` int(11) NOT NULL default '0', |
|---|
| 53 |
PRIMARY KEY (`context`,`include`), |
|---|
| 54 |
KEY `sort` (`sort`) |
|---|
| 55 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 56 |
|
|---|
| 57 |
ALTER IGNORE TABLE `customcontexts_includes` ADD `timegroupid` INT NULL AFTER `include` ; |
|---|
| 58 |
|
|---|
| 59 |
-- -------------------------------------------------------- |
|---|
| 60 |
|
|---|
| 61 |
-- |
|---|
| 62 |
-- Table structure for table `customcontexts_includes_list` |
|---|
| 63 |
-- |
|---|
| 64 |
|
|---|
| 65 |
CREATE TABLE IF NOT EXISTS `customcontexts_includes_list` ( |
|---|
| 66 |
`context` varchar(100) NOT NULL default '', |
|---|
| 67 |
`include` varchar(100) NOT NULL default '', |
|---|
| 68 |
`description` varchar(100) NOT NULL default '', |
|---|
| 69 |
PRIMARY KEY (`context`,`include`) |
|---|
| 70 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 71 |
|
|---|
| 72 |
ALTER IGNORE TABLE `customcontexts_includes_list` ADD `missing` BOOL NOT NULL DEFAULT '0'; |
|---|
| 73 |
|
|---|
| 74 |
-- |
|---|
| 75 |
-- Dumping data for table `customcontexts_includes_list` |
|---|
| 76 |
-- |
|---|
| 77 |
|
|---|
| 78 |
INSERT IGNORE INTO `customcontexts_includes_list` (`context`, `include`, `description`) VALUES ('from-internal', 'parkedcalls', 'Call Parking'), |
|---|
| 79 |
('from-internal', 'from-internal-custom', 'Custom Internal Dialplan'), |
|---|
| 80 |
('from-internal', 'ext-fax', 'Fax'); |
|---|
| 81 |
|
|---|
| 82 |
INSERT IGNORE INTO `customcontexts_includes_list` (`context`, `include`, `description`) VALUES ('from-internal-additional', 'outbound-allroutes', 'ALL OUTBOUND ROUTES'), |
|---|
| 83 |
('from-internal', 'from-internal-additional', 'ENTIRE Basic Internal Dialplan'); |
|---|
| 84 |
|
|---|
| 85 |
UPDATE `customcontexts_includes_list` SET `description` = 'ALL OUTBOUND ROUTES' WHERE `context` = 'from-internal-additional' AND `include` = 'outbound-allroutes'; |
|---|
| 86 |
|
|---|
| 87 |
-- -------------------------------------------------------- |
|---|
| 88 |
|
|---|
| 89 |
-- |
|---|
| 90 |
-- Table structure for table `customcontexts_module` |
|---|
| 91 |
-- |
|---|
| 92 |
|
|---|
| 93 |
CREATE TABLE IF NOT EXISTS `customcontexts_module` ( |
|---|
| 94 |
`id` varchar(50) NOT NULL default '', |
|---|
| 95 |
`value` varchar(100) NOT NULL default '', |
|---|
| 96 |
PRIMARY KEY (`id`) |
|---|
| 97 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 98 |
|
|---|
| 99 |
-- |
|---|
| 100 |
-- Dumping data for table `customcontexts_module` |
|---|
| 101 |
-- |
|---|
| 102 |
|
|---|
| 103 |
INSERT IGNORE INTO `customcontexts_module` (`id`, `value`) VALUES ('modulerawname', 'customcontexts'), |
|---|
| 104 |
('moduledisplayname', 'Custom Contexts'), |
|---|
| 105 |
('moduleversion', '0.3.5'), |
|---|
| 106 |
('displaysortforincludes', 1); |
|---|
| 107 |
|
|---|
| 108 |
UPDATE `customcontexts_module` set `value` = '0.3.5' where `id` = 'moduleversion'; |
|---|
| 109 |
|
|---|
| 110 |
-- -------------------------------------------------------- |
|---|
| 111 |
|
|---|
| 112 |
-- |
|---|
| 113 |
-- Table structure for table `customcontexts_timegroups` |
|---|
| 114 |
-- |
|---|
| 115 |
|
|---|
| 116 |
CREATE TABLE IF NOT EXISTS `customcontexts_timegroups` ( |
|---|
| 117 |
`id` int(11) NOT NULL auto_increment, |
|---|
| 118 |
`description` varchar(50) NOT NULL default '', |
|---|
| 119 |
PRIMARY KEY (`id`), |
|---|
| 120 |
UNIQUE KEY `display` (`description`) |
|---|
| 121 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; |
|---|
| 122 |
|
|---|
| 123 |
-- -------------------------------------------------------- |
|---|
| 124 |
|
|---|
| 125 |
-- |
|---|
| 126 |
-- Table structure for table `customcontexts_timegroups_detail` |
|---|
| 127 |
-- |
|---|
| 128 |
|
|---|
| 129 |
CREATE TABLE IF NOT EXISTS `customcontexts_timegroups_detail` ( |
|---|
| 130 |
`id` int(11) NOT NULL auto_increment, |
|---|
| 131 |
`timegroupid` int(11) NOT NULL default '0', |
|---|
| 132 |
`time` varchar(100) NOT NULL default '', |
|---|
| 133 |
PRIMARY KEY (`id`) |
|---|
| 134 |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; |
|---|