From: hickert Date: Thu, 25 Nov 2010 07:51:58 +0000 (+0000) Subject: Added realtime extension database. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aec7a2c5bb9b8956296895f03caa8746aa3433c8;p=gosa.git Added realtime extension database. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20364 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/contrib/gofon.sql b/gosa-plugins/gofon/contrib/gofon.sql deleted file mode 100644 index 584bcc99f..000000000 --- a/gosa-plugins/gofon/contrib/gofon.sql +++ /dev/null @@ -1,24 +0,0 @@ -create database gophone; -use gophone; - -create table cdr ( - calldate datetime NOT NULL default '0000-00-00 00:00:00', - clid varchar(80) NOT NULL default '', - src varchar(80) NOT NULL default '', - dst varchar(80) NOT NULL default '', - dcontext varchar(80) NOT NULL default '', - channel varchar(80) NOT NULL default '', - dstchannel varchar(80) NOT NULL default '', - lastapp varchar(80) NOT NULL default '', - lastdata varchar(80) NOT NULL default '', - duration integer NOT NULL default '0', - billsec integer NOT NULL default '0', - disposition varchar(45) NOT NULL default '', - amaflags integer NOT NULL default '0', - accountcode varchar(20) NOT NULL default '', - uniqueid varchar(32) NOT NULL default '', - userfield varchar(255) NOT NULL default '' -); - -GRANT INSERT,SELECT ON gophone.cdr TO asterisk@localhost IDENTIFIED BY 'somemysqlpass'; - diff --git a/gosa-plugins/gofon/contrib/gophone.sql b/gosa-plugins/gofon/contrib/gophone.sql new file mode 100644 index 000000000..c5684e8b4 --- /dev/null +++ b/gosa-plugins/gofon/contrib/gophone.sql @@ -0,0 +1,231 @@ +DROP DATABASE IF EXISTS `gophone`; +CREATE DATABASE `gophone`; +use gophone; + +-- MySQL dump 10.11 +-- +-- Host: localhost Database: gophone +-- ------------------------------------------------------ +-- Server version 5.0.51a-24+lenny4 + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `cdr` +-- + +DROP TABLE IF EXISTS `cdr`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +CREATE TABLE `cdr` ( + `calldate` datetime NOT NULL default '0000-00-00 00:00:00', + `clid` varchar(80) NOT NULL default '', + `src` varchar(80) NOT NULL default '', + `dst` varchar(80) NOT NULL default '', + `dcontext` varchar(80) NOT NULL default '', + `channel` varchar(80) NOT NULL default '', + `dstchannel` varchar(80) NOT NULL default '', + `lastapp` varchar(80) NOT NULL default '', + `lastdata` varchar(80) NOT NULL default '', + `duration` int(11) NOT NULL default '0', + `billsec` int(11) NOT NULL default '0', + `disposition` varchar(45) NOT NULL default '', + `amaflags` int(11) NOT NULL default '0', + `accountcode` varchar(20) NOT NULL default '', + `uniqueid` varchar(32) NOT NULL default '', + `userfield` varchar(255) NOT NULL default '' +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `extensions` +-- + +DROP TABLE IF EXISTS `extensions`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +CREATE TABLE `extensions` ( + `id` int(11) NOT NULL auto_increment, + `context` varchar(20) NOT NULL default '', + `exten` varchar(20) NOT NULL default '', + `priority` tinyint(4) NOT NULL default '0', + `app` varchar(20) NOT NULL default '', + `appdata` varchar(128) NOT NULL default '', + PRIMARY KEY (`context`,`exten`,`priority`), + KEY `id` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1670 DEFAULT CHARSET=latin1; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `queue_members` +-- + +DROP TABLE IF EXISTS `queue_members`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +CREATE TABLE `queue_members` ( + `uniqueid` int(10) unsigned NOT NULL auto_increment, + `membername` varchar(40) default NULL, + `queue_name` varchar(128) default NULL, + `interface` varchar(128) default NULL, + `penalty` int(11) default NULL, + `paused` tinyint(1) default NULL, + PRIMARY KEY (`uniqueid`), + UNIQUE KEY `queue_interface` (`queue_name`,`interface`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `queues` +-- + +DROP TABLE IF EXISTS `queues`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +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, + `monitor_join` tinyint(1) default NULL, + `monitor_format` varchar(128) default NULL, + `queue_youarenext` varchar(128) default NULL, + `queue_thereare` varchar(128) default NULL, + `queue_callswaiting` varchar(128) default NULL, + `queue_holdtime` varchar(128) default NULL, + `queue_minutes` varchar(128) default NULL, + `queue_seconds` varchar(128) default NULL, + `queue_lessthan` varchar(128) default NULL, + `queue_thankyou` varchar(128) default NULL, + `queue_reporthold` varchar(128) default NULL, + `announce_frequency` int(11) default NULL, + `announce_round_seconds` int(11) default NULL, + `announce_holdtime` varchar(128) default NULL, + `retry` int(11) default NULL, + `wrapuptime` int(11) default NULL, + `maxlen` int(11) default NULL, + `servicelevel` int(11) default NULL, + `strategy` varchar(128) default NULL, + `joinempty` varchar(128) default NULL, + `leavewhenempty` varchar(128) default NULL, + `eventmemberstatus` tinyint(1) default NULL, + `eventwhencalled` tinyint(1) default NULL, + `reportholdtime` tinyint(1) default NULL, + `memberdelay` int(11) default NULL, + `weight` int(11) default NULL, + `timeoutrestart` tinyint(1) default NULL, + `periodic_announce` varchar(50) default NULL, + `periodic_announce_frequency` int(11) default NULL, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `sip_users` +-- + +DROP TABLE IF EXISTS `sip_users`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +CREATE TABLE `sip_users` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(80) NOT NULL default '', + `host` varchar(31) NOT NULL default '', + `nat` varchar(5) NOT NULL default 'no', + `type` enum('user','peer','friend') NOT NULL default 'friend', + `accountcode` varchar(20) default NULL, + `amaflags` varchar(13) default NULL, + `callgroup` varchar(10) default NULL, + `callerid` varchar(80) default NULL, + `cancallforward` char(3) default 'yes', + `canreinvite` char(3) default 'yes', + `context` varchar(80) default NULL, + `defaultip` varchar(15) default NULL, + `dtmfmode` varchar(7) default NULL, + `fromuser` varchar(80) default NULL, + `fromdomain` varchar(80) default NULL, + `insecure` varchar(4) default NULL, + `language` char(2) default NULL, + `mailbox` varchar(50) default NULL, + `md5secret` varchar(80) default NULL, + `deny` varchar(95) default NULL, + `permit` varchar(95) default NULL, + `mask` varchar(95) default NULL, + `musiconhold` varchar(100) default NULL, + `pickupgroup` varchar(10) default NULL, + `qualify` char(3) default NULL, + `regexten` varchar(80) default NULL, + `restrictcid` char(3) default NULL, + `rtptimeout` char(3) default NULL, + `rtpholdtimeout` char(3) default NULL, + `secret` varchar(80) default NULL, + `setvar` varchar(100) default NULL, + `disallow` varchar(100) default 'all', + `allow` varchar(100) default 'g729;ilbc;gsm;ulaw;alaw', + `fullcontact` varchar(80) NOT NULL default '', + `ipaddr` varchar(15) NOT NULL default '', + `port` smallint(5) unsigned NOT NULL default '0', + `regserver` varchar(100) default NULL, + `regseconds` int(11) NOT NULL default '0', + `username` varchar(80) NOT NULL default '', + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`), + KEY `name_2` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `voicemail_users` +-- + +DROP TABLE IF EXISTS `voicemail_users`; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +CREATE TABLE `voicemail_users` ( + `uniqueid` int(11) NOT NULL auto_increment, + `customer_id` varchar(11) NOT NULL default '0', + `context` varchar(50) NOT NULL default '', + `mailbox` varchar(11) NOT NULL default '0', + `password` varchar(5) NOT NULL default '0', + `fullname` varchar(150) NOT NULL default '', + `email` varchar(50) NOT NULL default '', + `pager` varchar(50) NOT NULL default '', + `tz` varchar(10) NOT NULL default 'central', + `attach` varchar(4) NOT NULL default 'yes', + `saycid` varchar(4) NOT NULL default 'yes', + `dialout` varchar(10) NOT NULL default '', + `callback` varchar(10) NOT NULL default '', + `review` varchar(4) NOT NULL default 'no', + `operator` varchar(4) NOT NULL default 'no', + `envelope` varchar(4) NOT NULL default 'no', + `sayduration` varchar(4) NOT NULL default 'no', + `saydurationm` tinyint(4) NOT NULL default '1', + `sendvoicemail` varchar(4) NOT NULL default 'no', + `delete` varchar(4) NOT NULL default 'no', + `nextaftercmd` varchar(4) NOT NULL default 'yes', + `forcename` varchar(4) NOT NULL default 'no', + `forcegreetings` varchar(4) NOT NULL default 'no', + `hidefromdir` varchar(4) NOT NULL default 'yes', + `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, + PRIMARY KEY (`uniqueid`), + KEY `mailbox_context` (`mailbox`,`context`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; +SET character_set_client = @saved_cs_client; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;