You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/schema/dump.db

7212 lines
481 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*!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 */;
/*!40000 DROP DATABASE IF EXISTS `accounting`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `accounting` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `accounting`;
DROP TABLE IF EXISTS `acc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc` WRITE;
/*!40000 ALTER TABLE `acc` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_backup`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_backup` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_backup` WRITE;
/*!40000 ALTER TABLE `acc_backup` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_backup` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_cdi`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_cdi` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`callid` varchar(255) NOT NULL,
`mark` decimal(13,3) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `acc_cdi_callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_cdi` WRITE;
/*!40000 ALTER TABLE `acc_cdi` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_cdi` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_trash`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_trash` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_trash` WRITE;
/*!40000 ALTER TABLE `acc_trash` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_trash` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `cdr`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cdr` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`source_user_id` char(36) NOT NULL,
`source_provider_id` varchar(255) NOT NULL,
`source_external_subscriber_id` varchar(255) DEFAULT NULL,
`source_external_contract_id` varchar(255) DEFAULT NULL,
`source_account_id` int(11) unsigned NOT NULL DEFAULT '0',
`source_user` varchar(255) NOT NULL,
`source_domain` varchar(255) NOT NULL,
`source_cli` varchar(64) NOT NULL,
`source_clir` tinyint(1) NOT NULL DEFAULT '0',
`source_ip` varchar(64) NOT NULL,
`source_gpp0` varchar(255) DEFAULT NULL,
`source_gpp1` varchar(255) DEFAULT NULL,
`source_gpp2` varchar(255) DEFAULT NULL,
`source_gpp3` varchar(255) DEFAULT NULL,
`source_gpp4` varchar(255) DEFAULT NULL,
`source_gpp5` varchar(255) DEFAULT NULL,
`source_gpp6` varchar(255) DEFAULT NULL,
`source_gpp7` varchar(255) DEFAULT NULL,
`source_gpp8` varchar(255) DEFAULT NULL,
`source_gpp9` varchar(255) DEFAULT NULL,
`destination_user_id` char(36) NOT NULL,
`destination_provider_id` varchar(255) NOT NULL,
`destination_external_subscriber_id` varchar(255) DEFAULT NULL,
`destination_external_contract_id` varchar(255) DEFAULT NULL,
`destination_account_id` int(11) unsigned NOT NULL DEFAULT '0',
`destination_user` varchar(255) NOT NULL,
`destination_domain` varchar(255) NOT NULL,
`destination_user_dialed` varchar(255) NOT NULL,
`destination_user_in` varchar(255) NOT NULL,
`destination_domain_in` varchar(255) NOT NULL,
`destination_gpp0` varchar(255) DEFAULT NULL,
`destination_gpp1` varchar(255) DEFAULT NULL,
`destination_gpp2` varchar(255) DEFAULT NULL,
`destination_gpp3` varchar(255) DEFAULT NULL,
`destination_gpp4` varchar(255) DEFAULT NULL,
`destination_gpp5` varchar(255) DEFAULT NULL,
`destination_gpp6` varchar(255) DEFAULT NULL,
`destination_gpp7` varchar(255) DEFAULT NULL,
`destination_gpp8` varchar(255) DEFAULT NULL,
`destination_gpp9` varchar(255) DEFAULT NULL,
`peer_auth_user` varchar(255) DEFAULT NULL,
`peer_auth_realm` varchar(255) DEFAULT NULL,
`call_type` enum('call','cfu','cft','cfb','cfna') NOT NULL DEFAULT 'call',
`call_status` enum('ok','busy','noanswer','cancel','offline','timeout','other') NOT NULL DEFAULT 'ok',
`call_code` char(3) NOT NULL,
`init_time` decimal(13,3) NOT NULL,
`start_time` decimal(13,3) NOT NULL,
`duration` decimal(13,3) NOT NULL,
`call_id` varchar(255) NOT NULL,
`source_carrier_cost` decimal(14,6) DEFAULT NULL,
`source_reseller_cost` decimal(14,6) DEFAULT NULL,
`source_customer_cost` decimal(14,6) DEFAULT NULL,
`source_carrier_free_time` int(10) unsigned DEFAULT NULL,
`source_reseller_free_time` int(10) unsigned DEFAULT NULL,
`source_customer_free_time` int(10) unsigned DEFAULT NULL,
`source_carrier_billing_fee_id` int(11) unsigned DEFAULT NULL,
`source_reseller_billing_fee_id` int(11) unsigned DEFAULT NULL,
`source_customer_billing_fee_id` int(11) unsigned DEFAULT NULL,
`source_carrier_billing_zone_id` int(11) unsigned DEFAULT NULL,
`source_reseller_billing_zone_id` int(11) unsigned DEFAULT NULL,
`source_customer_billing_zone_id` int(11) unsigned DEFAULT NULL,
`destination_carrier_cost` decimal(14,6) DEFAULT NULL,
`destination_reseller_cost` decimal(14,6) DEFAULT NULL,
`destination_customer_cost` decimal(14,6) DEFAULT NULL,
`destination_carrier_free_time` int(10) unsigned DEFAULT NULL,
`destination_reseller_free_time` int(10) unsigned DEFAULT NULL,
`destination_customer_free_time` int(10) unsigned DEFAULT NULL,
`destination_carrier_billing_fee_id` int(11) unsigned DEFAULT NULL,
`destination_reseller_billing_fee_id` int(11) unsigned DEFAULT NULL,
`destination_customer_billing_fee_id` int(11) unsigned DEFAULT NULL,
`destination_carrier_billing_zone_id` int(11) unsigned DEFAULT NULL,
`destination_reseller_billing_zone_id` int(11) unsigned DEFAULT NULL,
`destination_customer_billing_zone_id` int(11) unsigned DEFAULT NULL,
`frag_carrier_onpeak` tinyint(1) DEFAULT NULL,
`frag_reseller_onpeak` tinyint(1) DEFAULT NULL,
`frag_customer_onpeak` tinyint(1) DEFAULT NULL,
`is_fragmented` tinyint(1) DEFAULT NULL,
`split` tinyint(1) unsigned NOT NULL DEFAULT '0',
`rated_at` datetime DEFAULT NULL,
`rating_status` enum('unrated','ok','failed') NOT NULL DEFAULT 'unrated',
`exported_at` datetime DEFAULT NULL,
`export_status` enum('unexported','ok','failed') NOT NULL DEFAULT 'unexported',
PRIMARY KEY (`id`),
KEY `suid` (`source_user_id`),
KEY `duid` (`destination_user_id`),
KEY `suri` (`source_user`,`source_domain`,`source_cli`),
KEY `duri` (`destination_user`,`destination_domain`),
KEY `sprov` (`source_provider_id`),
KEY `dprov` (`destination_provider_id`),
KEY `kcid` (`call_id`),
KEY `rstatus` (`rating_status`),
KEY `estatus` (`export_status`),
KEY `stime_idx` (`start_time`),
KEY `said_stime_idx` (`source_account_id`,`start_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `cdr` WRITE;
/*!40000 ALTER TABLE `cdr` DISABLE KEYS */;
/*!40000 ALTER TABLE `cdr` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `events`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `events` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(255) NOT NULL,
`subscriber_id` int(11) unsigned NOT NULL,
`reseller_id` int(11) unsigned NOT NULL DEFAULT '1',
`old_status` varchar(255) DEFAULT NULL,
`new_status` varchar(255) NOT NULL,
`timestamp` decimal(13,3) NOT NULL,
`export_status` enum('unexported','ok','filtered','failed') NOT NULL DEFAULT 'unexported',
`exported_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `subscriber_idx` (`subscriber_id`),
KEY `exstatus_idx` (`export_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `events` WRITE;
/*!40000 ALTER TABLE `events` DISABLE KEYS */;
/*!40000 ALTER TABLE `events` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mark`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mark` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`collector` varchar(255) NOT NULL,
`acc_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mark` WRITE;
/*!40000 ALTER TABLE `mark` DISABLE KEYS */;
/*!40000 ALTER TABLE `mark` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `prepaid_costs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prepaid_costs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`call_id` varchar(255) NOT NULL,
`cost` double NOT NULL,
`free_time_used` int(10) unsigned NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `prepaid_costs` WRITE;
/*!40000 ALTER TABLE `prepaid_costs` DISABLE KEYS */;
/*!40000 ALTER TABLE `prepaid_costs` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `billing`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `billing` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `billing`;
DROP TABLE IF EXISTS `admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admins` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`login` varchar(31) NOT NULL,
`md5pass` char(32) DEFAULT NULL,
`is_master` tinyint(1) NOT NULL DEFAULT '0',
`is_superuser` tinyint(1) NOT NULL DEFAULT '0',
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`read_only` tinyint(1) NOT NULL DEFAULT '0',
`show_passwords` tinyint(1) NOT NULL DEFAULT '1',
`call_data` tinyint(1) NOT NULL DEFAULT '0',
`billing_data` tinyint(1) NOT NULL DEFAULT '1',
`lawful_intercept` tinyint(1) NOT NULL DEFAULT '0',
`ssl_client_m_serial` bigint(20) unsigned DEFAULT NULL,
`ssl_client_certificate` text,
PRIMARY KEY (`id`),
UNIQUE KEY `login_idx` (`login`),
UNIQUE KEY `ssl_client_m_serial_UNIQUE` (`ssl_client_m_serial`),
KEY `resellerid_idx` (`reseller_id`),
CONSTRAINT `a_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `admins` WRITE;
/*!40000 ALTER TABLE `admins` DISABLE KEYS */;
INSERT INTO `admins` VALUES (1,1,'administrator','200ceb26807d6bf99fd6f4f0d1ca54d4',1,1,1,0,1,1,1,1,NULL,NULL);
/*!40000 ALTER TABLE `admins` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_fees`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_fees` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`billing_profile_id` int(11) unsigned NOT NULL,
`billing_zone_id` int(11) unsigned DEFAULT NULL,
`source` varchar(255) NOT NULL DEFAULT '.',
`destination` varchar(255) NOT NULL,
`direction` enum('in','out') NOT NULL DEFAULT 'out',
`type` enum('call','sms') NOT NULL DEFAULT 'call',
`onpeak_init_rate` double NOT NULL DEFAULT '0',
`onpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`onpeak_follow_rate` double NOT NULL DEFAULT '0',
`onpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_init_rate` double NOT NULL DEFAULT '0',
`offpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_follow_rate` double NOT NULL DEFAULT '0',
`offpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`use_free_time` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `billing_fees_unique` (`billing_profile_id`,`source`,`destination`,`direction`,`type`),
KEY `profileid_idx` (`billing_profile_id`),
KEY `zoneid_idx` (`billing_zone_id`),
KEY `profsrcdesdirtype_idx` (`billing_profile_id`,`source`,`destination`,`direction`,`type`),
KEY `showfeesc_idx` (`billing_profile_id`,`billing_zone_id`,`destination`),
CONSTRAINT `b_f_bilprofid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `b_f_zoneid_ref` FOREIGN KEY (`billing_zone_id`) REFERENCES `billing_zones` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_fees` WRITE;
/*!40000 ALTER TABLE `billing_fees` DISABLE KEYS */;
INSERT INTO `billing_fees` VALUES (1,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0);
/*!40000 ALTER TABLE `billing_fees` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER billing.bill_fees_crepl_trig AFTER INSERT ON billing_fees
FOR EACH ROW BEGIN
DECLARE my_bzh_id int UNSIGNED;
SELECT id INTO my_bzh_id FROM billing_zones_history WHERE bz_id <=> NEW.billing_zone_id;
INSERT INTO billing_fees_history
VALUES(NULL, NEW.id, NEW.billing_profile_id, my_bzh_id,
NEW.source, NEW.destination, NEW.direction,
NEW.type, NEW.onpeak_init_rate, NEW.onpeak_init_interval, NEW.onpeak_follow_rate,
NEW.onpeak_follow_interval, NEW.offpeak_init_rate, NEW.offpeak_init_interval,
NEW.offpeak_follow_rate, NEW.offpeak_follow_interval, NEW.use_free_time);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER billing.bill_fees_urepl_trig AFTER UPDATE ON billing_fees
FOR EACH ROW BEGIN
DECLARE my_bzh_id int UNSIGNED;
SELECT id INTO my_bzh_id FROM billing_zones_history WHERE bz_id <=> NEW.billing_zone_id;
UPDATE billing_fees_history
SET bf_id = NEW.id, billing_profile_id = NEW.billing_profile_id,
billing_zones_history_id = my_bzh_id,
source = NEW.source, destination = NEW.destination, direction = NEW.direction,
type = NEW.type,
onpeak_init_rate = NEW.onpeak_init_rate, onpeak_init_interval = NEW.onpeak_init_interval,
onpeak_follow_rate = NEW.onpeak_follow_rate, onpeak_follow_interval = NEW.onpeak_follow_interval,
offpeak_init_rate = NEW.offpeak_init_rate, offpeak_init_interval = NEW.offpeak_init_interval,
offpeak_follow_rate = NEW.offpeak_follow_rate, offpeak_follow_interval = NEW.offpeak_follow_interval,
use_free_time = NEW.use_free_time
WHERE bf_id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `billing_fees_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_fees_history` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`bf_id` int(11) unsigned DEFAULT NULL,
`billing_profile_id` int(11) unsigned NOT NULL,
`billing_zones_history_id` int(11) unsigned DEFAULT NULL,
`source` varchar(255) NOT NULL DEFAULT '.',
`destination` varchar(255) NOT NULL,
`direction` enum('in','out') NOT NULL DEFAULT 'out',
`type` enum('call','sms') NOT NULL DEFAULT 'call',
`onpeak_init_rate` double NOT NULL DEFAULT '0',
`onpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`onpeak_follow_rate` double NOT NULL DEFAULT '0',
`onpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_init_rate` double NOT NULL DEFAULT '0',
`offpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_follow_rate` double NOT NULL DEFAULT '0',
`offpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`use_free_time` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `bfid_idx` (`bf_id`),
KEY `zonehid_idx` (`billing_zones_history_id`),
KEY `bfhdir_idx` (`direction`),
KEY `bfhsems_idx` (`billing_profile_id`,`bf_id`,`type`,`destination`) USING BTREE,
CONSTRAINT `b_f_h_bfid_ref` FOREIGN KEY (`bf_id`) REFERENCES `billing_fees` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION,
CONSTRAINT `b_f_h_bzhid_ref` FOREIGN KEY (`billing_zones_history_id`) REFERENCES `billing_zones_history` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_fees_history` WRITE;
/*!40000 ALTER TABLE `billing_fees_history` DISABLE KEYS */;
INSERT INTO `billing_fees_history` VALUES (1,NULL,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0),(1000,1,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0);
/*!40000 ALTER TABLE `billing_fees_history` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_fees_raw`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_fees_raw` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`billing_profile_id` int(11) unsigned NOT NULL,
`billing_zone_id` int(11) unsigned DEFAULT NULL,
`source` varchar(255) NOT NULL DEFAULT '.',
`destination` varchar(255) NOT NULL,
`direction` enum('in','out') NOT NULL DEFAULT 'out',
`type` enum('call','sms') NOT NULL DEFAULT 'call',
`onpeak_init_rate` double NOT NULL DEFAULT '0',
`onpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`onpeak_follow_rate` double NOT NULL DEFAULT '0',
`onpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_init_rate` double NOT NULL DEFAULT '0',
`offpeak_init_interval` int(5) unsigned NOT NULL DEFAULT '0',
`offpeak_follow_rate` double NOT NULL DEFAULT '0',
`offpeak_follow_interval` int(5) unsigned NOT NULL DEFAULT '0',
`use_free_time` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `profileid_idx` (`billing_profile_id`),
KEY `zoneid_idx` (`billing_zone_id`),
KEY `profsrcdesdirtype_idx` (`billing_profile_id`,`source`,`destination`,`direction`,`type`),
KEY `showfeesc_idx` (`billing_profile_id`,`billing_zone_id`,`destination`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_fees_raw` WRITE;
/*!40000 ALTER TABLE `billing_fees_raw` DISABLE KEYS */;
INSERT INTO `billing_fees_raw` VALUES (1,1,1,'.','.*','out','call',0,600,0,600,0,600,0,600,0);
/*!40000 ALTER TABLE `billing_fees_raw` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_mappings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`start_date` datetime DEFAULT NULL,
`end_date` datetime DEFAULT NULL,
`billing_profile_id` int(11) unsigned DEFAULT NULL,
`contract_id` int(11) unsigned NOT NULL,
`product_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `profileid_idx` (`billing_profile_id`),
KEY `contractid_idx` (`contract_id`),
KEY `productid_idx` (`product_id`),
KEY `billing_mappings_start_date` (`start_date`),
CONSTRAINT `b_m_bilprofid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON UPDATE CASCADE,
CONSTRAINT `b_m_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `b_m_productid_ref` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_mappings` WRITE;
/*!40000 ALTER TABLE `billing_mappings` DISABLE KEYS */;
INSERT INTO `billing_mappings` VALUES (1,NULL,NULL,1,1,3);
/*!40000 ALTER TABLE `billing_mappings` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_peaktime_special`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_peaktime_special` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`billing_profile_id` int(11) unsigned NOT NULL,
`start` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `profileid_idx` (`billing_profile_id`),
CONSTRAINT `b_p_s_bilprofid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_peaktime_special` WRITE;
/*!40000 ALTER TABLE `billing_peaktime_special` DISABLE KEYS */;
/*!40000 ALTER TABLE `billing_peaktime_special` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_peaktime_weekdays`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_peaktime_weekdays` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`billing_profile_id` int(11) unsigned NOT NULL,
`weekday` tinyint(3) unsigned NOT NULL,
`start` time DEFAULT NULL,
`end` time DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `profileid_idx` (`billing_profile_id`),
CONSTRAINT `b_p_w_bilprofid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_peaktime_weekdays` WRITE;
/*!40000 ALTER TABLE `billing_peaktime_weekdays` DISABLE KEYS */;
/*!40000 ALTER TABLE `billing_peaktime_weekdays` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_profiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_profiles` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`handle` varchar(63) NOT NULL,
`name` varchar(31) NOT NULL,
`prepaid` tinyint(1) NOT NULL DEFAULT '0',
`interval_charge` double NOT NULL DEFAULT '0',
`interval_free_time` int(5) NOT NULL DEFAULT '0',
`interval_free_cash` double NOT NULL DEFAULT '0',
`interval_unit` enum('week','month') NOT NULL DEFAULT 'month',
`interval_count` tinyint(3) unsigned NOT NULL DEFAULT '1',
`fraud_interval_limit` int(11) unsigned DEFAULT NULL,
`fraud_interval_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_interval_notify` varchar(255) DEFAULT NULL,
`fraud_daily_limit` int(11) unsigned DEFAULT NULL,
`fraud_daily_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_daily_notify` varchar(255) DEFAULT NULL,
`fraud_use_reseller_rates` tinyint(3) unsigned DEFAULT '0',
`currency` varchar(31) DEFAULT NULL,
`status` enum('active','terminated') NOT NULL DEFAULT 'active',
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`terminate_timestamp` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `resnam_idx` (`reseller_id`,`name`),
UNIQUE KEY `reshand_idx` (`reseller_id`,`handle`),
KEY `resellerid_idx` (`reseller_id`),
CONSTRAINT `b_p_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_profiles` WRITE;
/*!40000 ALTER TABLE `billing_profiles` DISABLE KEYS */;
INSERT INTO `billing_profiles` VALUES (1,1,'default','Default Billing Profile',0,0,0,0,'month',1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'active','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL);
/*!40000 ALTER TABLE `billing_profiles` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `billing_zones`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_zones` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`billing_profile_id` int(11) unsigned NOT NULL,
`zone` varchar(127) NOT NULL,
`detail` varchar(127) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `profnamdes_idx` (`billing_profile_id`,`zone`,`detail`),
CONSTRAINT `b_z_profileid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_zones` WRITE;
/*!40000 ALTER TABLE `billing_zones` DISABLE KEYS */;
INSERT INTO `billing_zones` VALUES (1,1,'Free Default Zone','All Destinations');
/*!40000 ALTER TABLE `billing_zones` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER billing.bill_zones_crepl_trig AFTER INSERT ON billing_zones
FOR EACH ROW BEGIN
INSERT INTO billing_zones_history
VALUES(NULL, NEW.id, NEW.billing_profile_id, NEW.zone, NEW.detail);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER billing.bill_zones_urepl_trig AFTER UPDATE ON billing_zones
FOR EACH ROW BEGIN
UPDATE billing_zones_history
SET bz_id = NEW.id, billing_profile_id = NEW.billing_profile_id,
zone = NEW.zone, detail = NEW.detail
WHERE bz_id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `billing_zones_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billing_zones_history` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`bz_id` int(11) unsigned DEFAULT NULL,
`billing_profile_id` int(11) unsigned NOT NULL,
`zone` varchar(127) NOT NULL,
`detail` varchar(127) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `bzid_idx` (`bz_id`),
CONSTRAINT `b_z_h_bzid_ref` FOREIGN KEY (`bz_id`) REFERENCES `billing_zones` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `billing_zones_history` WRITE;
/*!40000 ALTER TABLE `billing_zones_history` DISABLE KEYS */;
INSERT INTO `billing_zones_history` VALUES (1,1,1,'Free Default Zone','All Destinations');
/*!40000 ALTER TABLE `billing_zones_history` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contacts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`gender` enum('male','female') DEFAULT NULL,
`firstname` varchar(127) DEFAULT NULL,
`lastname` varchar(127) DEFAULT NULL,
`comregnum` varchar(31) DEFAULT NULL,
`company` varchar(127) DEFAULT NULL,
`street` varchar(127) DEFAULT NULL,
`postcode` varchar(16) DEFAULT NULL,
`city` varchar(127) DEFAULT NULL,
`country` char(2) DEFAULT NULL,
`phonenumber` varchar(31) DEFAULT NULL,
`mobilenumber` varchar(31) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`newsletter` tinyint(1) NOT NULL DEFAULT '0',
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`faxnumber` varchar(31) DEFAULT NULL,
`iban` varchar(34) DEFAULT NULL,
`bic` varchar(11) DEFAULT NULL,
`vatnum` varchar(127) DEFAULT NULL,
`bankname` varchar(255) DEFAULT NULL,
`gpp0` varchar(255) DEFAULT NULL,
`gpp1` varchar(255) DEFAULT NULL,
`gpp2` varchar(255) DEFAULT NULL,
`gpp3` varchar(255) DEFAULT NULL,
`gpp4` varchar(255) DEFAULT NULL,
`gpp5` varchar(255) DEFAULT NULL,
`gpp6` varchar(255) DEFAULT NULL,
`gpp7` varchar(255) DEFAULT NULL,
`gpp8` varchar(255) DEFAULT NULL,
`gpp9` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ct_resellerid_ref` (`reseller_id`),
CONSTRAINT `ct_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
INSERT INTO `contacts` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-customer@default.invalid',0,'2015-06-28 23:09:25','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-system@default.invalid',0,'2015-06-28 23:09:27','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `contacts` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contract_balances`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contract_balances` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`cash_balance` double DEFAULT NULL,
`cash_balance_interval` double NOT NULL DEFAULT '0',
`free_time_balance` int(11) DEFAULT NULL,
`free_time_balance_interval` int(11) NOT NULL DEFAULT '0',
`start` datetime NOT NULL,
`end` datetime NOT NULL,
`invoice_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `balance_interval` (`contract_id`,`start`,`end`),
KEY `invoiceid_idx` (`invoice_id`),
CONSTRAINT `cb_invoiceid_ref` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `c_b_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contract_balances` WRITE;
/*!40000 ALTER TABLE `contract_balances` DISABLE KEYS */;
INSERT INTO `contract_balances` VALUES (1,1,0,0,0,0,'2014-01-01 00:00:00','2014-01-31 23:59:59',NULL);
/*!40000 ALTER TABLE `contract_balances` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contract_credits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contract_credits` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`balance_id` int(11) unsigned NOT NULL,
`state` enum('init','transact','charged','failed','success') NOT NULL DEFAULT 'init',
`amount` double DEFAULT NULL,
`reason` text,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `balanceid_idx` (`balance_id`),
CONSTRAINT `cc_balanceid_ref` FOREIGN KEY (`balance_id`) REFERENCES `contract_balances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contract_credits` WRITE;
/*!40000 ALTER TABLE `contract_credits` DISABLE KEYS */;
/*!40000 ALTER TABLE `contract_credits` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contract_fraud_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contract_fraud_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`fraud_interval_limit` int(11) unsigned DEFAULT NULL,
`fraud_interval_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_interval_notify` varchar(255) DEFAULT NULL,
`fraud_daily_limit` int(11) unsigned DEFAULT NULL,
`fraud_daily_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_daily_notify` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `contract_id` (`contract_id`),
CONSTRAINT `contract_id_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contract_fraud_preferences` WRITE;
/*!40000 ALTER TABLE `contract_fraud_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `contract_fraud_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contract_registers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contract_registers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`actor` varchar(15) DEFAULT NULL,
`type` varchar(31) NOT NULL,
`data` text,
PRIMARY KEY (`id`),
KEY `contractid_idx` (`contract_id`),
CONSTRAINT `c_r_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contract_registers` WRITE;
/*!40000 ALTER TABLE `contract_registers` DISABLE KEYS */;
/*!40000 ALTER TABLE `contract_registers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contracts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contracts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` int(11) unsigned DEFAULT NULL,
`contact_id` int(11) unsigned DEFAULT NULL,
`order_id` int(11) unsigned DEFAULT NULL,
`status` enum('pending','active','locked','terminated') NOT NULL DEFAULT 'active',
`external_id` varchar(255) DEFAULT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`activate_timestamp` timestamp NULL DEFAULT NULL,
`terminate_timestamp` timestamp NULL DEFAULT NULL,
`max_subscribers` int(6) unsigned DEFAULT NULL,
`send_invoice` tinyint(1) NOT NULL DEFAULT '1',
`subscriber_email_template_id` int(11) unsigned DEFAULT NULL,
`passreset_email_template_id` int(11) unsigned DEFAULT NULL,
`invoice_email_template_id` int(11) unsigned DEFAULT NULL,
`invoice_template_id` int(11) unsigned DEFAULT NULL,
`vat_rate` tinyint(3) unsigned NOT NULL DEFAULT '0',
`add_vat` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `contactid_idx` (`contact_id`),
KEY `customerid_idx` (`customer_id`),
KEY `orderid_idx` (`order_id`),
KEY `externalid_idx` (`external_id`),
CONSTRAINT `co_contactid_ref` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON UPDATE CASCADE,
CONSTRAINT `co_orderid_ref` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `c_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contracts` WRITE;
/*!40000 ALTER TABLE `contracts` DISABLE KEYS */;
INSERT INTO `contracts` VALUES (1,NULL,2,NULL,'active',NULL,'2015-06-28 23:09:27','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,1,NULL,NULL,NULL,NULL,0,0);
/*!40000 ALTER TABLE `contracts` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `credit_payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `credit_payments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`credit_id` int(11) unsigned NOT NULL,
`payment_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `creditid_idx` (`credit_id`),
KEY `paymentid_idx` (`payment_id`),
CONSTRAINT `cp_creditid_ref` FOREIGN KEY (`credit_id`) REFERENCES `contract_credits` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cp_paymentid_ref` FOREIGN KEY (`payment_id`) REFERENCES `payments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `credit_payments` WRITE;
/*!40000 ALTER TABLE `credit_payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `credit_payments` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `customer_registers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_registers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` int(11) unsigned NOT NULL,
`actor` varchar(15) DEFAULT NULL,
`type` varchar(31) NOT NULL,
`data` text,
PRIMARY KEY (`id`),
KEY `customerid_idx` (`customer_id`),
CONSTRAINT `c_r_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `customer_registers` WRITE;
/*!40000 ALTER TABLE `customer_registers` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_registers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `customers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`shopuser` varchar(31) DEFAULT NULL,
`shoppass` varchar(31) DEFAULT NULL,
`business` tinyint(1) NOT NULL DEFAULT '0',
`contact_id` int(11) unsigned DEFAULT NULL,
`tech_contact_id` int(11) unsigned DEFAULT NULL,
`comm_contact_id` int(11) unsigned DEFAULT NULL,
`external_id` varchar(255) DEFAULT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `reseller_id` (`reseller_id`,`shopuser`),
KEY `resellerid_idx` (`reseller_id`),
KEY `contactid_idx` (`contact_id`),
KEY `commcontactid_idx` (`comm_contact_id`),
KEY `techcontact_idx` (`tech_contact_id`),
KEY `externalid_idx` (`external_id`),
CONSTRAINT `cu_commcontactid_ref` FOREIGN KEY (`comm_contact_id`) REFERENCES `contacts` (`id`) ON UPDATE CASCADE,
CONSTRAINT `cu_contactid_ref` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON UPDATE CASCADE,
CONSTRAINT `cu_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON UPDATE CASCADE,
CONSTRAINT `cu_techcontact_ref` FOREIGN KEY (`tech_contact_id`) REFERENCES `contacts` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `customers` WRITE;
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `domain_resellers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `domain_resellers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`domain_id` int(11) unsigned NOT NULL,
`reseller_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `domainid_idx` (`domain_id`),
KEY `resellerid_idx` (`reseller_id`),
CONSTRAINT `dr_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `domains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `dr_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `domain_resellers` WRITE;
/*!40000 ALTER TABLE `domain_resellers` DISABLE KEYS */;
/*!40000 ALTER TABLE `domain_resellers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `domains`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `domains` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`domain` varchar(127) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `domain_idx` (`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `domains` WRITE;
/*!40000 ALTER TABLE `domains` DISABLE KEYS */;
/*!40000 ALTER TABLE `domains` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `email_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_templates` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`name` varchar(255) NOT NULL,
`from_email` varchar(255) NOT NULL,
`subject` varchar(255) NOT NULL,
`body` mediumtext NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `reseller_name_idx` (`reseller_id`,`name`),
CONSTRAINT `fk_email_reseller` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `email_templates` WRITE;
/*!40000 ALTER TABLE `email_templates` DISABLE KEYS */;
INSERT INTO `email_templates` VALUES (1,NULL,'subscriber_default_email','default@sipwise.com','Subscriber created','Dear Customer,\n\nA new subscriber [% subscriber %] has been created for you.\n\nYour faithful Sipwise system\n\n-- \nThis is an automatically generated message. Do not reply.'),(2,NULL,'passreset_default_email','default@sipwise.com','Password reset email','Dear Customer,\n\nPlease go to [% url %] to set your password and log into your self-care interface.\n\nYour faithful Sipwise system\n\n-- \nThis is an automatically generated message. Do not reply.'),(3,NULL,'invoice_default_email','default@sipwise.com','Invoice #[%invoice.serial%] from [%invoice.period_start_obj.ymd%] to [%invoice.period_end_obj.ymd%]','Dear Customer,\n\nPlease find your invoice #[%invoice.serial%] for [%invoice.period_start_obj.month_name%], [%invoice.period_start_obj.year%] in attachment of this letter.\n\nYour faithful Sipwise system\n\n--\nThis is an automatically generated message. Do not reply.');
/*!40000 ALTER TABLE `email_templates` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `invoice_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_templates` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`type` enum('svg','html') NOT NULL DEFAULT 'svg',
`data` mediumblob,
PRIMARY KEY (`id`),
KEY `invoice_templates_ibfk_1` (`reseller_id`),
CONSTRAINT `invoice_templates_ibfk_1` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `invoice_templates` WRITE;
/*!40000 ALTER TABLE `invoice_templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoice_templates` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `invoices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoices` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`serial` varchar(32) NOT NULL,
`period_start` datetime NOT NULL,
`period_end` datetime NOT NULL,
`amount_net` double NOT NULL DEFAULT '0',
`amount_vat` double NOT NULL DEFAULT '0',
`amount_total` double NOT NULL DEFAULT '0',
`data` mediumblob,
`sent_date` datetime DEFAULT NULL,
`generator` enum('auto','web') DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `serial_idx` (`serial`),
KEY `invoice_contract_fk` (`contract_id`),
CONSTRAINT `invoice_contract_fk` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `invoices` WRITE;
/*!40000 ALTER TABLE `invoices` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoices` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `journals`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `journals` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`operation` enum('create','update','delete') NOT NULL DEFAULT 'create',
`resource_name` varchar(64) NOT NULL,
`resource_id` int(11) unsigned NOT NULL,
`timestamp` decimal(13,3) NOT NULL,
`username` varchar(127) DEFAULT NULL,
`content_format` enum('storable','json','json_deflate','sereal') NOT NULL DEFAULT 'json',
`content` longblob,
PRIMARY KEY (`id`),
KEY `res_idx` (`resource_name`,`resource_id`),
KEY `ts_idx` (`timestamp`),
KEY `op_idx` (`operation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `journals` WRITE;
/*!40000 ALTER TABLE `journals` DISABLE KEYS */;
/*!40000 ALTER TABLE `journals` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `lnp_numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lnp_numbers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`number` varchar(31) NOT NULL,
`lnp_provider_id` int(11) unsigned NOT NULL,
`start` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `l_n_lnpproid_ref` (`lnp_provider_id`),
CONSTRAINT `l_n_lnpproid_ref` FOREIGN KEY (`lnp_provider_id`) REFERENCES `lnp_providers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `lnp_numbers` WRITE;
/*!40000 ALTER TABLE `lnp_numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `lnp_numbers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `lnp_providers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lnp_providers` (
`id` int(11) unsigned NOT NULL,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `lnp_providers` WRITE;
/*!40000 ALTER TABLE `lnp_providers` DISABLE KEYS */;
/*!40000 ALTER TABLE `lnp_providers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `ncos_levels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ncos_levels` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`level` varchar(31) NOT NULL,
`mode` enum('blacklist','whitelist') NOT NULL DEFAULT 'blacklist',
`local_ac` tinyint(1) NOT NULL DEFAULT '0',
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `reslev_idx` (`reseller_id`,`level`),
CONSTRAINT `c_l_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `ncos_levels` WRITE;
/*!40000 ALTER TABLE `ncos_levels` DISABLE KEYS */;
/*!40000 ALTER TABLE `ncos_levels` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `ncos_lnp_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ncos_lnp_list` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ncos_level_id` int(11) unsigned NOT NULL,
`lnp_provider_id` int(11) unsigned NOT NULL,
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `levpro_idx` (`ncos_level_id`,`lnp_provider_id`),
KEY `c_l_l_lnpproid_ref` (`lnp_provider_id`),
CONSTRAINT `c_l_l_ncoslevid_ref` FOREIGN KEY (`ncos_level_id`) REFERENCES `ncos_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `c_l_l_lnpproid_ref` FOREIGN KEY (`lnp_provider_id`) REFERENCES `lnp_providers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `ncos_lnp_list` WRITE;
/*!40000 ALTER TABLE `ncos_lnp_list` DISABLE KEYS */;
/*!40000 ALTER TABLE `ncos_lnp_list` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `ncos_pattern_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ncos_pattern_list` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ncos_level_id` int(11) unsigned NOT NULL,
`pattern` varchar(255) NOT NULL,
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `levpat_idx` (`ncos_level_id`,`pattern`),
CONSTRAINT `c_p_l_ncoslevid_ref` FOREIGN KEY (`ncos_level_id`) REFERENCES `ncos_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `ncos_pattern_list` WRITE;
/*!40000 ALTER TABLE `ncos_pattern_list` DISABLE KEYS */;
/*!40000 ALTER TABLE `ncos_pattern_list` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `order_payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_payments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(11) unsigned NOT NULL,
`payment_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `orderid_idx` (`order_id`),
KEY `paymentid_idx` (`payment_id`),
CONSTRAINT `op_orderid_ref` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `op_paymentid_ref` FOREIGN KEY (`payment_id`) REFERENCES `payments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `order_payments` WRITE;
/*!40000 ALTER TABLE `order_payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_payments` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`customer_id` int(11) unsigned DEFAULT NULL,
`delivery_contact_id` int(11) unsigned DEFAULT NULL,
`type` varchar(31) DEFAULT NULL,
`state` enum('init','transact','failed','success') NOT NULL DEFAULT 'init',
`value` int(11) DEFAULT NULL,
`shipping_costs` int(11) DEFAULT NULL,
`invoice_id` int(11) unsigned DEFAULT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`complete_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `customerid_idx` (`customer_id`),
KEY `resellerid_idx` (`reseller_id`),
KEY `contactid_idx` (`delivery_contact_id`),
KEY `invoiceid_idx` (`invoice_id`),
CONSTRAINT `o_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_contactid_ref` FOREIGN KEY (`delivery_contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_invoiceid_ref` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_resets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`uuid` char(36) NOT NULL,
`timestamp` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `uuid_idx` (`uuid`),
KEY `fk_pwd_reset_sub` (`subscriber_id`),
CONSTRAINT `fk_pwd_reset_sub` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`amount` int(11) DEFAULT NULL,
`type` varchar(31) DEFAULT NULL,
`state` enum('init','transact','failed','success') DEFAULT NULL,
`mpaytid` int(11) unsigned DEFAULT NULL,
`status` varchar(31) DEFAULT NULL,
`errno` int(11) DEFAULT NULL,
`returncode` varchar(63) DEFAULT NULL,
`externalstatus` text,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `state_idx` (`state`),
KEY `mpaytid_idx` (`mpaytid`),
KEY `status_idx` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `payments` WRITE;
/*!40000 ALTER TABLE `payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `payments` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `products`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`class` enum('sippeering','pstnpeering','reseller','sipaccount','pbxaccount') NOT NULL,
`handle` varchar(63) NOT NULL,
`name` varchar(127) NOT NULL,
`on_sale` tinyint(1) NOT NULL DEFAULT '0',
`price` double DEFAULT NULL,
`weight` mediumint(9) unsigned DEFAULT NULL,
`billing_profile_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `resnam_idx` (`reseller_id`,`name`),
UNIQUE KEY `reshand_idx` (`reseller_id`,`handle`),
KEY `resellerid_idx` (`reseller_id`),
KEY `profileid_idx` (`billing_profile_id`),
CONSTRAINT `p_bilprofid_ref` FOREIGN KEY (`billing_profile_id`) REFERENCES `billing_profiles` (`id`) ON UPDATE CASCADE,
CONSTRAINT `p_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` VALUES (1,NULL,'pstnpeering','PSTN_PEERING','PSTN Peering',1,NULL,NULL,NULL),(2,NULL,'sippeering','SIP_PEERING','SIP Peering',1,NULL,NULL,NULL),(3,NULL,'reseller','VOIP_RESELLER','VoIP Reseller',1,NULL,NULL,NULL),(4,NULL,'sipaccount','SIP_ACCOUNT','Basic SIP Account',1,NULL,NULL,NULL),(5,NULL,'pbxaccount','PBX_ACCOUNT','Cloud PBX Account',1,NULL,NULL,NULL);
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `reseller_brandings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reseller_brandings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL,
`css` mediumtext,
`logo` mediumblob,
`logo_image_type` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `reseller_idx` (`reseller_id`),
CONSTRAINT `branding_reseller_fk` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `reseller_brandings` WRITE;
/*!40000 ALTER TABLE `reseller_brandings` DISABLE KEYS */;
/*!40000 ALTER TABLE `reseller_brandings` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `resellers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resellers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`name` varchar(63) NOT NULL,
`status` enum('active','locked','terminated') NOT NULL DEFAULT 'active',
PRIMARY KEY (`id`),
UNIQUE KEY `contractid_idx` (`contract_id`),
UNIQUE KEY `name_idx` (`name`),
CONSTRAINT `r_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `resellers` WRITE;
/*!40000 ALTER TABLE `resellers` DISABLE KEYS */;
INSERT INTO `resellers` VALUES (1,1,'default','active');
/*!40000 ALTER TABLE `resellers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_intercept`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_intercept` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned DEFAULT NULL,
`LIID` int(11) unsigned DEFAULT NULL,
`number` varchar(63) DEFAULT NULL,
`cc_required` tinyint(1) NOT NULL DEFAULT '0',
`delivery_host` varchar(15) DEFAULT NULL,
`delivery_port` smallint(5) unsigned DEFAULT NULL,
`delivery_user` text,
`delivery_pass` text,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`uuid` varchar(255) DEFAULT NULL,
`sip_username` varchar(255) DEFAULT NULL,
`sip_domain` varchar(255) DEFAULT NULL,
`cc_delivery_host` varchar(64) DEFAULT NULL,
`cc_delivery_port` smallint(5) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `resellerid_idx` (`reseller_id`),
KEY `number_idx` (`number`),
KEY `deleted_idx` (`deleted`),
CONSTRAINT `vi_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_intercept` WRITE;
/*!40000 ALTER TABLE `voip_intercept` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_intercept` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_number_block_resellers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_number_block_resellers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`number_block_id` int(11) unsigned NOT NULL,
`reseller_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `numblockid_idx` (`number_block_id`),
KEY `resellerid_idx` (`reseller_id`),
CONSTRAINT `vnbr_numblockid_ref` FOREIGN KEY (`number_block_id`) REFERENCES `voip_number_blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `vnbr_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_number_block_resellers` WRITE;
/*!40000 ALTER TABLE `voip_number_block_resellers` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_number_block_resellers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_number_blocks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_number_blocks` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cc` int(4) unsigned NOT NULL,
`ac` varchar(7) NOT NULL,
`sn_prefix` varchar(31) NOT NULL,
`sn_length` tinyint(2) unsigned NOT NULL,
`allocable` tinyint(1) NOT NULL DEFAULT '0',
`authoritative` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `prefix_idx` (`cc`,`ac`,`sn_prefix`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_number_blocks` WRITE;
/*!40000 ALTER TABLE `voip_number_blocks` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_number_blocks` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_numbers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cc` int(4) unsigned NOT NULL,
`ac` varchar(7) NOT NULL,
`sn` varchar(31) NOT NULL,
`reseller_id` int(11) unsigned DEFAULT NULL,
`subscriber_id` int(11) unsigned DEFAULT NULL,
`status` enum('active','reserved','locked','deported') NOT NULL DEFAULT 'active',
`ported` tinyint(1) NOT NULL DEFAULT '0',
`list_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `number_idx` (`cc`,`ac`,`sn`),
KEY `listts_idx` (`list_timestamp`),
KEY `resellerid_idx` (`reseller_id`),
KEY `subscriberid_idx` (`subscriber_id`),
CONSTRAINT `v_n_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `v_n_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_numbers` WRITE;
/*!40000 ALTER TABLE `voip_numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_numbers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_subscribers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_subscribers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`uuid` char(36) NOT NULL,
`username` varchar(127) NOT NULL,
`domain_id` int(11) unsigned NOT NULL,
`status` enum('active','locked','terminated') NOT NULL DEFAULT 'active',
`primary_number_id` int(11) unsigned DEFAULT NULL,
`external_id` varchar(255) DEFAULT NULL,
`contact_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uuid_idx` (`uuid`),
KEY `username_idx` (`username`),
KEY `contractid_idx` (`contract_id`),
KEY `domainid_idx` (`domain_id`),
KEY `pnumid_idx` (`primary_number_id`),
KEY `externalid_idx` (`external_id`),
CONSTRAINT `v_s_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_s_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `domains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_s_pnumid_ref` FOREIGN KEY (`primary_number_id`) REFERENCES `voip_numbers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_subscribers` WRITE;
/*!40000 ALTER TABLE `voip_subscribers` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_subscribers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `vouchers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vouchers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`amount` double NOT NULL DEFAULT '0',
`reseller_id` int(11) unsigned NOT NULL,
`customer_id` int(11) unsigned DEFAULT NULL,
`used_by_subscriber_id` int(11) unsigned DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`used_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`valid_until` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `code_sub_valid_idx` (`code`,`used_by_subscriber_id`,`valid_until`),
KEY `reseller_idx` (`reseller_id`),
KEY `customer_idx` (`customer_id`),
KEY `subscriber_idx` (`used_by_subscriber_id`),
CONSTRAINT `vouchers_ibfk_1` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `vouchers_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `vouchers_ibfk_3` FOREIGN KEY (`used_by_subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `vouchers` WRITE;
/*!40000 ALTER TABLE `vouchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `vouchers` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `carrier`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `carrier` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `carrier`;
DROP TABLE IF EXISTS `contracts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contracts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`external_id` varchar(255) DEFAULT NULL,
`url` varchar(31) DEFAULT NULL,
`customer_id` int(11) unsigned DEFAULT NULL,
`sip_uri` varchar(127) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `externalid_idx` (`external_id`),
KEY `customerid_idx` (`customer_id`),
CONSTRAINT `c_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contracts` WRITE;
/*!40000 ALTER TABLE `contracts` DISABLE KEYS */;
/*!40000 ALTER TABLE `contracts` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `credits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `credits` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `contractid_idx` (`contract_id`),
CONSTRAINT `c_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `credits` WRITE;
/*!40000 ALTER TABLE `credits` DISABLE KEYS */;
/*!40000 ALTER TABLE `credits` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `customers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`external_id` varchar(255) DEFAULT NULL,
`url` varchar(31) NOT NULL,
`shopuser` varchar(31) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `shopuser_idx` (`shopuser`),
UNIQUE KEY `externalid_idx` (`external_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `customers` WRITE;
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `interceptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `interceptions` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(31) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `interceptions` WRITE;
/*!40000 ALTER TABLE `interceptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `interceptions` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `numbers` (
`number` varchar(42) NOT NULL,
`subscriber_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`number`),
KEY `subscriberid_idx` (`subscriber_id`),
CONSTRAINT `n_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `numbers` WRITE;
/*!40000 ALTER TABLE `numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `numbers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `customerid_idx` (`customer_id`),
CONSTRAINT `o_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(11) unsigned DEFAULT NULL,
`credit_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `orderid_idx` (`order_id`),
KEY `creditid_idx` (`credit_id`),
CONSTRAINT `p_orderid_ref` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `p_creditid_ref` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `payments` WRITE;
/*!40000 ALTER TABLE `payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `payments` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `subscribers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subscribers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`external_id` varchar(255) DEFAULT NULL,
`username` varchar(127) NOT NULL,
`domain` varchar(127) NOT NULL,
`webusername` varchar(127) DEFAULT NULL,
`contract_id` int(11) unsigned NOT NULL,
`uuid` char(36) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `usrdom_idx` (`username`,`domain`),
UNIQUE KEY `domwebuser_idx` (`domain`,`webusername`),
UNIQUE KEY `externalid_idx` (`external_id`),
KEY `contractid_idx` (`contract_id`),
KEY `uuid_idx` (`uuid`),
CONSTRAINT `s_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `subscribers` WRITE;
/*!40000 ALTER TABLE `subscribers` DISABLE KEYS */;
/*!40000 ALTER TABLE `subscribers` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `kamailio`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `kamailio` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `kamailio`;
DROP TABLE IF EXISTS `acc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc` WRITE;
/*!40000 ALTER TABLE `acc` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_backup`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_backup` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_backup` WRITE;
/*!40000 ALTER TABLE `acc_backup` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_backup` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_cdrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_cdrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`start_time` varchar(32) NOT NULL DEFAULT '',
`end_time` varchar(32) NOT NULL DEFAULT '',
`duration` varchar(32) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `start_time_idx` (`start_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_cdrs` WRITE;
/*!40000 ALTER TABLE `acc_cdrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_cdrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `acc_trash`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acc_trash` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`method` varchar(16) NOT NULL DEFAULT '',
`from_tag` varchar(64) NOT NULL DEFAULT '',
`to_tag` varchar(64) NOT NULL DEFAULT '',
`callid` varchar(255) NOT NULL DEFAULT '',
`sip_code` varchar(3) NOT NULL DEFAULT '',
`sip_reason` varchar(128) NOT NULL DEFAULT '',
`time` datetime NOT NULL,
`time_hires` decimal(13,3) NOT NULL,
`src_leg` varchar(10240) DEFAULT NULL,
`dst_leg` varchar(10240) DEFAULT NULL,
`dst_user` varchar(64) NOT NULL DEFAULT '',
`dst_ouser` varchar(64) NOT NULL DEFAULT '',
`dst_domain` varchar(128) NOT NULL DEFAULT '',
`src_user` varchar(64) NOT NULL DEFAULT '',
`src_domain` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `callid_idx` (`callid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `acc_trash` WRITE;
/*!40000 ALTER TABLE `acc_trash` DISABLE KEYS */;
/*!40000 ALTER TABLE `acc_trash` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `active_watchers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `active_watchers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`presentity_uri` varchar(128) NOT NULL,
`watcher_username` varchar(64) NOT NULL,
`watcher_domain` varchar(64) NOT NULL,
`to_user` varchar(64) NOT NULL,
`to_domain` varchar(64) NOT NULL,
`event` varchar(64) NOT NULL DEFAULT 'presence',
`event_id` varchar(64) DEFAULT NULL,
`to_tag` varchar(64) NOT NULL,
`from_tag` varchar(64) NOT NULL,
`callid` varchar(255) NOT NULL,
`local_cseq` int(11) NOT NULL,
`remote_cseq` int(11) NOT NULL,
`contact` varchar(128) NOT NULL,
`record_route` text,
`expires` int(11) NOT NULL,
`status` int(11) NOT NULL DEFAULT '2',
`reason` varchar(64) NOT NULL,
`version` int(11) NOT NULL DEFAULT '0',
`socket_info` varchar(64) NOT NULL,
`local_contact` varchar(128) NOT NULL,
`from_user` varchar(64) NOT NULL,
`from_domain` varchar(64) NOT NULL,
`updated` int(11) NOT NULL,
`updated_winfo` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `active_watchers_idx` (`callid`,`to_tag`,`from_tag`),
KEY `active_watchers_expires` (`expires`),
KEY `updated_idx` (`updated`),
KEY `updated_winfo_idx` (`updated_winfo`,`presentity_uri`),
KEY `active_watchers_pres` (`presentity_uri`,`event`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `active_watchers` WRITE;
/*!40000 ALTER TABLE `active_watchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `active_watchers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `address` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`grp` int(11) unsigned NOT NULL DEFAULT '1',
`ip_addr` varchar(50) NOT NULL,
`mask` int(11) NOT NULL DEFAULT '32',
`port` smallint(5) unsigned NOT NULL DEFAULT '0',
`tag` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `address` WRITE;
/*!40000 ALTER TABLE `address` DISABLE KEYS */;
INSERT INTO `address` VALUES (1,1,'127.0.0.1',32,0,NULL);
/*!40000 ALTER TABLE `address` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `aliases`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aliases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ruid` varchar(64) NOT NULL DEFAULT '',
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) DEFAULT NULL,
`contact` varchar(255) NOT NULL DEFAULT '',
`received` varchar(128) DEFAULT NULL,
`path` varchar(128) DEFAULT NULL,
`expires` datetime NOT NULL DEFAULT '2030-05-28 21:32:15',
`q` float(10,2) NOT NULL DEFAULT '1.00',
`callid` varchar(255) NOT NULL DEFAULT 'Default-Call-ID',
`cseq` int(11) NOT NULL DEFAULT '1',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
`flags` int(11) NOT NULL DEFAULT '0',
`cflags` int(11) NOT NULL DEFAULT '0',
`user_agent` varchar(255) NOT NULL DEFAULT '',
`socket` varchar(64) DEFAULT NULL,
`methods` int(11) DEFAULT NULL,
`instance` varchar(255) DEFAULT NULL,
`reg_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `ruid_idx` (`ruid`),
KEY `alias_idx` (`username`,`domain`,`contact`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `aliases` WRITE;
/*!40000 ALTER TABLE `aliases` DISABLE KEYS */;
/*!40000 ALTER TABLE `aliases` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `contract_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contract_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(36) NOT NULL,
`username` varchar(128) NOT NULL DEFAULT '0',
`domain` varchar(64) NOT NULL DEFAULT '',
`attribute` varchar(32) NOT NULL DEFAULT '',
`type` int(11) NOT NULL DEFAULT '0',
`value` varchar(128) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `ua_idx` (`uuid`,`attribute`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contract_preferences` WRITE;
/*!40000 ALTER TABLE `contract_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `contract_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dbaliases`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dbaliases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`alias_username` varchar(64) NOT NULL DEFAULT '',
`alias_domain` varchar(64) NOT NULL DEFAULT '',
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) NOT NULL DEFAULT '',
`is_primary` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `target_idx` (`username`,`domain`),
KEY `alias_idx` (`alias_username`,`alias_domain`),
KEY `alias_user_idx` (`alias_username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dbaliases` WRITE;
/*!40000 ALTER TABLE `dbaliases` DISABLE KEYS */;
/*!40000 ALTER TABLE `dbaliases` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dialog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dialog` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hash_entry` int(10) unsigned NOT NULL,
`hash_id` int(10) unsigned NOT NULL,
`callid` varchar(255) NOT NULL,
`from_uri` varchar(128) NOT NULL,
`from_tag` varchar(64) NOT NULL,
`to_uri` varchar(128) NOT NULL,
`to_tag` varchar(64) NOT NULL,
`caller_cseq` varchar(20) NOT NULL,
`callee_cseq` varchar(20) NOT NULL,
`caller_route_set` varchar(512) DEFAULT NULL,
`callee_route_set` varchar(512) DEFAULT NULL,
`caller_contact` varchar(128) NOT NULL,
`callee_contact` varchar(128) NOT NULL,
`caller_sock` varchar(64) NOT NULL,
`callee_sock` varchar(64) NOT NULL,
`state` int(10) unsigned NOT NULL,
`start_time` int(10) unsigned NOT NULL,
`timeout` int(10) unsigned NOT NULL DEFAULT '0',
`sflags` int(10) unsigned NOT NULL DEFAULT '0',
`toroute_name` varchar(32) DEFAULT NULL,
`req_uri` varchar(128) NOT NULL,
`iflags` int(10) unsigned NOT NULL DEFAULT '0',
`xdata` varchar(512) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `hash_idx` (`hash_entry`,`hash_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dialog` WRITE;
/*!40000 ALTER TABLE `dialog` DISABLE KEYS */;
/*!40000 ALTER TABLE `dialog` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dialog_vars`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dialog_vars` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hash_entry` int(10) unsigned NOT NULL,
`hash_id` int(10) unsigned NOT NULL,
`dialog_key` varchar(128) NOT NULL,
`dialog_value` varchar(512) NOT NULL,
PRIMARY KEY (`id`),
KEY `hash_idx` (`hash_entry`,`hash_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dialog_vars` WRITE;
/*!40000 ALTER TABLE `dialog_vars` DISABLE KEYS */;
/*!40000 ALTER TABLE `dialog_vars` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dialplan`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dialplan` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`dpid` int(11) NOT NULL,
`pr` int(11) NOT NULL,
`match_op` int(11) NOT NULL,
`match_exp` varchar(128) NOT NULL,
`match_len` int(11) NOT NULL,
`subst_exp` varchar(128) NOT NULL,
`repl_exp` varchar(255) NOT NULL,
`attrs` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dialplan` WRITE;
/*!40000 ALTER TABLE `dialplan` DISABLE KEYS */;
/*!40000 ALTER TABLE `dialplan` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dispatcher`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dispatcher` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`setid` int(11) NOT NULL DEFAULT '0',
`destination` varchar(192) NOT NULL DEFAULT '',
`flags` int(11) NOT NULL DEFAULT '0',
`priority` int(11) NOT NULL DEFAULT '0',
`attrs` varchar(128) NOT NULL DEFAULT '',
`description` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dispatcher` WRITE;
/*!40000 ALTER TABLE `dispatcher` DISABLE KEYS */;
INSERT INTO `dispatcher` VALUES (1,2,'sip:127.0.0.1:5070',0,0,'','Voicemail servers'),(2,3,'sip:127.0.0.1:5080',0,0,'','Application servers'),(3,50,'sip:127.0.0.1:5060',0,0,'','SIP loadbalancer');
/*!40000 ALTER TABLE `dispatcher` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `dom_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dom_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` char(36) NOT NULL,
`username` varchar(128) NOT NULL DEFAULT '0',
`domain` varchar(64) NOT NULL DEFAULT '',
`attribute` varchar(32) NOT NULL DEFAULT '',
`type` int(11) NOT NULL DEFAULT '0',
`value` varchar(128) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `ua_idx` (`uuid`,`attribute`),
KEY `uda_idx` (`username`,`domain`,`attribute`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `dom_preferences` WRITE;
/*!40000 ALTER TABLE `dom_preferences` DISABLE KEYS */;
INSERT INTO `dom_preferences` VALUES (1,'','0','voip.sipwise.local','sst_enable',0,'no','1900-01-01 00:00:01'),(2,'','0','voip.sipwise.local','sst_refresh_method',0,'UPDATE_FALLBACK_INVITE','1900-01-01 00:00:01'),(3,'','0','voip.sipwise.local','use_rtpproxy',0,'ice_strip_candidates','1900-01-01 00:00:01'),(6,'','0','voip.sipwise.local','ua_header_mode',0,'strip','1900-01-01 00:00:01'),(7,'','0','voip.sipwise.local','ipv46_for_rtpproxy',0,'auto','1900-01-01 00:00:01'),(8,'','0','voip.sipwise.local','force_outbound_calls_to_peer',0,'never','1900-01-01 00:00:01'),(9,'','0','voip.sipwise.local','allowed_clis_reject_policy',0,'override_by_usernpn','1900-01-01 00:00:01'),(10,'','0','voip.sipwise.local','extended_dialing_mode',0,'extended_send_dialed','1900-01-01 00:00:01'),(11,'','0','voip.sipwise.local','outbound_to_user',0,'callee','1900-01-01 00:00:01'),(12,'','0','voip.sipwise.local','language',0,'en','1900-01-01 00:00:01'),(13,'','0','voip.sipwise.local','transport_protocol',0,'transparent','1900-01-01 00:00:01'),(14,'','0','voip.sipwise.local','transport_protocol',0,'transparent','1900-01-01 00:00:01');
/*!40000 ALTER TABLE `dom_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `domain`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `domain` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`domain` varchar(64) NOT NULL,
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
`did` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `domain_idx` (`domain`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `domain` WRITE;
/*!40000 ALTER TABLE `domain` DISABLE KEYS */;
INSERT INTO `domain` VALUES (1,'voip.sipwise.local','1900-01-01 00:00:01',NULL);
/*!40000 ALTER TABLE `domain` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `domain_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `domain_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`did` varchar(64) NOT NULL,
`name` varchar(32) NOT NULL,
`type` int(10) unsigned NOT NULL,
`value` varchar(255) NOT NULL,
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
UNIQUE KEY `domain_attrs_idx` (`did`,`name`,`value`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `domain_attrs` WRITE;
/*!40000 ALTER TABLE `domain_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `domain_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `fax_destinations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fax_destinations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(10) unsigned NOT NULL,
`destination` varchar(64) NOT NULL,
`filetype` enum('ps','tiff','pdf','pdf14') NOT NULL DEFAULT 'tiff',
`cc` enum('true','false') NOT NULL DEFAULT 'false',
`incoming` enum('true','false') NOT NULL DEFAULT 'true',
`outgoing` enum('true','false') NOT NULL DEFAULT 'false',
`status` enum('true','false') NOT NULL DEFAULT 'false',
PRIMARY KEY (`id`),
KEY `subscriber_id` (`subscriber_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `fax_destinations` WRITE;
/*!40000 ALTER TABLE `fax_destinations` DISABLE KEYS */;
/*!40000 ALTER TABLE `fax_destinations` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `fax_journal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fax_journal` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(10) unsigned NOT NULL DEFAULT '0',
`the_timestamp` int(11) unsigned NOT NULL DEFAULT '0',
`duration` int(11) unsigned NOT NULL DEFAULT '0',
`direction` enum('in','out') NOT NULL DEFAULT 'in',
`peer_number` varchar(255) NOT NULL DEFAULT '',
`peer_name` varchar(255) NOT NULL DEFAULT '',
`pages` int(10) unsigned NOT NULL DEFAULT '0',
`reason` varchar(255) NOT NULL,
`status` varchar(255) NOT NULL DEFAULT '',
`signal_rate` int(10) unsigned NOT NULL DEFAULT '0',
`quality` varchar(255) NOT NULL DEFAULT '',
`filename` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `selkey` (`subscriber_id`,`direction`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `fax_journal` WRITE;
/*!40000 ALTER TABLE `fax_journal` DISABLE KEYS */;
/*!40000 ALTER TABLE `fax_journal` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `fax_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fax_preferences` (
`subscriber_id` int(10) unsigned NOT NULL,
`password` varchar(64) DEFAULT NULL,
`name` varchar(64) DEFAULT NULL,
`active` enum('true','false') NOT NULL DEFAULT 'true',
`send_status` enum('true','false') NOT NULL DEFAULT 'false',
`send_copy` enum('true','false') NOT NULL DEFAULT 'false',
`send_copy_cc` enum('true','false') NOT NULL DEFAULT 'false',
PRIMARY KEY (`subscriber_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `fax_preferences` WRITE;
/*!40000 ALTER TABLE `fax_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `fax_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `htable`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `htable` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`key_name` varchar(64) NOT NULL DEFAULT '',
`key_type` int(11) NOT NULL DEFAULT '0',
`value_type` int(11) NOT NULL DEFAULT '0',
`key_value` varchar(128) NOT NULL DEFAULT '',
`expires` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `htable` WRITE;
/*!40000 ALTER TABLE `htable` DISABLE KEYS */;
/*!40000 ALTER TABLE `htable` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `lcr_gw`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lcr_gw` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lcr_id` smallint(5) unsigned NOT NULL,
`gw_name` varchar(128) DEFAULT NULL,
`ip_addr` varchar(50) DEFAULT NULL,
`hostname` varchar(64) DEFAULT NULL,
`port` smallint(5) unsigned DEFAULT NULL,
`params` varchar(64) DEFAULT NULL,
`uri_scheme` tinyint(3) unsigned DEFAULT NULL,
`transport` tinyint(3) unsigned DEFAULT NULL,
`strip` tinyint(3) unsigned DEFAULT NULL,
`tag` varchar(64) DEFAULT NULL,
`flags` int(10) unsigned NOT NULL DEFAULT '0',
`defunct` int(10) unsigned DEFAULT NULL,
`group_id` int(11) unsigned NOT NULL,
`prefix` varchar(16) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `lcr_id_gw_name_idx` (`lcr_id`,`gw_name`),
KEY `lcr_id_idx` (`lcr_id`),
KEY `lcr_id_ip_addr_idx` (`lcr_id`,`ip_addr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `lcr_gw` WRITE;
/*!40000 ALTER TABLE `lcr_gw` DISABLE KEYS */;
/*!40000 ALTER TABLE `lcr_gw` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `lcr_rule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lcr_rule` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lcr_id` smallint(5) unsigned NOT NULL,
`prefix` varchar(16) DEFAULT NULL,
`request_uri` varchar(64) DEFAULT '',
`from_uri` varchar(64) DEFAULT NULL,
`stopper` int(10) unsigned NOT NULL DEFAULT '0',
`enabled` int(10) unsigned NOT NULL DEFAULT '1',
`group_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `lcr_id_prefix_from_uri_idx` (`lcr_id`,`prefix`,`from_uri`,`request_uri`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `lcr_rule` WRITE;
/*!40000 ALTER TABLE `lcr_rule` DISABLE KEYS */;
/*!40000 ALTER TABLE `lcr_rule` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `lcr_rule_target`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lcr_rule_target` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lcr_id` smallint(5) unsigned NOT NULL,
`rule_id` int(10) unsigned NOT NULL,
`gw_id` int(10) unsigned NOT NULL,
`priority` tinyint(3) unsigned NOT NULL,
`weight` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `rule_id_gw_id_idx` (`rule_id`,`gw_id`),
KEY `lcr_id_idx` (`lcr_id`),
KEY `gw_id_idx` (`gw_id`),
CONSTRAINT `l_r_t_gwid_ref` FOREIGN KEY (`gw_id`) REFERENCES `lcr_gw` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `l_r_t_ruleid_ref` FOREIGN KEY (`rule_id`) REFERENCES `lcr_rule` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `lcr_rule_target` WRITE;
/*!40000 ALTER TABLE `lcr_rule_target` DISABLE KEYS */;
/*!40000 ALTER TABLE `lcr_rule_target` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `location`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `location` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) DEFAULT NULL,
`contact` varchar(255) NOT NULL DEFAULT '',
`received` varchar(128) DEFAULT NULL,
`path` varchar(512) DEFAULT NULL,
`expires` datetime NOT NULL DEFAULT '2030-05-28 21:32:15',
`q` float(10,2) NOT NULL DEFAULT '1.00',
`callid` varchar(255) NOT NULL DEFAULT 'Default-Call-ID',
`cseq` int(11) NOT NULL DEFAULT '13',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
`flags` int(11) NOT NULL DEFAULT '0',
`cflags` int(11) NOT NULL DEFAULT '0',
`user_agent` varchar(255) NOT NULL DEFAULT '',
`socket` varchar(64) DEFAULT NULL,
`methods` int(11) DEFAULT NULL,
`ruid` varchar(64) NOT NULL DEFAULT '',
`reg_id` int(11) NOT NULL DEFAULT '0',
`instance` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ruid_idx` (`ruid`),
KEY `account_contact_idx` (`username`,`domain`,`contact`),
KEY `expires_idx` (`expires`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `location` WRITE;
/*!40000 ALTER TABLE `location` DISABLE KEYS */;
/*!40000 ALTER TABLE `location` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `location_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `location_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ruid` varchar(64) NOT NULL DEFAULT '',
`username` varchar(64) NOT NULL DEFAULT '',
`DOMAIN` varchar(64) DEFAULT NULL,
`aname` varchar(64) NOT NULL DEFAULT '',
`atype` int(11) NOT NULL DEFAULT '0',
`avalue` varchar(255) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `account_record_idx` (`username`,`DOMAIN`,`ruid`),
KEY `last_modified_idx` (`last_modified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `location_attrs` WRITE;
/*!40000 ALTER TABLE `location_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `location_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mobile_push_registrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mobile_push_registrations` (
`reg_id` varbinary(255) NOT NULL,
`type` enum('gcm','apns') NOT NULL,
`subscriber_id` int(10) unsigned NOT NULL,
`device_id` varbinary(255) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`reg_id`),
KEY `subscriber_id` (`subscriber_id`),
KEY `device_id` (`device_id`),
CONSTRAINT `mobile_push_registrations_ibfk_1` FOREIGN KEY (`subscriber_id`) REFERENCES `provisioning`.`voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mobile_push_registrations` WRITE;
/*!40000 ALTER TABLE `mobile_push_registrations` DISABLE KEYS */;
/*!40000 ALTER TABLE `mobile_push_registrations` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mohqcalls`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mohqcalls` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`mohq_id` int(10) unsigned NOT NULL,
`call_id` varchar(100) NOT NULL,
`call_status` int(10) unsigned NOT NULL,
`call_from` varchar(100) NOT NULL,
`call_contact` varchar(100) DEFAULT NULL,
`call_time` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `mohqcalls_idx` (`call_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mohqcalls` WRITE;
/*!40000 ALTER TABLE `mohqcalls` DISABLE KEYS */;
/*!40000 ALTER TABLE `mohqcalls` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mohqueues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mohqueues` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`uri` varchar(100) NOT NULL,
`mohdir` varchar(100) DEFAULT NULL,
`mohfile` varchar(100) NOT NULL,
`debug` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `mohqueue_uri_idx` (`uri`),
UNIQUE KEY `mohqueue_name_idx` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mohqueues` WRITE;
/*!40000 ALTER TABLE `mohqueues` DISABLE KEYS */;
/*!40000 ALTER TABLE `mohqueues` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `peer_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `peer_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(36) NOT NULL,
`username` varchar(128) NOT NULL DEFAULT '0',
`domain` varchar(64) NOT NULL DEFAULT '',
`attribute` varchar(32) NOT NULL DEFAULT '',
`type` int(11) NOT NULL DEFAULT '0',
`value` varchar(128) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `ua_idx` (`uuid`,`attribute`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `peer_preferences` WRITE;
/*!40000 ALTER TABLE `peer_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `peer_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `presentity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `presentity` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL,
`domain` varchar(64) NOT NULL,
`event` varchar(64) NOT NULL,
`etag` varchar(64) NOT NULL,
`expires` int(11) NOT NULL,
`received_time` int(11) NOT NULL,
`body` blob NOT NULL,
`sender` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `presentity_idx` (`username`,`domain`,`event`,`etag`),
KEY `presentity_expires` (`expires`),
KEY `account_idx` (`username`,`domain`,`event`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `presentity` WRITE;
/*!40000 ALTER TABLE `presentity` DISABLE KEYS */;
/*!40000 ALTER TABLE `presentity` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `prof_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prof_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` char(36) NOT NULL,
`username` varchar(128) NOT NULL DEFAULT '0',
`domain` varchar(64) NOT NULL DEFAULT '',
`attribute` varchar(32) NOT NULL DEFAULT '',
`type` int(11) NOT NULL DEFAULT '0',
`value` varchar(128) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `ua_idx` (`uuid`,`attribute`),
KEY `uda_idx` (`username`,`domain`,`attribute`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `prof_preferences` WRITE;
/*!40000 ALTER TABLE `prof_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `prof_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `pua`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pua` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`pres_uri` varchar(128) NOT NULL,
`pres_id` varchar(255) NOT NULL,
`event` int(11) NOT NULL,
`expires` int(11) NOT NULL,
`desired_expires` int(11) NOT NULL,
`flag` int(11) NOT NULL,
`etag` varchar(64) NOT NULL,
`tuple_id` varchar(64) DEFAULT NULL,
`watcher_uri` varchar(128) NOT NULL,
`call_id` varchar(255) NOT NULL,
`to_tag` varchar(64) NOT NULL,
`from_tag` varchar(64) NOT NULL,
`cseq` int(11) NOT NULL,
`record_route` text,
`contact` varchar(128) NOT NULL,
`remote_contact` varchar(128) NOT NULL,
`version` int(11) NOT NULL,
`extra_headers` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `pua_idx` (`etag`,`tuple_id`,`call_id`,`from_tag`),
KEY `expires_idx` (`expires`),
KEY `dialog2_idx` (`call_id`,`from_tag`),
KEY `dialog1_idx` (`pres_id`,`pres_uri`),
KEY `record_idx` (`pres_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `pua` WRITE;
/*!40000 ALTER TABLE `pua` DISABLE KEYS */;
/*!40000 ALTER TABLE `pua` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `rls_presentity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rls_presentity` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rlsubs_did` varchar(255) NOT NULL,
`resource_uri` varchar(128) NOT NULL,
`content_type` varchar(255) NOT NULL,
`presence_state` blob NOT NULL,
`expires` int(11) NOT NULL,
`updated` int(11) NOT NULL,
`auth_state` int(11) NOT NULL,
`reason` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `rls_presentity_idx` (`rlsubs_did`,`resource_uri`),
KEY `rlsubs_idx` (`rlsubs_did`),
KEY `updated_idx` (`updated`),
KEY `expires_idx` (`expires`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `rls_presentity` WRITE;
/*!40000 ALTER TABLE `rls_presentity` DISABLE KEYS */;
/*!40000 ALTER TABLE `rls_presentity` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `rls_watchers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rls_watchers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`presentity_uri` varchar(128) NOT NULL,
`to_user` varchar(64) NOT NULL,
`to_domain` varchar(64) NOT NULL,
`watcher_username` varchar(64) NOT NULL,
`watcher_domain` varchar(64) NOT NULL,
`event` varchar(64) NOT NULL DEFAULT 'presence',
`event_id` varchar(64) DEFAULT NULL,
`to_tag` varchar(64) NOT NULL,
`from_tag` varchar(64) NOT NULL,
`callid` varchar(255) NOT NULL,
`local_cseq` int(11) NOT NULL,
`remote_cseq` int(11) NOT NULL,
`contact` varchar(128) NOT NULL,
`record_route` text,
`expires` int(11) NOT NULL,
`status` int(11) NOT NULL DEFAULT '2',
`reason` varchar(64) NOT NULL,
`version` int(11) NOT NULL DEFAULT '0',
`socket_info` varchar(64) NOT NULL,
`local_contact` varchar(128) NOT NULL,
`from_user` varchar(64) NOT NULL,
`from_domain` varchar(64) NOT NULL,
`updated` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `rls_watcher_idx` (`callid`,`to_tag`,`from_tag`),
KEY `rls_watchers_update` (`watcher_username`,`watcher_domain`,`event`),
KEY `rls_watchers_expires` (`expires`),
KEY `updated_idx` (`updated`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `rls_watchers` WRITE;
/*!40000 ALTER TABLE `rls_watchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `rls_watchers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `rtpproxy`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rtpproxy` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`setid` varchar(32) NOT NULL DEFAULT '0',
`url` varchar(64) NOT NULL DEFAULT '',
`flags` int(11) NOT NULL DEFAULT '0',
`weight` int(11) NOT NULL DEFAULT '1',
`description` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `rtpproxy` WRITE;
/*!40000 ALTER TABLE `rtpproxy` DISABLE KEYS */;
/*!40000 ALTER TABLE `rtpproxy` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `sca_subscriptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sca_subscriptions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`subscriber` varchar(255) NOT NULL,
`aor` varchar(255) NOT NULL,
`event` int(11) NOT NULL DEFAULT '0',
`expires` int(11) NOT NULL DEFAULT '0',
`state` int(11) NOT NULL DEFAULT '0',
`app_idx` int(11) NOT NULL DEFAULT '0',
`call_id` varchar(255) NOT NULL,
`from_tag` varchar(64) NOT NULL,
`to_tag` varchar(64) NOT NULL,
`record_route` text,
`notify_cseq` int(11) NOT NULL,
`subscribe_cseq` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sca_subscriptions_idx` (`subscriber`,`call_id`,`from_tag`,`to_tag`),
KEY `sca_expires_idx` (`expires`),
KEY `sca_subscribers_idx` (`subscriber`,`event`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `sca_subscriptions` WRITE;
/*!40000 ALTER TABLE `sca_subscriptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sca_subscriptions` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `sems_registrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sems_registrations` (
`subscriber_id` int(11) NOT NULL,
`registration_status` tinyint(1) NOT NULL DEFAULT '0',
`last_registration` datetime DEFAULT NULL,
`expiry` datetime DEFAULT NULL,
`last_code` smallint(2) DEFAULT NULL,
`last_reason` varchar(256) DEFAULT NULL,
`contacts` varchar(512) DEFAULT NULL,
PRIMARY KEY (`subscriber_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `sems_registrations` WRITE;
/*!40000 ALTER TABLE `sems_registrations` DISABLE KEYS */;
/*!40000 ALTER TABLE `sems_registrations` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `silo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `silo` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`src_addr` varchar(128) NOT NULL DEFAULT '',
`dst_addr` varchar(128) NOT NULL DEFAULT '',
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) NOT NULL DEFAULT '',
`inc_time` int(11) NOT NULL DEFAULT '0',
`exp_time` int(11) NOT NULL DEFAULT '0',
`snd_time` int(11) NOT NULL DEFAULT '0',
`ctype` varchar(32) NOT NULL DEFAULT 'text/plain',
`body` blob NOT NULL,
`extra_hdrs` text NOT NULL,
`callid` varchar(128) NOT NULL DEFAULT '',
`status` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `account_idx` (`username`,`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `silo` WRITE;
/*!40000 ALTER TABLE `silo` DISABLE KEYS */;
/*!40000 ALTER TABLE `silo` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `speed_dial`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `speed_dial` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) NOT NULL DEFAULT '',
`sd_username` varchar(64) NOT NULL DEFAULT '',
`sd_domain` varchar(64) NOT NULL DEFAULT '',
`new_uri` varchar(128) NOT NULL DEFAULT '',
`fname` varchar(64) NOT NULL DEFAULT '',
`lname` varchar(64) NOT NULL DEFAULT '',
`description` varchar(64) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `speed_dial_idx` (`username`,`domain`,`sd_domain`,`sd_username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `speed_dial` WRITE;
/*!40000 ALTER TABLE `speed_dial` DISABLE KEYS */;
/*!40000 ALTER TABLE `speed_dial` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `subscriber`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subscriber` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL DEFAULT '',
`domain` varchar(64) NOT NULL DEFAULT '',
`password` varchar(40) NOT NULL DEFAULT '',
`email_address` varchar(64) NOT NULL DEFAULT '',
`ha1` varchar(64) NOT NULL DEFAULT '',
`ha1b` varchar(64) NOT NULL DEFAULT '',
`rpid` varchar(64) DEFAULT NULL,
`uuid` char(36) NOT NULL,
`timezone` varchar(64) NOT NULL DEFAULT '',
`datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `account_idx` (`username`,`domain`),
KEY `username_idx` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `subscriber` WRITE;
/*!40000 ALTER TABLE `subscriber` DISABLE KEYS */;
INSERT INTO `subscriber` VALUES (1,'no_such_number','voip.sipwise.local','37d6b381bf72d2e30bfd1894ee733122','','d53828b03bcb518fd5b9bdaf12716832','138720351da3644d0ebf91b16497a90a',NULL,'9bcb88b6-541a-43da-8fdc-816f5557ff93','','0000-00-00 00:00:00'),(2,'nagios','voip.sipwise.local','nagios4Sipwise!','','e5290263a1b27f90c5630eecc7319715','aba8e5f08f6fc0dd1e18e9e27550b8f0',NULL,'ac1697cf-6933-45ef-9abf-b1278054ded0','','0000-00-00 00:00:00');
/*!40000 ALTER TABLE `subscriber` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `trusted`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trusted` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`src_ip` varchar(50) NOT NULL,
`proto` varchar(4) NOT NULL,
`from_pattern` varchar(64) DEFAULT NULL,
`tag` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `peer_idx` (`src_ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `trusted` WRITE;
/*!40000 ALTER TABLE `trusted` DISABLE KEYS */;
/*!40000 ALTER TABLE `trusted` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_credentials`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_credentials` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`auth_username` varchar(64) NOT NULL,
`did` varchar(64) NOT NULL DEFAULT '_default',
`realm` varchar(64) NOT NULL,
`password` varchar(28) NOT NULL DEFAULT '',
`flags` int(11) NOT NULL DEFAULT '0',
`ha1` varchar(32) NOT NULL,
`ha1b` varchar(32) NOT NULL DEFAULT '',
`uid` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `cred_idx` (`auth_username`,`did`),
KEY `uid` (`uid`),
KEY `did_idx` (`did`),
KEY `realm_idx` (`realm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_credentials` WRITE;
/*!40000 ALTER TABLE `uid_credentials` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_credentials` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_domain`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_domain` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`did` varchar(64) NOT NULL,
`DOMAIN` varchar(64) NOT NULL,
`flags` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `domain_idx` (`DOMAIN`),
KEY `did_idx` (`did`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_domain` WRITE;
/*!40000 ALTER TABLE `uid_domain` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_domain` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_domain_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_domain_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`did` varchar(64) DEFAULT NULL,
`name` varchar(32) NOT NULL,
`TYPE` int(11) NOT NULL DEFAULT '0',
`VALUE` varchar(128) DEFAULT NULL,
`flags` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `domain_attr_idx` (`did`,`name`,`VALUE`),
KEY `domain_did` (`did`,`flags`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_domain_attrs` WRITE;
/*!40000 ALTER TABLE `uid_domain_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_domain_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_global_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_global_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`TYPE` int(11) NOT NULL DEFAULT '0',
`VALUE` varchar(128) DEFAULT NULL,
`flags` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `global_attrs_idx` (`name`,`VALUE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_global_attrs` WRITE;
/*!40000 ALTER TABLE `uid_global_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_global_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_uri`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_uri` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uid` varchar(64) NOT NULL,
`did` varchar(64) NOT NULL,
`username` varchar(64) NOT NULL,
`flags` int(10) unsigned NOT NULL DEFAULT '0',
`scheme` varchar(8) NOT NULL DEFAULT 'sip',
PRIMARY KEY (`id`),
KEY `uri_idx1` (`username`,`did`,`scheme`),
KEY `uri_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_uri` WRITE;
/*!40000 ALTER TABLE `uid_uri` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_uri` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_uri_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_uri_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL,
`did` varchar(64) NOT NULL,
`name` varchar(32) NOT NULL,
`VALUE` varchar(128) DEFAULT NULL,
`TYPE` int(11) NOT NULL DEFAULT '0',
`flags` int(10) unsigned NOT NULL DEFAULT '0',
`scheme` varchar(8) NOT NULL DEFAULT 'sip',
PRIMARY KEY (`id`),
UNIQUE KEY `uriattrs_idx` (`username`,`did`,`name`,`VALUE`,`scheme`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_uri_attrs` WRITE;
/*!40000 ALTER TABLE `uid_uri_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_uri_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `uid_user_attrs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uid_user_attrs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uid` varchar(64) NOT NULL,
`name` varchar(32) NOT NULL,
`VALUE` varchar(128) DEFAULT NULL,
`TYPE` int(11) NOT NULL DEFAULT '0',
`flags` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `userattrs_idx` (`uid`,`name`,`VALUE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `uid_user_attrs` WRITE;
/*!40000 ALTER TABLE `uid_user_attrs` DISABLE KEYS */;
/*!40000 ALTER TABLE `uid_user_attrs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `usr_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usr_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` char(36) NOT NULL,
`username` varchar(128) NOT NULL DEFAULT '0',
`domain` varchar(64) NOT NULL DEFAULT '',
`attribute` varchar(32) NOT NULL DEFAULT '',
`type` int(11) NOT NULL DEFAULT '0',
`value` varchar(128) NOT NULL DEFAULT '',
`last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
PRIMARY KEY (`id`),
KEY `ua_idx` (`uuid`,`attribute`),
KEY `uda_idx` (`username`,`domain`,`attribute`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `usr_preferences` WRITE;
/*!40000 ALTER TABLE `usr_preferences` DISABLE KEYS */;
INSERT INTO `usr_preferences` VALUES (1,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','cloud_pbx_hunt_policy',0,'serial','1900-01-01 00:00:01'),(2,'ac1697cf-6933-45ef-9abf-b1278054ded0','nagios','voip.sipwise.local','cloud_pbx_hunt_policy',0,'serial','1900-01-01 00:00:01');
/*!40000 ALTER TABLE `usr_preferences` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `version`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `version` (
`table_name` varchar(32) NOT NULL,
`table_version` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `table_name_idx` (`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `version` WRITE;
/*!40000 ALTER TABLE `version` DISABLE KEYS */;
INSERT INTO `version` VALUES ('acc',4),('acc_cdrs',1),('active_watchers',11),('address',6),('aliases',6),('dbaliases',1),('dialog',7),('dialog_vars',1),('dialplan',1),('dispatcher',3),('domain',2),('domain_attrs',1),('htable',2),('lcr_gw',3),('lcr_rule',2),('lcr_rule_target',1),('location',6),('location_attrs',1),('mohqcalls',1),('mohqueues',1),('presentity',3),('pua',7),('rls_presentity',1),('rls_watchers',3),('rtpproxy',1),('sca_subscriptions',1),('silo',7),('speed_dial',2),('subscriber',6),('trusted',5),('usr_preferences',2),('watchers',3),('xcap',4);
/*!40000 ALTER TABLE `version` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voicemail_spool`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voicemail_spool` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`msgnum` int(11) NOT NULL DEFAULT '0',
`dir` varchar(127) DEFAULT '',
`context` varchar(63) DEFAULT '',
`macrocontext` varchar(63) DEFAULT '',
`callerid` varchar(255) DEFAULT '',
`origtime` varchar(16) DEFAULT '',
`duration` varchar(16) DEFAULT '',
`mailboxuser` varchar(255) DEFAULT '',
`mailboxcontext` varchar(63) DEFAULT '',
`recording` longblob,
PRIMARY KEY (`id`),
KEY `dir` (`dir`),
KEY `mailboxuser_idx` (`mailboxuser`),
CONSTRAINT `v_s_mailboxuser_ref` FOREIGN KEY (`mailboxuser`) REFERENCES `voicemail_users` (`customer_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voicemail_spool` WRITE;
/*!40000 ALTER TABLE `voicemail_spool` DISABLE KEYS */;
/*!40000 ALTER TABLE `voicemail_spool` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voicemail_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voicemail_users` (
`uniqueid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` char(36) NOT NULL DEFAULT '',
`context` varchar(63) NOT NULL DEFAULT 'default',
`mailbox` varchar(64) NOT NULL,
`password` varchar(31) NOT NULL DEFAULT '0',
`fullname` varchar(255) NOT NULL DEFAULT '',
`email` varchar(255) NOT NULL DEFAULT '',
`pager` varchar(255) 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 `customer_idx` (`customer_id`),
KEY `mailbox_context` (`mailbox`,`context`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voicemail_users` WRITE;
/*!40000 ALTER TABLE `voicemail_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `voicemail_users` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `watchers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `watchers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`presentity_uri` varchar(128) NOT NULL,
`watcher_username` varchar(64) NOT NULL,
`watcher_domain` varchar(64) NOT NULL,
`event` varchar(64) NOT NULL DEFAULT 'presence',
`status` int(11) NOT NULL,
`reason` varchar(64) DEFAULT NULL,
`inserted_time` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `watcher_idx` (`presentity_uri`,`watcher_username`,`watcher_domain`,`event`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `watchers` WRITE;
/*!40000 ALTER TABLE `watchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `watchers` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `xcap`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xcap` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL,
`domain` varchar(64) NOT NULL,
`doc` mediumblob NOT NULL,
`doc_type` int(11) NOT NULL,
`etag` varchar(64) NOT NULL,
`source` int(11) NOT NULL,
`doc_uri` varchar(255) NOT NULL,
`port` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `doc_uri_idx` (`doc_uri`),
KEY `account_doc_type_idx` (`username`,`domain`,`doc_type`),
KEY `account_doc_type_uri_idx` (`username`,`domain`,`doc_type`,`doc_uri`),
KEY `account_doc_uri_idx` (`username`,`domain`,`doc_uri`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `xcap` WRITE;
/*!40000 ALTER TABLE `xcap` DISABLE KEYS */;
/*!40000 ALTER TABLE `xcap` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `ngcp`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `ngcp` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `ngcp`;
DROP TABLE IF EXISTS `db_schema`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `db_schema` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`revision` int(11) unsigned NOT NULL,
`node` varchar(64) NOT NULL,
`applied_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `rev_idx` (`revision`,`node`)
) ENGINE=InnoDB AUTO_INCREMENT=385 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `db_schema` WRITE;
/*!40000 ALTER TABLE `db_schema` DISABLE KEYS */;
INSERT INTO `db_schema` VALUES (1,10,'spce','2015-06-28 23:09:06'),(2,20,'spce','2015-06-28 23:09:06'),(3,30,'spce','2015-06-28 23:09:06'),(4,40,'spce','2015-06-28 23:09:07'),(5,50,'spce','2015-06-28 23:09:07'),(6,60,'spce','2015-06-28 23:09:07'),(7,70,'spce','2015-06-28 23:09:07'),(8,80,'spce','2015-06-28 23:09:07'),(9,3972,'spce','2015-06-28 23:09:07'),(10,3975,'spce','2015-06-28 23:09:07'),(11,4026,'spce','2015-06-28 23:09:07'),(12,4042,'spce','2015-06-28 23:09:08'),(13,4063,'spce','2015-06-28 23:09:08'),(14,4085,'spce','2015-06-28 23:09:08'),(15,4095,'spce','2015-06-28 23:09:08'),(16,4112,'spce','2015-06-28 23:09:08'),(17,4145,'spce','2015-06-28 23:09:08'),(18,4496,'spce','2015-06-28 23:09:08'),(19,4665,'spce','2015-06-28 23:09:08'),(20,4668,'spce','2015-06-28 23:09:08'),(21,4701,'spce','2015-06-28 23:09:08'),(22,4711,'spce','2015-06-28 23:09:09'),(23,4712,'spce','2015-06-28 23:09:09'),(24,4717,'spce','2015-06-28 23:09:09'),(25,4735,'spce','2015-06-28 23:09:09'),(26,4762,'spce','2015-06-28 23:09:09'),(27,4832,'spce','2015-06-28 23:09:09'),(28,4875,'spce','2015-06-28 23:09:09'),(29,4968,'spce','2015-06-28 23:09:09'),(30,4984,'spce','2015-06-28 23:09:09'),(31,5000,'spce','2015-06-28 23:09:09'),(32,5249,'spce','2015-06-28 23:09:09'),(33,5283,'spce','2015-06-28 23:09:09'),(34,5300,'spce','2015-06-28 23:09:09'),(35,5347,'spce','2015-06-28 23:09:09'),(36,5471,'spce','2015-06-28 23:09:10'),(37,5472,'spce','2015-06-28 23:09:10'),(38,5538,'spce','2015-06-28 23:09:10'),(39,5543,'spce','2015-06-28 23:09:10'),(40,5553,'spce','2015-06-28 23:09:10'),(41,5603,'spce','2015-06-28 23:09:10'),(42,5604,'spce','2015-06-28 23:09:10'),(43,5607,'spce','2015-06-28 23:09:10'),(44,5670,'spce','2015-06-28 23:09:10'),(45,5708,'spce','2015-06-28 23:09:10'),(46,5709,'spce','2015-06-28 23:09:10'),(47,5722,'spce','2015-06-28 23:09:10'),(48,5726,'spce','2015-06-28 23:09:10'),(49,5728,'spce','2015-06-28 23:09:11'),(50,5737,'spce','2015-06-28 23:09:11'),(51,5744,'spce','2015-06-28 23:09:11'),(52,5749,'spce','2015-06-28 23:09:11'),(53,5800,'spce','2015-06-28 23:09:11'),(54,5824,'spce','2015-06-28 23:09:11'),(55,5826,'spce','2015-06-28 23:09:11'),(56,5831,'spce','2015-06-28 23:09:11'),(57,5833,'spce','2015-06-28 23:09:11'),(58,5843,'spce','2015-06-28 23:09:11'),(59,5973,'spce','2015-06-28 23:09:11'),(60,6254,'spce','2015-06-28 23:09:11'),(61,6346,'spce','2015-06-28 23:09:11'),(62,6424,'spce','2015-06-28 23:09:11'),(63,6425,'spce','2015-06-28 23:09:15'),(64,6435,'spce','2015-06-28 23:09:15'),(65,6436,'spce','2015-06-28 23:09:15'),(66,6459,'spce','2015-06-28 23:09:15'),(67,6465,'spce','2015-06-28 23:09:15'),(68,6551,'spce','2015-06-28 23:09:15'),(69,6560,'spce','2015-06-28 23:09:15'),(70,6568,'spce','2015-06-28 23:09:15'),(71,6619,'spce','2015-06-28 23:09:15'),(72,6624,'spce','2015-06-28 23:09:15'),(73,6643,'spce','2015-06-28 23:09:15'),(74,6712,'spce','2015-06-28 23:09:15'),(75,6746,'spce','2015-06-28 23:09:15'),(76,7006,'spce','2015-06-28 23:09:18'),(77,7036,'spce','2015-06-28 23:09:18'),(78,7065,'spce','2015-06-28 23:09:18'),(79,7095,'spce','2015-06-28 23:09:18'),(80,7209,'spce','2015-06-28 23:09:18'),(81,7252,'spce','2015-06-28 23:09:18'),(82,7259,'spce','2015-06-28 23:09:18'),(83,7260,'spce','2015-06-28 23:09:18'),(84,7485,'spce','2015-06-28 23:09:18'),(85,7493,'spce','2015-06-28 23:09:18'),(86,7496,'spce','2015-06-28 23:09:18'),(87,7500,'spce','2015-06-28 23:09:18'),(88,7644,'spce','2015-06-28 23:09:18'),(89,7647,'spce','2015-06-28 23:09:18'),(90,7655,'spce','2015-06-28 23:09:18'),(91,7656,'spce','2015-06-28 23:09:18'),(92,7764,'spce','2015-06-28 23:09:18'),(93,7937,'spce','2015-06-28 23:09:18'),(94,7991,'spce','2015-06-28 23:09:18'),(95,8169,'spce','2015-06-28 23:09:18'),(96,8293,'spce','2015-06-28 23:09:18'),(97,8378,'spce','2015-06-28 23:09:19'),(98,8408,'spce','2015-06-28 23:09:19'),(99,8461,'spce','2015-06-28 23:09:19'),(100,8466,'spce','2015-06-28 23:09:19'),(101,8467,'spce','2015-06-28 23:09:19'),(102,8629,'spce','2015-06-28 23:09:19'),(103,8704,'spce','2015-06-28 23:09:19'),(104,8846,'spce','2015-06-28 23:09:19'),(105,8878,'spce','2015-06-28 23:09:19'),(106,8997,'spce','2015-06-28 23:09:19'),(107,9069,'spce','2015-06-28 23:09:19'),(108,9086,'spce','2015-06-28 23:09:19'),(109,9106,'spce','2015-06-28 23:09:19'),(110,9114,'spce','2015-06-28 23:09:19'),(111,9119,'spce','2015-06-28 23:09:19'),(112,9150,'spce','2015-06-28 23:09:19'),(113,9154,'spce','2015-06-28 23:09:19'),(114,9159,'spce','2015-06-28 23:09:19'),(115,9166,'spce','2015-06-28 23:09:19'),(116,9187,'spce','2015-06-28 23:09:19'),(117,9188,'spce','2015-06-28 23:09:19'),(118,9204,'spce','2015-06-28 23:09:20'),(119,9205,'spce','2015-06-28 23:09:20'),(120,9221,'spce','2015-06-28 23:09:20'),(121,9222,'spce','2015-06-28 23:09:20'),(122,9228,'spce','2015-06-28 23:09:20'),(123,9249,'spce','2015-06-28 23:09:20'),(124,9256,'spce','2015-06-28 23:09:20'),(125,9303,'spce','2015-06-28 23:09:20'),(126,9312,'spce','2015-06-28 23:09:20'),(127,9458,'spce','2015-06-28 23:09:21'),(128,9625,'spce','2015-06-28 23:09:21'),(129,9630,'spce','2015-06-28 23:09:21'),(130,9665,'spce','2015-06-28 23:09:21'),(131,9675,'spce','2015-06-28 23:09:21'),(132,9702,'spce','2015-06-28 23:09:21'),(133,9703,'spce','2015-06-28 23:09:21'),(134,9723,'spce','2015-06-28 23:09:21'),(135,9733,'spce','2015-06-28 23:09:21'),(136,9791,'spce','2015-06-28 23:09:21'),(137,9868,'spce','2015-06-28 23:09:21'),(138,10180,'spce','2015-06-28 23:09:22'),(139,10203,'spce','2015-06-28 23:09:22'),(140,10210,'spce','2015-06-28 23:09:22'),(141,10268,'spce','2015-06-28 23:09:22'),(142,10272,'spce','2015-06-28 23:09:22'),(143,10287,'spce','2015-06-28 23:09:22'),(144,10290,'spce','2015-06-28 23:09:22'),(145,10331,'spce','2015-06-28 23:09:22'),(146,10332,'spce','2015-06-28 23:09:22'),(147,10423,'spce','2015-06-28 23:09:22'),(148,10538,'spce','2015-06-28 23:09:22'),(149,10639,'spce','2015-06-28 23:09:22'),(150,10728,'spce','2015-06-28 23:09:22'),(151,10860,'spce','2015-06-28 23:09:22'),(152,10877,'spce','2015-06-28 23:09:22'),(153,10890,'spce','2015-06-28 23:09:22'),(154,10934,'spce','2015-06-28 23:09:22'),(155,10950,'spce','2015-06-28 23:09:22'),(156,10951,'spce','2015-06-28 23:09:22'),(157,11039,'spce','2015-06-28 23:09:22'),(158,11062,'spce','2015-06-28 23:09:22'),(159,11188,'spce','2015-06-28 23:09:22'),(160,11245,'spce','2015-06-28 23:09:22'),(161,11318,'spce','2015-06-28 23:09:22'),(162,11350,'spce','2015-06-28 23:09:22'),(163,11379,'spce','2015-06-28 23:09:22'),(164,11565,'spce','2015-06-28 23:09:22'),(165,11581,'spce','2015-06-28 23:09:22'),(166,11603,'spce','2015-06-28 23:09:23'),(167,11722,'spce','2015-06-28 23:09:23'),(168,11729,'spce','2015-06-28 23:09:23'),(169,11812,'spce','2015-06-28 23:09:23'),(170,11817,'spce','2015-06-28 23:09:23'),(171,11818,'spce','2015-06-28 23:09:23'),(172,11819,'spce','2015-06-28 23:09:23'),(173,12002,'spce','2015-06-28 23:09:23'),(174,12061,'spce','2015-06-28 23:09:23'),(175,12062,'spce','2015-06-28 23:09:23'),(176,12117,'spce','2015-06-28 23:09:23'),(177,12144,'spce','2015-06-28 23:09:23'),(178,12162,'spce','2015-06-28 23:09:24'),(179,12279,'spce','2015-06-28 23:09:24'),(180,12649,'spce','2015-06-28 23:09:24'),(181,12693,'spce','2015-06-28 23:09:24'),(182,12765,'spce','2015-06-28 23:09:24'),(183,13041,'spce','2015-06-28 23:09:24'),(184,13042,'spce','2015-06-28 23:09:24'),(185,13117,'spce','2015-06-28 23:09:24'),(186,13125,'spce','2015-06-28 23:09:24'),(187,13126,'spce','2015-06-28 23:09:24'),(188,13127,'spce','2015-06-28 23:09:24'),(189,13140,'spce','2015-06-28 23:09:24'),(190,13216,'spce','2015-06-28 23:09:24'),(191,13219,'spce','2015-06-28 23:09:24'),(192,13225,'spce','2015-06-28 23:09:24'),(193,13226,'spce','2015-06-28 23:09:25'),(194,13288,'spce','2015-06-28 23:09:25'),(195,13393,'spce','2015-06-28 23:09:25'),(196,13447,'spce','2015-06-28 23:09:25'),(197,13449,'spce','2015-06-28 23:09:25'),(198,13474,'spce','2015-06-28 23:09:25'),(199,13475,'spce','2015-06-28 23:09:25'),(200,13519,'spce','2015-06-28 23:09:25'),(201,13658,'spce','2015-06-28 23:09:25'),(202,13659,'spce','2015-06-28 23:09:25'),(203,13829,'spce','2015-06-28 23:09:25'),(204,13830,'spce','2015-06-28 23:09:25'),(205,13831,'spce','2015-06-28 23:09:25'),(206,13833,'spce','2015-06-28 23:09:25'),(207,13834,'spce','2015-06-28 23:09:25'),(208,13835,'spce','2015-06-28 23:09:25'),(209,13836,'spce','2015-06-28 23:09:25'),(210,13837,'spce','2015-06-28 23:09:25'),(211,13838,'spce','2015-06-28 23:09:25'),(212,13839,'spce','2015-06-28 23:09:26'),(213,13840,'spce','2015-06-28 23:09:26'),(214,13841,'spce','2015-06-28 23:09:26'),(215,15000,'spce','2015-06-28 23:09:26'),(216,15001,'spce','2015-06-28 23:09:26'),(217,15002,'spce','2015-06-28 23:09:26'),(218,15003,'spce','2015-06-28 23:09:26'),(219,15004,'spce','2015-06-28 23:09:26'),(220,15005,'spce','2015-06-28 23:09:26'),(221,15006,'spce','2015-06-28 23:09:27'),(222,15007,'spce','2015-06-28 23:09:27'),(223,15008,'spce','2015-06-28 23:09:27'),(224,15009,'spce','2015-06-28 23:09:27'),(225,15010,'spce','2015-06-28 23:09:27'),(226,15011,'spce','2015-06-28 23:09:27'),(227,15013,'spce','2015-06-28 23:09:27'),(228,15014,'spce','2015-06-28 23:09:27'),(229,15015,'spce','2015-06-28 23:09:27'),(230,15016,'spce','2015-06-28 23:09:27'),(231,15017,'spce','2015-06-28 23:09:27'),(232,15018,'spce','2015-06-28 23:09:27'),(233,15019,'spce','2015-06-28 23:09:27'),(234,15020,'spce','2015-06-28 23:09:27'),(235,15021,'spce','2015-06-28 23:09:27'),(236,15022,'spce','2015-06-28 23:09:27'),(237,15023,'spce','2015-06-28 23:09:27'),(238,15024,'spce','2015-06-28 23:09:27'),(239,15025,'spce','2015-06-28 23:09:27'),(240,15026,'spce','2015-06-28 23:09:27'),(241,15027,'spce','2015-06-28 23:09:27'),(242,15028,'spce','2015-06-28 23:09:27'),(243,15029,'spce','2015-06-28 23:09:27'),(244,15030,'spce','2015-06-28 23:09:28'),(245,15031,'spce','2015-06-28 23:09:28'),(246,15032,'spce','2015-06-28 23:09:28'),(247,15033,'spce','2015-06-28 23:09:28'),(248,15034,'spce','2015-06-28 23:09:28'),(249,15035,'spce','2015-06-28 23:09:28'),(250,15036,'spce','2015-06-28 23:09:28'),(251,15037,'spce','2015-06-28 23:09:28'),(252,15038,'spce','2015-06-28 23:09:28'),(253,15039,'spce','2015-06-28 23:09:28'),(254,15040,'spce','2015-06-28 23:09:28'),(255,15041,'spce','2015-06-28 23:09:28'),(256,15042,'spce','2015-06-28 23:09:28'),(257,15043,'spce','2015-06-28 23:09:28'),(258,15044,'spce','2015-06-28 23:09:28'),(259,15045,'spce','2015-06-28 23:09:28'),(260,15046,'spce','2015-06-28 23:09:28'),(261,15047,'spce','2015-06-28 23:09:28'),(262,15048,'spce','2015-06-28 23:09:28'),(263,15049,'spce','2015-06-28 23:09:28'),(264,15050,'spce','2015-06-28 23:09:28'),(265,15051,'spce','2015-06-28 23:09:28'),(266,15052,'spce','2015-06-28 23:09:28'),(267,15053,'spce','2015-06-28 23:09:28'),(268,15054,'spce','2015-06-28 23:09:28'),(269,15055,'spce','2015-06-28 23:09:28'),(270,15056,'spce','2015-06-28 23:09:28'),(271,15057,'spce','2015-06-28 23:09:28'),(272,15058,'spce','2015-06-28 23:09:29'),(273,15059,'spce','2015-06-28 23:09:29'),(274,15060,'spce','2015-06-28 23:09:29'),(275,15061,'spce','2015-06-28 23:09:29'),(276,15062,'spce','2015-06-28 23:09:29'),(277,15063,'spce','2015-06-28 23:09:29'),(278,15064,'spce','2015-06-28 23:09:29'),(279,15065,'spce','2015-06-28 23:09:29'),(280,15066,'spce','2015-06-28 23:09:29'),(281,15067,'spce','2015-06-28 23:09:29'),(282,15068,'spce','2015-06-28 23:09:29'),(283,15069,'spce','2015-06-28 23:09:29'),(284,15070,'spce','2015-06-28 23:09:29'),(285,15071,'spce','2015-06-28 23:09:29'),(286,15072,'spce','2015-06-28 23:09:29'),(287,15073,'spce','2015-06-28 23:09:29'),(288,15074,'spce','2015-06-28 23:09:29'),(289,15075,'spce','2015-06-28 23:09:29'),(290,15076,'spce','2015-06-28 23:09:29'),(291,15077,'spce','2015-06-28 23:09:29'),(292,15078,'spce','2015-06-28 23:09:29'),(293,15079,'spce','2015-06-28 23:09:29'),(294,15080,'spce','2015-06-28 23:09:29'),(295,15081,'spce','2015-06-28 23:09:29'),(296,15082,'spce','2015-06-28 23:09:29'),(297,15083,'spce','2015-06-28 23:09:29'),(298,15084,'spce','2015-06-28 23:09:29'),(299,15085,'spce','2015-06-28 23:09:29'),(300,15086,'spce','2015-06-28 23:09:29'),(301,15087,'spce','2015-06-28 23:09:29'),(302,15088,'spce','2015-06-28 23:09:29'),(303,15089,'spce','2015-06-28 23:09:29'),(304,15090,'spce','2015-06-28 23:09:30'),(305,15091,'spce','2015-06-28 23:09:30'),(306,15092,'spce','2015-06-28 23:09:30'),(307,15093,'spce','2015-06-28 23:09:30'),(308,15094,'spce','2015-06-28 23:09:30'),(309,15095,'spce','2015-06-28 23:09:30'),(310,15096,'spce','2015-06-28 23:09:30'),(311,15097,'spce','2015-06-28 23:09:30'),(312,15098,'spce','2015-06-28 23:09:30'),(313,15099,'spce','2015-06-28 23:09:30'),(314,15100,'spce','2015-06-28 23:09:30'),(315,15101,'spce','2015-06-28 23:09:30'),(316,15102,'spce','2015-06-28 23:09:30'),(317,15103,'spce','2015-06-28 23:09:30'),(318,15104,'spce','2015-06-28 23:09:30'),(319,15105,'spce','2015-06-28 23:09:30'),(320,15106,'spce','2015-06-28 23:09:30'),(321,15107,'spce','2015-06-28 23:09:30'),(322,15108,'spce','2015-06-28 23:09:30'),(323,15109,'spce','2015-06-28 23:09:30'),(324,15110,'spce','2015-06-28 23:09:30'),(325,15111,'spce','2015-06-28 23:09:30'),(326,15112,'spce','2015-06-28 23:09:30'),(327,15113,'spce','2015-06-28 23:09:30'),(328,15114,'spce','2015-06-28 23:09:30'),(329,15115,'spce','2015-06-28 23:09:30'),(330,15116,'spce','2015-06-28 23:09:30'),(331,15117,'spce','2015-06-28 23:09:30'),(332,15118,'spce','2015-06-28 23:09:30'),(333,15119,'spce','2015-06-28 23:09:31'),(334,15120,'spce','2015-06-28 23:09:31'),(335,15121,'spce','2015-06-28 23:09:31'),(336,15122,'spce','2015-06-28 23:09:31'),(337,15123,'spce','2015-06-28 23:09:31'),(338,15124,'spce','2015-06-28 23:09:31'),(339,15125,'spce','2015-06-28 23:09:31'),(340,15126,'spce','2015-06-28 23:09:31'),(341,15127,'spce','2015-06-28 23:09:31'),(342,15128,'spce','2015-06-28 23:09:31'),(343,15129,'spce','2015-06-28 23:09:31'),(344,15130,'spce','2015-06-28 23:09:31'),(345,15131,'spce','2015-06-28 23:09:31'),(346,15132,'spce','2015-06-28 23:09:31'),(347,15133,'spce','2015-06-28 23:09:31'),(348,15134,'spce','2015-06-28 23:09:31'),(349,15135,'spce','2015-06-28 23:09:31'),(350,15136,'spce','2015-06-28 23:09:31'),(351,15137,'spce','2015-06-28 23:09:31'),(352,15138,'spce','2015-06-28 23:09:31'),(353,15139,'spce','2015-06-28 23:09:31'),(354,15140,'spce','2015-06-28 23:09:31'),(355,15141,'spce','2015-06-28 23:09:31'),(356,15142,'spce','2015-06-28 23:09:31'),(357,15143,'spce','2015-06-28 23:09:31'),(358,15144,'spce','2015-06-28 23:09:32'),(359,15145,'spce','2015-06-28 23:09:32'),(360,15146,'spce','2015-06-28 23:09:32'),(361,15147,'spce','2015-06-28 23:09:32'),(362,15148,'spce','2015-06-28 23:09:32'),(363,15149,'spce','2015-06-28 23:09:32'),(364,15150,'spce','2015-06-28 23:09:32'),(365,15151,'spce','2015-06-28 23:09:32'),(366,15152,'spce','2015-06-28 23:09:32'),(367,15153,'spce','2015-06-28 23:09:32'),(368,15154,'spce','2015-06-28 23:09:32'),(369,15155,'spce','2015-06-28 23:09:32'),(370,15156,'spce','2015-06-28 23:09:32'),(371,15157,'spce','2015-06-28 23:09:32'),(372,15158,'spce','2015-06-28 23:09:32'),(373,15159,'spce','2015-06-28 23:09:33'),(374,15160,'spce','2015-06-28 23:09:33'),(375,15161,'spce','2015-06-28 23:09:33'),(376,15162,'spce','2015-06-28 23:09:33'),(377,15163,'spce','2015-06-28 23:09:33'),(378,15164,'spce','2015-06-28 23:09:33'),(379,15165,'spce','2015-06-28 23:09:33'),(380,15166,'spce','2015-06-28 23:09:33'),(381,15167,'spce','2015-06-28 23:09:33'),(382,15168,'spce','2015-06-28 23:09:33'),(383,15169,'spce','2015-06-28 23:09:33'),(384,15170,'spce','2015-06-28 23:09:33');
/*!40000 ALTER TABLE `db_schema` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `prosody`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `prosody` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `prosody`;
DROP TABLE IF EXISTS `prosody`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prosody` (
`host` text,
`user` text,
`store` text,
`key` text,
`type` text,
`value` mediumtext,
KEY `prosody_index` (`host`(20),`user`(20),`store`(20),`key`(20))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `prosody` WRITE;
/*!40000 ALTER TABLE `prosody` DISABLE KEYS */;
/*!40000 ALTER TABLE `prosody` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `provisioning`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `provisioning` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `provisioning`;
DROP TABLE IF EXISTS `autoprov_configs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_configs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`version` varchar(255) NOT NULL,
`content_type` varchar(255) NOT NULL,
`data` mediumtext NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_config_device_idx` (`device_id`),
CONSTRAINT `fk_config_device_idx` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_configs` WRITE;
/*!40000 ALTER TABLE `autoprov_configs` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_configs` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_device_extensions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_device_extensions` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`extension_id` int(11) unsigned NOT NULL,
`order` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_dev_dev_const` (`device_id`),
KEY `fk_dev_ext_const` (`extension_id`),
CONSTRAINT `fk_dev_dev_const` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_dev_ext_const` FOREIGN KEY (`extension_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_device_extensions` WRITE;
/*!40000 ALTER TABLE `autoprov_device_extensions` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_device_extensions` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_device_line_annotations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_device_line_annotations` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`range_id` int(11) unsigned NOT NULL,
`line_index` int(4) unsigned NOT NULL,
`x` int(4) unsigned NOT NULL DEFAULT '0',
`y` int(4) unsigned NOT NULL DEFAULT '0',
`position` enum('top','bottom','left','right','bottomleft','bottomright','topleft','topright') DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `range_idx_k` (`range_id`,`line_index`),
KEY `fk_anno_range` (`range_id`),
CONSTRAINT `fk_anno_range` FOREIGN KEY (`range_id`) REFERENCES `autoprov_device_line_ranges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_device_line_annotations` WRITE;
/*!40000 ALTER TABLE `autoprov_device_line_annotations` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_device_line_annotations` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_device_line_ranges`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_device_line_ranges` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`num_lines` int(4) unsigned NOT NULL DEFAULT '0',
`can_private` tinyint(1) unsigned NOT NULL DEFAULT '0',
`can_shared` tinyint(1) unsigned NOT NULL DEFAULT '0',
`can_blf` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `fk_device_line` (`device_id`),
CONSTRAINT `fk_device_line` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_device_line_ranges` WRITE;
/*!40000 ALTER TABLE `autoprov_device_line_ranges` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_device_line_ranges` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_devices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_devices` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL,
`vendor` varchar(255) NOT NULL,
`model` varchar(255) NOT NULL,
`front_image` mediumblob,
`front_image_type` varchar(32) DEFAULT NULL,
`mac_image` mediumblob,
`mac_image_type` varchar(32) DEFAULT NULL,
`num_lines` int(5) unsigned DEFAULT NULL,
`bootstrap_method` enum('http','redirect_panasonic','redirect_yealink','redirect_polycom') DEFAULT NULL,
`bootstrap_uri` varchar(255) DEFAULT '',
`type` enum('phone','extension') DEFAULT 'phone',
`extensions_num` tinyint(3) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `reseller_idx` (`reseller_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_devices` WRITE;
/*!40000 ALTER TABLE `autoprov_devices` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_devices` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_field_device_lines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_field_device_lines` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`subscriber_id` int(11) unsigned NOT NULL,
`linerange_id` int(11) unsigned NOT NULL,
`key_num` int(11) unsigned NOT NULL,
`line_type` enum('private','shared','blf') DEFAULT 'private',
`extension_unit` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `fk_fdev_line_const` (`device_id`),
KEY `fk_sub_line_const` (`subscriber_id`),
KEY `fk_fielddevlines_devlinerange_idx` (`linerange_id`),
CONSTRAINT `autoprov_field_device_lines_ibfk_1` FOREIGN KEY (`linerange_id`) REFERENCES `autoprov_device_line_ranges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_fdev_line_const` FOREIGN KEY (`device_id`) REFERENCES `autoprov_field_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_sub_line_const` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_field_device_lines` WRITE;
/*!40000 ALTER TABLE `autoprov_field_device_lines` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_field_device_lines` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_field_devices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_field_devices` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`profile_id` int(11) unsigned NOT NULL,
`identifier` varchar(255) NOT NULL,
`bootstrapped` tinyint(1) NOT NULL DEFAULT '0',
`insecure_transfer` tinyint(1) NOT NULL DEFAULT '0',
`station_name` varchar(255) NOT NULL,
`encryption_key` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_identifier_idx` (`identifier`),
KEY `fk_fdev_subscriber_idx` (`contract_id`),
KEY `fk_fdev_profile_idx` (`profile_id`),
CONSTRAINT `fk_fdev_profile_idx` FOREIGN KEY (`profile_id`) REFERENCES `autoprov_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_field_devices` WRITE;
/*!40000 ALTER TABLE `autoprov_field_devices` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_field_devices` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_firmwares`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_firmwares` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`version` varchar(255) NOT NULL DEFAULT '',
`filename` varchar(255) NOT NULL,
`data` longblob NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_device_idx` (`device_id`),
KEY `version_idx` (`device_id`,`version`),
CONSTRAINT `fk_device_idx` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_firmwares` WRITE;
/*!40000 ALTER TABLE `autoprov_firmwares` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_firmwares` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_profiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_profiles` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`config_id` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_profile_config_idx` (`config_id`),
CONSTRAINT `fk_profile_config_idx` FOREIGN KEY (`config_id`) REFERENCES `autoprov_configs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_profiles` WRITE;
/*!40000 ALTER TABLE `autoprov_profiles` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_profiles` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_redirect_credentials`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_redirect_credentials` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(11) unsigned NOT NULL,
`user` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ap_devid_fk` (`device_id`),
CONSTRAINT `autoprov_redirect_credentials_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_redirect_credentials` WRITE;
/*!40000 ALTER TABLE `autoprov_redirect_credentials` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_redirect_credentials` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_sync` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`device_id` int(10) unsigned NOT NULL,
`parameter_id` int(10) unsigned NOT NULL,
`parameter_value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `a_s_paramid_ref` (`parameter_id`),
KEY `a_s_deviceid_ref` (`device_id`),
CONSTRAINT `a_s_paramid_ref` FOREIGN KEY (`parameter_id`) REFERENCES `autoprov_sync_parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `a_s_deviceid_ref` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_sync` WRITE;
/*!40000 ALTER TABLE `autoprov_sync` DISABLE KEYS */;
/*!40000 ALTER TABLE `autoprov_sync` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `autoprov_sync_parameters`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autoprov_sync_parameters` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`bootstrap_method` enum('http','redirect_panasonic','redirect_yealink','redirect_polycom') NOT NULL DEFAULT 'http',
`parameter_name` enum('sync_uri','sync_method','sync_params','security_handler','profile') NOT NULL,
`parameter_constraint` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sync_parameter` (`bootstrap_method`,`parameter_name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `autoprov_sync_parameters` WRITE;
/*!40000 ALTER TABLE `autoprov_sync_parameters` DISABLE KEYS */;
INSERT INTO `autoprov_sync_parameters` VALUES (1,'http','sync_uri',''),(2,'http','sync_params',''),(3,'http','sync_method','/^(?:GET|POST)$/i'),(4,'http','security_handler','');
/*!40000 ALTER TABLE `autoprov_sync_parameters` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `language_strings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `language_strings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(63) NOT NULL,
`language` char(2) NOT NULL,
`string` text,
PRIMARY KEY (`id`),
UNIQUE KEY `codelang_idx` (`code`,`language`)
) ENGINE=InnoDB AUTO_INCREMENT=1252 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `language_strings` WRITE;
/*!40000 ALTER TABLE `language_strings` DISABLE KEYS */;
INSERT INTO `language_strings` VALUES (1,'Client.Billing.MalformedAmount','de','Bitte geben Sie einen ganzzahligen Betrag ein.'),(2,'Client.Billing.MalformedAmount','en','Please specify the amount as an integral number.'),(3,'Client.Billing.MalformedAmount','es','Por favor, especifique la cantidad como un número entero.'),(4,'Client.Billing.MalformedAmount','fr','Spécifiez la quantité comme un numéro intégral.'),(5,'Client.Billing.NoPayType','de','Bitte wählen Sie eine Zahlungsweise aus.'),(6,'Client.Billing.NoPayType','en','Please choose a payment type.'),(7,'Client.Billing.NoPayType','es','Por favor, elija un método de pago.'),(8,'Client.Billing.NoPayType','fr','Choisissez un type de paiement.'),(9,'Client.Syntax.Date','de','Bitte geben Sie ein gültiges Datum ein.'),(10,'Client.Syntax.Date','en','Invalid date format.'),(11,'Client.Syntax.Date','es','Formato de fecha inválido.'),(12,'Client.Syntax.Date','fr','Format date invalide.'),(13,'Client.Syntax.Email','de','Ungültige E-Mail Adresse.'),(14,'Client.Syntax.Email','en','Invalid e-mail address.'),(15,'Client.Syntax.Email','es','Dirección de correo inválida.'),(16,'Client.Syntax.Email','fr','Adresse électronique Invalide.'),(17,'Client.Syntax.MalformedDomain','de','Ungültige Zeichen in der Domain.'),(18,'Client.Syntax.MalformedDomain','en','Invalid characters in domain.'),(19,'Client.Syntax.MalformedDomain','es','Caracteres inválidos en dominio.'),(20,'Client.Syntax.MalformedDomain','fr','Caractères Invalides dans domaine.'),(21,'Client.Syntax.MalformedUsername','de','Ungültige Zeichen im Usernamen.'),(22,'Client.Syntax.MalformedUsername','en','Invalid characters in username.'),(23,'Client.Syntax.MalformedUsername','es','Caracteres inválidos en el nombre de usuario.'),(24,'Client.Syntax.MalformedUsername','fr','Nom d\'utilisateur Invalides.'),(25,'Client.Syntax.MissingDomain','de','Bitte geben Sie Ihren Usernamen inklusive Domain ein.'),(26,'Client.Syntax.MissingDomain','en','Please enter username including domain.'),(27,'Client.Syntax.MissingDomain','es','Por favor, introduzca el nombre de usuario incluyendo el dominio.'),(28,'Client.Syntax.MissingDomain','fr','Entrez nom d\'utilisateur incluant le domaine.'),(29,'Client.Syntax.MissingParam','en','A mandatory parameter is missing.'),(30,'Client.Syntax.MissingParam','de','Ein verplichtender Parameter fehlt.'),(31,'Client.Syntax.MissingParam','es','Falta un campo obligatorio.'),(32,'Client.Syntax.MissingParam','fr','Il manque un paramètre obligatoire.'),(33,'Client.Syntax.MalformedUri','en','Invalid SIP URI.'),(34,'Client.Syntax.MalformedUri','de','Ungültige SIP URI.'),(35,'Client.Syntax.MalformedUri','es','Caracteres inválidos en el URI SIP.'),(36,'Client.Syntax.MalformedUri','fr','SIP URI Invalides.'),(37,'Client.Syntax.MissingUsername','de','Bitte geben Sie einen Usernamen ein.'),(38,'Client.Syntax.MissingUsername','en','Please enter a username.'),(39,'Client.Syntax.MissingUsername','es','Por favor,introduzca un nombre de usuario.'),(40,'Client.Syntax.MissingUsername','fr','Entrez un nom d\'utilisateur.'),(41,'Client.Syntax.VoiceBoxPin','de','Bitte geben Sie 4 Ziffern ein oder lassen Sie das Feld leer.'),(42,'Client.Syntax.VoiceBoxPin','en','Please enter 4 digits, or leave the textfield empty.'),(43,'Client.Syntax.VoiceBoxPin','es','Por favor, introduzca 4 dígitos o deje el campo en blanco.'),(44,'Client.Syntax.VoiceBoxPin','fr','Entrez 4 chiffres, ou laissez le champ texte vide.'),(45,'Client.Voip.AssignedExtension','de','Die gewählte Durchwahl ist bereits vergeben.'),(46,'Client.Voip.AssignedExtension','en','This extension is already in use.'),(47,'Client.Voip.AssignedExtension','es','Esta extensión ya se encuentra en uso.'),(48,'Client.Voip.AssignedExtension','fr','Cette extension est déjà utilisée.'),(49,'Client.Voip.AssignedNumber','de','Die Telefonnummer ist nicht mehr verfügbar.'),(50,'Client.Voip.AssignedNumber','en','The specified telephone number is not available any more.'),(51,'Client.Voip.AssignedNumber','es','Este número ya no se encuentra disponible.'),(52,'Client.Voip.AssignedNumber','fr','Le numéro de téléphone indiqué n\'est désormais plus disponible.'),(53,'Client.Voip.AuthFailed','de','Login fehlgeschlagen, bitte überprüfen Sie Ihren Usernamen und Ihr Passwort.'),(54,'Client.Voip.AuthFailed','en','Login failed, please verify username and password.'),(55,'Client.Voip.AuthFailed','es','Acceso denegado. Por favor, compruebe el nombre de usuario y la contraseña.'),(56,'Client.Voip.AuthFailed','fr','L\'établissement de la connexion a échoué, vérifiez le nom dutilisateur et le mot de passe.'),(57,'Client.Voip.ChooseNumber','de','Bitte wählen Sie eine Nummer aus der Liste.'),(58,'Client.Voip.ChooseNumber','en','Please select a number from the list.'),(59,'Client.Voip.ChooseNumber','es','Por favor, seleccione un número de la lista.'),(60,'Client.Voip.ChooseNumber','fr','Choisissez s\'il vous plaît un numéro de la liste.'),(61,'Client.Voip.DeniedNumber','de','Die Telefonnummer ist nicht mehr verfügbar.'),(62,'Client.Voip.DeniedNumber','en','The specified telephonenumber is not available.'),(63,'Client.Voip.DeniedNumber','es','Este número no se encuentra disponible.'),(64,'Client.Voip.DeniedNumber','fr','Le numéro de téléphone indiqué n\'est pas disponible.'),(65,'Client.Voip.ExistingSubscriber','de','Dieser Username ist nicht mehr verfügbar.'),(66,'Client.Voip.ExistingSubscriber','en','This username is already in use.'),(67,'Client.Voip.ExistingSubscriber','es','El nombre de usuario ya se encuentra en uso.'),(68,'Client.Voip.ExistingSubscriber','fr','Ce nom d\'utilisateur est déjà utilisé'),(69,'Client.Voip.ForwardSelect','de','Bitte wählen Sie unter welchen Umständen ein Anruf weitergeleitet werden soll.'),(70,'Client.Voip.ForwardSelect','en','Please select when to forward a call.'),(71,'Client.Voip.ForwardSelect','es','Por favor, seleccione cuándo desea reenviar llamadas.'),(72,'Client.Voip.ForwardSelect','fr','Choisissez quand transféré un appel.'),(73,'Client.Voip.IncorrectPass','de','Das Passwort ist nicht korrekt, bitte überprüfen Sie die Eingabe.'),(74,'Client.Voip.IncorrectPass','en','Wrong password, please verify your input.'),(75,'Client.Voip.IncorrectPass','es','Contraseña incorrecta. Por favor, verifique que la ha escrito correctamente.'),(76,'Client.Voip.IncorrectPass','fr','Mauvais mot de passe, vérifiez votre saisie.'),(77,'Client.Voip.InputErrorFound','de','Fehlende oder fehlerhafte Eingabedaten gefunden.'),(78,'Client.Voip.InputErrorFound','en','Missing or invalid input found.'),(79,'Client.Voip.InputErrorFound','es','Entrada inválida o ausente.'),(80,'Client.Voip.InputErrorFound','fr','La saisie trouvée est invalide.'),(81,'Client.Voip.MalformedAc','de','Ungültige Ortsvorwahl, bitte geben Sie nur Ziffern, ohne führende Null ein.'),(82,'Client.Voip.MalformedAc','en','Invalid area code, please use digits only and don\'t enter a leading zero.'),(83,'Client.Voip.MalformedAc','es','Código de área erroneo. Por favor, use dígitos únicamente y no introduzca un cero inicial.'),(84,'Client.Voip.MalformedAc','fr','L\'indicatif invalide, utilisez uniquement des chiffres et n\'entrez pas dans un zéro principal.'),(85,'Client.Voip.MalformedCc','de','Ungültige Ländervorwahl, bitte geben Sie nur Ziffern, ohne führende Nullen ein.'),(86,'Client.Voip.MalformedCc','en','Invalid country code, please use digits only, without leading zeros.'),(87,'Client.Voip.MalformedCc','es','Código de país erroneo. Por favor, use dígitos únicamente y no introduzca un cero inicial.'),(88,'Client.Voip.MalformedCc','fr','Le code du pays est invalide, utilisez uniquement des chiffres, sans zéros principaux.'),(89,'Client.Voip.MalformedSn','de','Ungültige Rufnummer, bitte geben Sie nur Ziffern ein. (Die Nummer darf nicht mit Null beginnen.)'),(90,'Client.Voip.MalformedSn','en','Invalid subscriber number, please use digits only. (The number can not start with a zero.)'),(91,'Client.Voip.MalformedSn','es','Número de suscriptor inválido. Por favor, use dígitos unicamente. (El número no puede empezar por cero).'),(92,'Client.Voip.MalformedSn','fr','Le numéro de l\'abonné est invalide, utilisez uniquement des chiffres. (Le numéro ne peut pas commencer par un zéro).'),(93,'Client.Voip.MalformedNumber','de','Ungültige Eingabe, bitte geben Sie Rufnummern numerisch und inklusive Vorwahl an.'),(94,'Client.Voip.MalformedNumber','en','Invalid number, please use digits only and include the area code.'),(95,'Client.Voip.MalformedNumber','es','Número inválido. Por favor, use dígitos únicamente e incluya el código de área.'),(96,'Client.Voip.MalformedNumber','fr','Le numéro est invalide, utilisez uniquement des chiffres et incluez l\'indicatif.'),(97,'Client.Voip.MalformedNumberPattern','de','Ungültiger Eintrag, bitte verwenden Sie nur Ziffern und \"?\" bzw. \"*\" als Platzhalter für ein, bzw. beliebig viele Zeichen.'),(98,'Client.Voip.MalformedNumberPattern','en','Invalid entry, please use numbers only and \"?\" or \"*\" as placeholder for one or an arbitrary number of digits.'),(99,'Client.Voip.MalformedNumberPattern','es','Entrada inválida. Por favor, use dígitos únicamente y \"?\" o \"*\" como comodines para uno o un número arbitrario de dígitos.'),(100,'Client.Voip.MalformedNumberPattern','fr','Saisie invalide, utilisez uniquement des numéros et \"?\" Ou \"*\" comme détenteur dendroit pour un ou un numéro arbitraire de chiffres.'),(101,'Client.Voip.MalformedTargetClass','de','Bitte wählen Sie ein Ziel.'),(102,'Client.Voip.MalformedTargetClass','en','Please choose a target.'),(103,'Client.Voip.MalformedTargetClass','es','Por favor, escoja un objetivo.'),(104,'Client.Voip.MalformedTargetClass','fr','Choisissez une destination (cible).'),(105,'Client.Voip.MalformedTarget','de','Ungültige Zielangabe, bitte verwenden Sie entweder nur Ziffern, oder geben Sie einen gültigen SIP User ein.'),(106,'Client.Voip.MalformedTarget','en','Invalid destination, please use digits only or enter a valid SIP URI.'),(107,'Client.Voip.MalformedTarget','es','Destino inválido. Por favor, use dígitos exclusivamente o introduzca una SIP URI válida.'),(108,'Client.Voip.MalformedTarget','fr','La destination invalide, utilisez uniquement des chiffres ou entrez dans une SIP URI valide'),(109,'Client.Voip.MalformedTimeout','de','Ungültiger Timeout, bitte verwenden Sie nur Ziffern.'),(110,'Client.Voip.MalformedTimeout','en','Invalid timeout, please use digits only.'),(111,'Client.Voip.MalformedTimeout','es','Invalid timeout, please use digits only.'),(112,'Client.Voip.MalformedTimeout','fr','Invalid timeout, please use digits only.'),(113,'Client.Voip.MissingName','de','Bitte geben Sie zumindest Vor- oder Nachnamen ein.'),(114,'Client.Voip.MissingName','en','Please enter at least a first or last name.'),(115,'Client.Voip.MissingName','es','Por favor, introduzca al menos un nombre o un apellido.'),(116,'Client.Voip.MissingName','fr','Entrez au moins un prénom ou nom de famille.'),(117,'Client.Voip.MissingOldPass','de','Bitte geben Sie Ihr aktuelles Passwort ein.'),(118,'Client.Voip.MissingOldPass','en','Please enter your current password.'),(119,'Client.Voip.MissingOldPass','es','Por favor, introduzca su contraseña actual.'),(120,'Client.Voip.MissingOldPass','fr','Entrez votre mot de passe actuel.'),(121,'Client.Voip.MissingPass2','de','Bitte geben Sie das Passwort in beide Felder ein.'),(122,'Client.Voip.MissingPass2','en','Please enter the password in both fields.'),(123,'Client.Voip.MissingPass2','es','Por favor, introduzca la contraseña en ambos campos.'),(124,'Client.Voip.MissingPass2','fr','Entrez le mot de passe dans les deux champs.'),(125,'Client.Voip.MissingPass','de','Bitte geben Sie ein Passwort ein.'),(126,'Client.Voip.MissingPass','en','Please enter a password.'),(127,'Client.Voip.MissingPass','es','Por favor, introduzca una contraseña.'),(128,'Client.Voip.MissingPass','fr','Entrez votre mot de passe.'),(129,'Client.Voip.MissingRingtimeout','de','Bitte wählen Sie die Zeitdauer nach der Anrufe weitergeleitet werden sollen. (In Sekunden, von 5 bis 300).'),(130,'Client.Voip.MissingRingtimeout','en','Please specify a timeout for incoming calls. (In seconds from 5 to 300).'),(131,'Client.Voip.MissingRingtimeout','es','Por favor, especifique un tiempo límite para llamadas entrantes. (En segundos, en el rango de 5 a 300).'),(132,'Client.Voip.MissingRingtimeout','fr','Spécifiez un temps mort pour des appels entrants. (En secondes 5 à 300).'),(133,'Client.Voip.NoSuchDomain','de','Die angegebene Domain existiert nicht in der Datenbank.'),(134,'Client.Voip.NoSuchDomain','en','The specified domain does not exist.'),(135,'Client.Voip.NoSuchDomain','es','El dominio especificado no existe.'),(136,'Client.Voip.NoSuchDomain','fr','Le domaine indiqué n\'existe pas.'),(137,'Client.Voip.NoSuchNumber','de','Die Telefonnummer ist nicht verfügbar.'),(138,'Client.Voip.NoSuchNumber','en','The specified telephonenumber is not available.'),(139,'Client.Voip.NoSuchNumber','es','El número especificado no se encuentra disponible.'),(140,'Client.Voip.NoSuchNumber','fr','Le numéro de téléphone indiqué n\'est pas disponible.'),(141,'Client.Voip.PassLength','de','The password is too short'),(142,'Client.Voip.PassLength','en','The password is too short'),(143,'Client.Voip.PassLength','es','The password is too short'),(144,'Client.Voip.PassLength','fr','The password is too short'),(145,'Client.Voip.PassNoMatch','de','Die Passwörter stimmen nicht überein, bitte überprüfen Sie die Eingabe.'),(146,'Client.Voip.PassNoMatch','en','Passwords do not match, please try again.'),(147,'Client.Voip.PassNoMatch','es','Las contraseñas no coinciden. Por favor, inténtelo de nuevo.'),(148,'Client.Voip.PassNoMatch','fr','Les mots de passe ne correspondent pas, essayez de nouveau.'),(149,'Client.Voip.ToManyPreference','de','Maximale Anzahl von Einträgen erreicht.'),(150,'Client.Voip.ToManyPreference','en','Maximum number of entries reached.'),(151,'Client.Voip.ToManyPreference','es','Alcanzado el número máximo de entradas.'),(152,'Client.Voip.ToManyPreference','fr','Le nombre maximal d\'entrées est atteint.'),(153,'Server.Billing.Success','de','Ihr Konto wurde erfolgreich aufgeladen.'),(154,'Server.Billing.Success','en','Your account has been topped up successfully.'),(155,'Server.Billing.Success','es','Su cobro se ha realizado correctamente.'),(156,'Server.Billing.Success','fr','Votre compte a été rechargé avec succès.'),(157,'Server.Internal','de','Ein interner Systemfehler ist aufgetreten, bitte versuchen Sie es später wieder.'),(158,'Server.Internal','en','Internal error, please try again later.'),(159,'Server.Internal','es','Se ha detectado un error interno. Por favor, inténtelo de nuevo más tarde.'),(160,'Server.Internal','fr','Erreur interne, essayez de nouveau plus tard.'),(161,'Server.Paypal.Error','de','Bitte folgen Sie den Anweisungen auf der PayPal Webseite um die Überweisung durchzuführen.'),(162,'Server.Paypal.Error','en','Please follow the instrutions on the PayPal website to transfer the credit.'),(163,'Server.Paypal.Error','es','Por favor, siga las instrucciones en la web de PayPal para realizar la transferencia.'),(164,'Server.Paypal.Error','fr','Suivez s\'il vous plaît les instructions sur le site Web PayPal pour transférer le crédit.'),(165,'Server.Paypal.Fault','de','Fehler in der Kommunikation mit PayPal, bitte versuchen Sie es etwas später noch einmal.'),(166,'Server.Paypal.Fault','en','Communication error with PayPal server, please try again later.'),(167,'Server.Paypal.Fault','es','No se puede comunicar con el servidor de PayPal. Por favor, inténtelo de nuevo más tarde.'),(168,'Server.Paypal.Fault','fr','Erreur de communication avec le serveur PayPal, essayez de nouveau plus tard.'),(169,'Server.Paypal.Invalid','de','Fehler in der Kommunikation mit PayPal, bitte versuchen Sie es etwas später noch einmal.'),(170,'Server.Paypal.Invalid','en','Communication error with PayPal server, please try again later.'),(171,'Server.Paypal.Invalid','es','Ha ocurrido un error de comunicación con el servidor de PayPal. Por favor, inténtelo de nuevo más tarde.'),(172,'Server.Paypal.Invalid','fr','Erreur de communication avec le serveur PayPal, essayez de nouveau plus tard.'),(173,'Server.Voip.RemovedContact','de','Der Kontakteintrag wurde gelöscht.'),(174,'Server.Voip.RemovedContact','en','The contact entry has been deleted.'),(175,'Server.Voip.RemovedContact','es','El contacto ha sido eliminado.'),(176,'Server.Voip.RemovedContact','fr','Le contact saisi a été supprimée.'),(177,'Server.Voip.RemovedRegisteredContact','de','Die Registrierung wurde gelöscht.'),(178,'Server.Voip.RemovedRegisteredContact','en','The registered contact has been deleted.'),(179,'Server.Voip.RemovedRegisteredContact','es','El contacto ha sido eliminado.'),(180,'Server.Voip.RemovedRegisteredContact','fr','Le contact enregistré a été supprimé.'),(181,'Server.Voip.AddedRegisteredContact','de','Permanenter Registrierungseintrag wurde hinzugefügt.'),(182,'Server.Voip.AddedRegisteredContact','en','Permanent registration contact has been added.'),(183,'Server.Voip.AddedRegisteredContact','es','Contacto permanente guardado correctamente.'),(184,'Server.Voip.AddedRegisteredContact','fr','Le contact enregistré a été ajouté.'),(185,'Server.Voip.RemovedVoicemail','de','Die Sprachnachricht wurde gelöscht.'),(186,'Server.Voip.RemovedVoicemail','en','The voicemail has been deleted.'),(187,'Server.Voip.RemovedVoicemail','es','El buzón de voz ha sido eliminado.'),(188,'Server.Voip.RemovedVoicemail','fr','La boîte vocale a été supprimé.'),(189,'Server.Voip.SavedContact','de','Der Kontakteintrag wurde gespeichert.'),(190,'Server.Voip.SavedContact','en','The contact entry bas been saved.'),(191,'Server.Voip.SavedContact','es','Contacto guardado correctamente.'),(192,'Server.Voip.SavedContact','fr','Le contact saisi a été enregistré.'),(193,'Server.Voip.SavedPass','de','Ihr Passwort wurde erfolgreich geändert.'),(194,'Server.Voip.SavedPass','en','The password has been changed successfully.'),(195,'Server.Voip.SavedPass','es','Su contraseña ha sido modificada correctamente.'),(196,'Server.Voip.SavedPass','fr','Le mot de passe a été changé avec succès.'),(197,'Server.Voip.SavedSettings','de','Ihre Einstellungen wurden gespeichert.'),(198,'Server.Voip.SavedSettings','en','Your settings have been saved.'),(199,'Server.Voip.SavedSettings','es','Sus preferencias han sido guardadas.'),(200,'Server.Voip.SavedSettings','fr','Vos paramètres ont été enregistrés.'),(201,'Server.Voip.SubscriberCreated','de','Der Benutzer wurde gespeichert und kann jetzt konfiguriert werden.'),(202,'Server.Voip.SubscriberCreated','en','The user has been saved and may be configured.'),(203,'Server.Voip.SubscriberCreated','es','El usuario ha sido guardado y puede ser configurado.'),(204,'Server.Voip.SubscriberCreated','fr','L\'utilisateur a été enregistré et peut être configuré.'),(205,'Server.Voip.SubscriberDeleted','de','Der Benutzer wurde gelöscht.'),(206,'Server.Voip.SubscriberDeleted','en','The user has been deleted.'),(207,'Server.Voip.SubscriberDeleted','es','El usuario ha sido eliminado.'),(208,'Server.Voip.SubscriberDeleted','fr','L\'utilisateur a été supprimé.'),(209,'Server.System.RRDOpenError','en','Failed to open RRD file.'),(210,'Server.System.RRDOpenError','de','Fehler beim Öffnen der RRD-Datei.'),(211,'Server.System.RRDOpenError','es','No se ha podido abrir el ficherp RRD.'),(212,'Server.System.RRDOpenError','fr','Tentative douverture du fichier RRD à échoué.'),(213,'Server.System.RRDBinmodeError','en','Failed to switch to BIN mode in RRD file.'),(214,'Server.System.RRDBinmodeError','de','Fehler beim Wechsel auf BIN mode in RRD-Datei.'),(215,'Server.System.RRDBinmodeError','es','No se ha podido pasar a modo BIN en el fichero RRD.'),(216,'Server.System.RRDBinmodeError','fr','Echec de switch en mode BIN dans le fichier RRD.'),(217,'Server.System.RRDReadError','en','Failed to read RRD file.'),(218,'Server.System.RRDReadError','de','Fehler beim Lesen der RRD-Datei.'),(219,'Server.System.RRDReadError','es','No se ha podido leer el fichero RRD.'),(220,'Server.System.RRDReadError','fr','Tentative de lecture du fichier RRD à échoué.'),(221,'Web.Addressbook.Fax','de','Fax'),(222,'Web.Addressbook.Fax','en','Fax'),(223,'Web.Addressbook.Fax','es','Fax'),(224,'Web.Addressbook.Fax','fr','Fax'),(225,'Web.Addressbook.Home','de','Privat'),(226,'Web.Addressbook.Home','en','Home'),(227,'Web.Addressbook.Home','es','Domicilio'),(228,'Web.Addressbook.Home','fr','Domicile'),(229,'Web.Addressbook.Mobile','de','Mobil'),(230,'Web.Addressbook.Mobile','en','Mobile'),(231,'Web.Addressbook.Mobile','es','Móvil'),(232,'Web.Addressbook.Mobile','fr','Portable'),(233,'Web.Addressbook.Office','de','Büro'),(234,'Web.Addressbook.Office','en','Office'),(235,'Web.Addressbook.Office','es','Trabajo'),(236,'Web.Addressbook.Office','fr','Travail'),(237,'Web.MissingRedInput','de','Bitte füllen Sie alle rot umrandeten Felder aus.'),(238,'Web.MissingRedInput','en','Please fill in at least all red bordered input fields.'),(239,'Web.MissingRedInput','es','Por favor, rellene al menos todos los campos con borde rojo.'),(240,'Web.MissingRedInput','fr','Remplissez au moins tous les champs de saisie de bordure rouges.'),(241,'Web.Months.01','de','Jänner'),(242,'Web.Months.01','en','January'),(243,'Web.Months.01','es','Enero'),(244,'Web.Months.01','fr','Janvier'),(245,'Web.Months.02','de','Februar'),(246,'Web.Months.02','en','February'),(247,'Web.Months.02','es','Febrero'),(248,'Web.Months.02','fr','Février'),(249,'Web.Months.03','de','März'),(250,'Web.Months.03','en','March'),(251,'Web.Months.03','es','Marzo'),(252,'Web.Months.03','fr','Mars'),(253,'Web.Months.04','de','April'),(254,'Web.Months.04','en','April'),(255,'Web.Months.04','es','Abril'),(256,'Web.Months.04','fr','Avril'),(257,'Web.Months.05','de','Mai'),(258,'Web.Months.05','en','May'),(259,'Web.Months.05','es','Mayo'),(260,'Web.Months.05','fr','Mai'),(261,'Web.Months.06','de','Juni'),(262,'Web.Months.06','en','June'),(263,'Web.Months.06','es','Junio'),(264,'Web.Months.06','fr','Juin'),(265,'Web.Months.07','de','Juli'),(266,'Web.Months.07','en','July'),(267,'Web.Months.07','es','Julio'),(268,'Web.Months.07','fr','Juillet'),(269,'Web.Months.08','de','August'),(270,'Web.Months.08','en','August'),(271,'Web.Months.08','es','Agosto'),(272,'Web.Months.08','fr','Août'),(273,'Web.Months.09','de','September'),(274,'Web.Months.09','en','September'),(275,'Web.Months.09','es','Septiembre'),(276,'Web.Months.09','fr','Septembre'),(277,'Web.Months.10','de','Oktober'),(278,'Web.Months.10','en','October'),(279,'Web.Months.10','es','Octubre'),(280,'Web.Months.10','fr','Octobre'),(281,'Web.Months.11','de','November'),(282,'Web.Months.11','en','November'),(283,'Web.Months.11','es','Noviembre'),(284,'Web.Months.11','fr','Novembre'),(285,'Web.Months.12','de','Dezember'),(286,'Web.Months.12','en','December'),(287,'Web.Months.12','es','Diciembre'),(288,'Web.Months.12','fr','Decembre'),(289,'Client.Syntax.AccountID','de','Ungültige ID, bitte verwenden Sie nur Ziffern.'),(290,'Client.Syntax.AccountID','en','Invalid ID, please use numbers only.'),(291,'Client.Syntax.AccountID','es','ID inválido. Por favor use dígitos exclusivamente.'),(292,'Client.Syntax.AccountID','fr','Identifiant invalide utilisé uniquement des numéros.'),(293,'Client.Syntax.CashValue','de','Ungültiger Betrag, bitte geben Sie nur Ziffern ein, mit Beistrich oder Punkt als Dezimaltrenner.'),(294,'Client.Syntax.CashValue','en','Invalid amount, please use numbers only, with comma or dot as decimal separator.'),(295,'Client.Syntax.CashValue','es','Cantidad inválida. Por favor, use dígitos exclusivamente, con coma o punto como separador decimal.'),(296,'Client.Syntax.CashValue','fr','La quantité (somme) est invalide, utilisez des numéros uniquement des nombres, avec la virgule ou le point comme le séparateur décimal.'),(297,'Client.Syntax.TimeValue','de','Ungültige Eingabe, bitte geben Sie eine ganze Zahl ein.'),(298,'Client.Syntax.TimeValue','en','Invalid input, please use numbers only.'),(299,'Client.Syntax.TimeValue','es','Entrada inválida. Por favor, use dígitos exclusivamente.'),(300,'Client.Syntax.TimeValue','fr','La saisie est invalide, utilisez uniquement des nombres.'),(301,'Client.Syntax.LoginMissingUsername','de','Bitte geben Sie Ihren Usernamen ein.'),(302,'Client.Syntax.LoginMissingUsername','en','Please enter your username.'),(303,'Client.Syntax.LoginMissingUsername','es','Por favor, introduzca su nombre de usuario.'),(304,'Client.Syntax.LoginMissingUsername','fr','Entrer votre nom dutilisateur.'),(305,'Client.Syntax.LoginMissingPass','de','Bitte geben Sie Ihr Passwort ein.'),(306,'Client.Syntax.LoginMissingPass','en','Please enter your password.'),(307,'Client.Syntax.LoginMissingPass','es','Por favor, introduzca su contraseña.'),(308,'Client.Syntax.LoginMissingPass','fr','Entrer votre mot de passe.'),(309,'Client.Voip.NoSuchAccount','de','Der Account existiert nicht.'),(310,'Client.Voip.NoSuchAccount','en','This account does not exist.'),(311,'Client.Voip.NoSuchAccount','es','La cuenta no existe.'),(312,'Client.Voip.NoSuchAccount','fr','Ce compte nexiste pas.'),(313,'Client.Voip.ExistingDomain','de','Diese Domain existiert bereits.'),(314,'Client.Voip.ExistingDomain','en','This domain already exists.'),(315,'Client.Voip.ExistingDomain','es','El dominio ya existe.'),(316,'Client.Voip.ExistingDomain','fr','Ce domaine existe déjà.'),(317,'Web.Domain.Created','de','Die Domain wurde gespeichert.'),(318,'Web.Domain.Created','en','The domain has been saved.'),(319,'Web.Domain.Created','es','El dominio ha sido guardado.'),(320,'Web.Domain.Created','fr','Le domaine a été enregistré.'),(321,'Web.Domain.Deleted','de','Die Domain wurde gelöscht.'),(322,'Web.Domain.Deleted','en','The domain has been deleted.'),(323,'Web.Domain.Deleted','es','El dominio ha sido eliminado.'),(324,'Web.Domain.Deleted','fr','Le domaine a été supprimé.'),(325,'Client.Admin.ExistingAdmin','de','Dieser username ist bereits in Verwendung.'),(326,'Client.Admin.ExistingAdmin','en','This username is already in use.'),(327,'Client.Admin.ExistingAdmin','es','El nombre de usuario ya se encuentra en uso.'),(328,'Client.Admin.ExistingAdmin','fr','Ce nom dutilisateur existe déjà.'),(329,'Client.Admin.NoSuchAdmin','de','Dieser Administrator existiert nicht.'),(330,'Client.Admin.NoSuchAdmin','en','This administrator does not exist.'),(331,'Client.Admin.NoSuchAdmin','es','El administrador no existe.'),(332,'Client.Admin.NoSuchAdmin','fr','Cet administrateur nexiste pas.'),(333,'Client.Syntax.MalformedLogin','de','Ungültig Zeichen im Loginnamen. Bitte verwenden Sie nur Buchstaben und Zahlen.'),(334,'Client.Syntax.MalformedLogin','en','Invalid characters in login name. Please use alphanumeric characters only.'),(335,'Client.Syntax.MalformedLogin','es','Caracteres inválidos en nombre de usuario. Por favor use únicamente caracteres alfanuméricos.'),(336,'Client.Syntax.MalformedLogin','fr','Caractères invalides de nom d\'établissement de la connexion. Utilisez uniquement caractères alphanumériques.'),(337,'Web.Admin.Created','de','Der Administrator wurde gespeichert.'),(338,'Web.Admin.Created','en','The administrator has been saved.'),(339,'Web.Admin.Created','es','El administrador ha sido guardado.'),(340,'Web.Admin.Created','fr','L\'administrateur a été enregistré.'),(341,'Web.Admin.Deleted','de','Der Administrator wurde gelöscht.'),(342,'Web.Admin.Deleted','en','The administrator has been deleted.'),(343,'Web.Admin.Deleted','es','El administrador ha sido eliminado.'),(344,'Web.Admin.Deleted','fr','L\'administrateur a été supprimé.'),(345,'Web.Account.Created','de','Der Account wurde gespeichert.'),(346,'Web.Account.Created','en','The account has been saved.'),(347,'Web.Account.Created','es','La cuenta ha sido guardada.'),(348,'Web.Account.Created','fr','Le compte a été enregistré.'),(349,'Web.Payment.UnknownError','de','Bei der Initialisierung des Zahlvorgangs ist ein Fehler aufgetreten. Bitte versuchen Sie es etwas späeter nochmals und überprüfen Sie Ihre Eingaben.'),(350,'Web.Payment.UnknownError','en','Failed to initialize the transaction. Please try again later and verify your input.'),(351,'Web.Payment.UnknownError','es','Se ha detectado un error al inicial la transacción. Por favor, verifique los datos e inténtelo de nuevo más tarde.'),(352,'Web.Payment.UnknownError','fr','Echec dinitialisation de la transaction. Essayez de nouveau plus tard et vérifiez votre saisie.'),(353,'Web.Payment.HttpFailed','de','Der Payment Server konnte nicht erreicht werden. Bitte versuchen Sie es etwas später nochmals.'),(354,'Web.Payment.HttpFailed','en','The payment server could not be reached. Please try again later.'),(355,'Web.Payment.HttpFailed','es','Se ha detectado un error al intertar conectar con el servidor de pagos. Por favor, inténtelo de nuevo más tarde.'),(356,'Web.Payment.HttpFailed','fr','Le serveur de paiement ne pouvait pas être atteint. Essayez de nouveau plus tard.'),(357,'Web.Syntax.Numeric','de','Ungültige Zahlenangabe, bitte verwenden Sie nur Ziffern.'),(358,'Web.Syntax.Numeric','en','Invalid number, please use numerics only.'),(359,'Web.Syntax.Numeric','es','Número inválido. Por favor, use números exclusivamente.'),(360,'Web.Syntax.Numeric','fr','Numéro invalide, utilisez des données numériques uniquement.'),(361,'Web.MissingContactInfo','de','Bitte selektieren Sie das Kästchen \"wie oben\", oder füllen Sie alle anderen Eingabefelder aus.'),(362,'Web.MissingContactInfo','en','Please check the box \"like above\" or fill in all additional input fields.'),(363,'Web.MissingContactInfo','es','Por favor, compruebe la casilla \"como arriba\" o rellene todos los campos adicionales.'),(364,'Web.MissingContactInfo','fr','Vérifiez la boîte \" like above \" ou remplissez tous les champs de saisie supplémentaires.'),(365,'Web.MissingInput','de','Bitte füllen Sie alle Eingabefelder aus.'),(366,'Web.MissingInput','en','Please fill in all input fields.'),(367,'Web.MissingInput','es','Por favor, rellene todos los campos.'),(368,'Web.MissingInput','fr','Remplissez tous les champs de saisie.'),(369,'Web.Subscriber.Lockforeign','de','Der Subscriber ist für ausgehende Anrufe die das System verlassen gesperrt.'),(370,'Web.Subscriber.Lockforeign','en','The subscriber is locked for calls that leave the system.'),(371,'Web.Subscriber.Lockforeign','es','El suscriptor tiene restringidas las llamadas salientes hacia fuera del sistema.'),(372,'Web.Subscriber.Lockforeign','fr','L\'abonné est locké pour les appels qui sort du système.'),(373,'Web.Subscriber.Lockoutgoing','de','Der Subscriber ist für ausgehende Anrufe gesperrt.'),(374,'Web.Subscriber.Lockoutgoing','en','The subscriber is locked for outgoing calls.'),(375,'Web.Subscriber.Lockoutgoing','es','El suscriptor tiene restringidas las llamadas salientes.'),(376,'Web.Subscriber.Lockoutgoing','fr','Labonné est locké pour les appels sortant.'),(377,'Web.Subscriber.Lockincoming','de','Der Subscriber ist für eingehende und ausgehende Anrufe gesperrt.'),(378,'Web.Subscriber.Lockincoming','en','The subscriber is locked for incoming and outgoing calls.'),(379,'Web.Subscriber.Lockincoming','es','El suscriptor tiene restringidas las llamadas entrantes y salientes.'),(380,'Web.Subscriber.Lockincoming','fr','L\'abonné est locké pour les appels entrants et sortants.'),(381,'Web.Subscriber.Lockglobal','de','Der Subscriber ist für alle Services gesperrt.'),(382,'Web.Subscriber.Lockglobal','en','The subscriber is locked for all services.'),(383,'Web.Subscriber.Lockglobal','es','El suscriptor tiene restringidos todos los servicios.'),(384,'Web.Subscriber.Lockglobal','fr','L\'abonné est locké pour tous les services des appels sortants.'),(385,'Web.Payment.ExternalError','de','Der Zahlvorgang ist fehlgeschlagen. Bitte versuchen Sie es etwas späeter nochmals und befolgen Sie alle Anweisungen der externen Webseite.'),(386,'Web.Payment.ExternalError','en','The transaction failed. Please try again later and follow all instructions on the external website.'),(387,'Web.Payment.ExternalError','es','Se ha detectado un error externo al realizar la transacción. Por favor, inténtelo de nuevo más tarde y siga las instrucciones de la web externa.'),(388,'Web.Payment.ExternalError','fr','La transaction a échoué. Essayez de nouveau plus tard et suivez toutes les instructions sur le site Web externe.'),(389,'Client.Voip.NoGroupName','de','Bitte geben Sie einen Gruppennamen ein.'),(390,'Client.Voip.NoGroupName','en','Please provide a group name.'),(391,'Client.Voip.NoGroupName','es','Por favor, introduzca un nombre de grupo.'),(392,'Client.Voip.NoGroupName','fr','Fournissez un nom de groupe.'),(393,'Client.Voip.NoGroupExt','de','Bitte geben Sie eine numerische Gruppendurchwahl ein.'),(394,'Client.Voip.NoGroupExt','en','Please provide a numeric group extension.'),(395,'Client.Voip.NoGroupExt','es','Por favor, introduzca una extensión numérica de grupo.'),(396,'Client.Voip.NoGroupExt','fr','Fournissez une extension de groupe numérique.'),(397,'Client.Voip.MacInUse','en','MAC address is already in use.'),(398,'Client.Voip.MacInUse','de','MAC Adresse wird bereits verwendet.'),(399,'Client.Voip.MacInUse','es','La dirección MAC ya se encuentra en uso.'),(400,'Client.Voip.MacInUse','fr','L\'adresse de MAC est déjà en cours d\'utilisation.'),(401,'Web.MissingSystem','de','Bitte wählen Sie die Nebenstellenanlage die Sie verwenden möchten.'),(402,'Web.MissingSystem','en','Please choose the IP PBX you want to use.'),(403,'Web.MissingSystem','es','Por favor, escoja la IP PBX que desea utilizar.'),(404,'Web.MissingSystem','fr','Choisissez PBX IP que vous voulez utiliser.'),(405,'Web.MissingAGB','de','Sie müssen den Allgemeinen Geschäftsbedingungen zustimmen.'),(406,'Web.MissingAGB','en','Please agree to our general terms and conditions.'),(407,'Web.MissingAGB','es','Por favor, acepte los términos y condiciones generales.'),(408,'Web.MissingAGB','fr','Soyez en accord avec nos conditions générales.'),(409,'Web.Account.Activated','de','Der account wurde aktiviert.'),(410,'Web.Account.Activated','en','The account has been activated.'),(411,'Web.Account.Activated','es','La cuenta ha sido activada.'),(412,'Web.Account.Activated','fr','Le compte a été activé.'),(413,'Client.Billing.AuthFailed','de','Login fehlgeschlagen, bitte überprüfen Sie Ihren Usernamen und Ihr Passwort.'),(414,'Client.Billing.AuthFailed','en','Login failed, please verify your username and password.'),(415,'Client.Billing.AuthFailed','es','Acceso fallido. Por favor, compruebe su usuario y contraseña.'),(416,'Client.Billing.AuthFailed','fr','L\'établissement de la connexion a échoué, vérifiez votre nom dutilisateur et le mot de passe.'),(417,'Web.MissingSearchString','de','Bitte geben Sie einen Suchstring ein.'),(418,'Web.MissingSearchString','en','Please enter a search string.'),(419,'Web.MissingSearchString','es','Por favor, introduzca un término de búsqueda.'),(420,'Web.MissingSearchString','fr','Entrez s\'il vous plaît dans une série de recherche.'),(421,'Client.Billing.ContactIncomplete','de','Bitte geben Sie zumindest einen Vornamen, Nachnamen oder Firmennamen ein.'),(422,'Client.Billing.ContactIncomplete','en','Please enter at least a firstname, lastname or company name.'),(423,'Client.Billing.ContactIncomplete','es','Por favor, introduzca el menos un nombre, un apellido o una compañía.'),(424,'Client.Billing.ContactIncomplete','fr','Entrez au moins dans un nom, prénom ou nom de lentreprise.'),(425,'Client.Billing.ExistingShopuser','de','Dieser Benutzername ist bereits in Verwendung.'),(426,'Client.Billing.ExistingShopuser','en','This username is already in use.'),(427,'Client.Billing.ExistingShopuser','es','Este usuario ya se encuentra en uso.'),(428,'Client.Billing.ExistingShopuser','fr','Ce nom dutilisateur est déjà utilisé.'),(429,'Client.Billing.ExistingProduct','de','Ein Produkt mit diesem Produkt-Identifikator existiert bereits.'),(430,'Client.Billing.ExistingProduct','en','A product with this product-handle already exists.'),(431,'Client.Billing.ExistingProduct','es','Ya existe un producto con este identificador.'),(432,'Client.Billing.ExistingProduct','fr','A produit avec cet identifiant \"product-handle\" exist dejà.'),(433,'Client.Billing.NoSuchProduct','de','Das Produkt mit dem angegebenen Produkt-Identifikator wurde nicht gefunden.'),(434,'Client.Billing.NoSuchProduct','en','No product with the specified product-handle found.'),(435,'Client.Billing.NoSuchProduct','es','No se han encontrado productos con el identificador especificado.'),(436,'Client.Billing.NoSuchProduct','fr','Aucun produit trouvé avec l\'identifiant spécifié \"product-handle\".'),(437,'Client.Billing.ExistingProfile','de','Ein Billing Profil mit dem angegebenen Profil-Identifikator existiert bereits.'),(438,'Client.Billing.ExistingProfile','en','A billing profile with the specified profile-handle already exists.'),(439,'Client.Billing.ExistingProfile','es','Ya existe un perfil de facturación con este identificador.'),(440,'Client.Billing.ExistingProfile','fr','A profile de facturation avec l\'identifiant spécifié \"profile-handle\" exist dejà.'),(441,'Client.Billing.NoSuchProfile','de','Das Billing Profil mit dem angegebenen Profil-Identifikator wurde nicht gefunden.'),(442,'Client.Billing.NoSuchProfile','en','No billing profile with the specified profile-handle found.'),(443,'Client.Billing.NoSuchProfile','es','No se han encontrado perfiles de facturación con el identificador especificado.'),(444,'Client.Billing.NoSuchProfile','fr','Aucun profile de facturation trouvé avec l\'identifiant spécifié \"profile-handle\".'),(445,'Web.Product.Created','de','Der Produkt-Eintrag wurde erstellt.'),(446,'Web.Product.Created','en','The product entry has been created.'),(447,'Web.Product.Created','es','El producto ha sido creado.'),(448,'Web.Product.Created','fr','Le produit saisi a été créée.'),(449,'Web.Product.Updated','de','Der Produkt-Eintrag wurde geändert.'),(450,'Web.Product.Updated','en','The product entry has been changed.'),(451,'Web.Product.Updated','es','El producto ha sido modificado.'),(452,'Web.Product.Updated','fr','Le produit saisi a été changé.'),(453,'Web.Product.Deleted','de','Der Produkt-Eintrag wurde gelöscht.'),(454,'Web.Product.Deleted','en','The product entry has been deleted.'),(455,'Web.Product.Deleted','es','El producto ha sido eliminado.'),(456,'Web.Product.Deleted','fr','Le produit saisi a été supprimé.'),(457,'Web.Bilprof.Created','de','Das Billing Profil wurde erstellt.'),(458,'Web.Bilprof.Created','en','The billing profile has been created.'),(459,'Web.Bilprof.Created','es','El perfil de facturación ha sido creado.'),(460,'Web.Bilprof.Created','fr','Le profil de facturation a été créé.'),(461,'Web.Bilprof.Updated','de','Das Billing Profil wurde geändert.'),(462,'Web.Bilprof.Updated','en','The billing profile has been changed.'),(463,'Web.Bilprof.Updated','es','El perfil de facturación ha sido modificado.'),(464,'Web.Bilprof.Updated','fr','Le profil de facturation a été changé.'),(465,'Web.Bilprof.Deleted','de','Das Billing Profil wurde gelöscht.'),(466,'Web.Bilprof.Deleted','en','The billing profile has been deleted.'),(467,'Web.Bilprof.Deleted','es','El perfil de facturación ha sido eliminado.'),(468,'Web.Bilprof.Deleted','fr','Le profil de facturation a été supprimé.'),(469,'Web.Fees.MissingFilename','de','Bitte geben Sie einen Dateinamen an.'),(470,'Web.Fees.MissingFilename','en','Please enter a filename.'),(471,'Web.Fees.MissingFilename','es','Por favor, inserte un nombre de fichero.'),(472,'Web.Fees.MissingFilename','fr','Entrez un nom de fichier.'),(473,'Web.Fees.Fieldcount','de','Falsche Anzahl von Feldern'),(474,'Web.Fees.Fieldcount','en','Wrong number of elements'),(475,'Web.Fees.Fieldcount','es','Número incorrecto de elementos'),(476,'Web.Fees.Fieldcount','fr','Mauvais numéro d\'éléments'),(477,'Web.Fees.FieldsFoundRequired','de','Felder gefunden/benötigt:'),(478,'Web.Fees.FieldsFoundRequired','en','Elements found/required:'),(479,'Web.Fees.FieldsFoundRequired','es','Elementos encontrados/requeridos:'),(480,'Web.Fees.FieldsFoundRequired','fr','Éléments trouvés/exigés: '),(481,'Web.Fees.InvalidDestination','de','Ungültiger Ziel-Präfix / -Suffix'),(482,'Web.Fees.InvalidDestination','en','Invalid destination prefix/suffix'),(483,'Web.Fees.InvalidDestination','es','Prefijo/sufijo de destino inválido.'),(484,'Web.Fees.InvalidDestination','fr','Préfixe/suffixe de destination invalide'),(485,'Client.Billing.NoSuchCustomer','de','Der angegebene Kunde existiert nicht.'),(486,'Client.Billing.NoSuchCustomer','en','The specified customer does not exist.'),(487,'Client.Billing.NoSuchCustomer','es','El cliente especificado no existe.'),(488,'Client.Billing.NoSuchCustomer','fr','Le client indiqué n\'existe pas.'),(489,'Client.Syntax.MalformedDaytime','de','Ungültige Zeitangabe, bitte geben Sie Stunden, Minuten und Sekunden in der Form HH::MM::SS ein.'),(490,'Client.Syntax.MalformedDaytime','en','Invalid time specification, please enter hours, minutes and seconds in the form HH:MM:SS.'),(491,'Client.Syntax.MalformedDaytime','es','Formato horario inválido. Por favor, inserte horas, minutos y segundos en la forma HH:MM:SS.'),(492,'Client.Syntax.MalformedDaytime','fr','Temps spécifié invalide, entrez des heures, des minutes et des secondes sous forme HH:MM:SS.'),(493,'Web.Fees.SavedPeaktimes','de','Die Zeit-Einträge wurden aktualisiert.'),(494,'Web.Fees.SavedPeaktimes','en','The time-entries have been updated.'),(495,'Web.Fees.SavedPeaktimes','es','Las entradas de tiempos han sido actualizadas.'),(496,'Web.Fees.SavedPeaktimes','fr','Les entrées de temps ont été mises à jour.'),(497,'Client.Voip.DuplicatedNumber','de','Eine Rufnummer wurde mehr als einmal angegeben.'),(498,'Client.Voip.DuplicatedNumber','en','A phone number was specified more than once.'),(499,'Client.Voip.DuplicatedNumber','es','Un número de teléfono ha sido especificado más de una vez.'),(500,'Client.Voip.DuplicatedNumber','fr','Un numéro de téléphone a été spécifié plus dune fois.'),(501,'Client.Voip.SlotAlreadyExists','de','Der Kurzwahl-Eintrag ist bereits in Verwendung.'),(502,'Client.Voip.SlotAlreadyExists','en','The speed dial slot is already in use.'),(503,'Client.Voip.SlotAlreadyExists','es','La posición de marcación rápida ya está en uso.'),(504,'Client.Voip.SlotAlreadyExists','fr','La numérotation abrégée est déjà utilisé.'),(505,'Client.Voip.SlotNotExistent','en','The speed dial slot does not exist.'),(506,'Client.Voip.SlotNotExistent','de','Der Kurzwahl-Eintrag ist nicht vorhanden.'),(507,'Client.Voip.SlotNotExistent','es','La posición de marcación rápida no existe.'),(508,'Client.Voip.SlotNotExistent','fr','La numérotation abrégée n\'existe pas.'),(509,'Client.Syntax.MalformedSpeedDialDestination','en','The speed dial slot destination is invalid.'),(510,'Client.Syntax.MalformedSpeedDialDestination','de','Das Ziel des Kurzwahl-Eintrag ist ungültig.'),(511,'Client.Syntax.MalformedSpeedDialDestination','es','La posición de marcación rápida escogida es inválida.'),(512,'Client.Syntax.MalformedSpeedDialDestination','fr','Le slot de la numérotation abrégée est invalide.'),(513,'Client.Syntax.MalformedVSC','en','The vertical service code (VSC) is invalid.'),(514,'Client.Syntax.MalformedVSC','de','Der VSC (vertical service code) ist ungültig.'),(515,'Client.Syntax.MalformedVSC','es','El código de servicio vertical (VSC) es inválido.'),(516,'Client.Syntax.MalformedVSC','fr','Le code de service vertical (VSC) est invalide.'),(517,'Client.Syntax.MalformedIPNet','en','Malformed ipnet, please use dotted decimal notation and specify the mask as number of bits.'),(518,'Client.Syntax.MalformedIPNet','de','Ungültiges Netzwerk, bitte verwenden Sie die Dezimalschreibweise mit Punkt und geben Sie die Netzmaske als Anzahl von Bits an.'),(519,'Client.Syntax.MalformedIPNet','es','Sintaxis de red inválida. Por favor, use notación decimal y especifique la máscara como número de bits.'),(520,'Client.Syntax.MalformedIPNet','fr','Malformed ipnet, please use dotted decimal notation and specify the mask as number of bits.'),(521,'Client.Syntax.MalformedIP','en','Malformed ip, please use dotted decimal notation for IPv4 or address without square brackets for IPv6.'),(522,'Client.Syntax.MalformedIP','de','Ungültige IP, bitte verwenden Sie dotted decimal Notation für IPv4 bzw. Format ohne eckige Klammern für IPv6.'),(523,'Client.Syntax.MalformedIP','es','Sintaxis de IP inválida. Por favor, use notación decimal.'),(524,'Client.Syntax.MalformedIP','fr','IP mal construite, utilisez la notation décimale pointillée.'),(525,'Server.Voip.PeerGroupDeleted','en','The peering group has been deleted.'),(526,'Server.Voip.PeerGroupDeleted','de','Die Peering-Gruppe wurde gelöscht.'),(527,'Server.Voip.PeerGroupDeleted','es','El grupo de peering ha sido eliminado.'),(528,'Server.Voip.PeerGroupDeleted','fr','Le groupe peering a été supprimé.'),(529,'Client.Voip.NoSuchPeerGroup','en','The peering group does not exist.'),(530,'Client.Voip.NoSuchPeerGroup','de','Die Peering-Gruppe existiert nicht.'),(531,'Client.Voip.NoSuchPeerGroup','es','El grupo de peering no existe.'),(532,'Client.Voip.NoSuchPeerGroup','fr','Le groupe peering nexiste pas.'),(533,'Client.Voip.NoPeerContract','en','No peering contract selected.'),(534,'Client.Voip.NoPeerContract','de','Kein Peering Contract ausgewählt.'),(535,'Client.Voip.NoPeerContract','es','No se ha seleccionado un contrato de peering.'),(536,'Client.Voip.NoPeerContract','fr','Aucun peering contract nest sélectionné.'),(537,'Client.Voip.ExistingPeerGroup','en','The peering group already exists.'),(538,'Client.Voip.ExistingPeerGroup','de','Die Peering-Gruppe existiert bereits.'),(539,'Client.Voip.ExistingPeerGroup','es','El grupo de peering ya existe.'),(540,'Client.Voip.ExistingPeerGroup','fr','Le peering group existe déjà.'),(541,'Client.Syntax.MalformedPeerGroupName','en','Invalid characters in peering group name.'),(542,'Client.Syntax.MalformedPeerGroupName','de','Ungültige Zeichen im Name der Peering-Gruppe.'),(543,'Client.Syntax.MalformedPeerGroupName','es','Encontrados caracteres inválidos en el nombre del grupo de peering.'),(544,'Client.Syntax.MalformedPeerGroupName','fr','Caractères invalides dans le peering group name.'),(545,'Client.Voip.NoSuchPeerRule','en','The peering rule does not exist.'),(546,'Client.Voip.NoSuchPeerRule','de','Die Peering-Regel existiert nicht.'),(547,'Client.Voip.NoSuchPeerRule','es','La regla de peering no existe.'),(548,'Client.Voip.NoSuchPeerRule','fr','Le peering rule nexiste pas.'),(549,'Client.Voip.NoSuchPeerHost','en','The peering host does not exist.'),(550,'Client.Voip.NoSuchPeerHost','de','Der Peering-Server existiert nicht.'),(551,'Client.Voip.NoSuchPeerHost','es','El servidor de peering no existe.'),(552,'Client.Voip.NoSuchPeerHost','fr','Le peering host nexiste pas.'),(553,'Client.Voip.ExistingPeerHost','en','A peering host with this name already exists in this group.'),(554,'Client.Voip.ExistingPeerHost','de','Es existiert bereits ein Peering-Host dieses Namens in dieser Gruppe.'),(555,'Client.Voip.ExistingPeerHost','es','Ya existe un servidor de peering con este nombre en el grupo.'),(556,'Client.Voip.ExistingPeerHost','fr','Un peering host avec ce nom existe déjà dans ce groupe.'),(557,'Client.Voip.ExistingPeerIp','en','A peering host with this IP address already exists.'),(558,'Client.Voip.ExistingPeerIp','de','Es existiert bereits ein Peering-Host mit dieser IP-Adresse.'),(559,'Client.Voip.ExistingPeerIp','es','Ya existe un servidor de peering con esta IP.'),(560,'Client.Voip.ExistingPeerIp','fr','Un peering host avec cette adresse IP existe déjà.'),(561,'Client.Voip.NoSuchPeerRewriteRule','en','The peering rewrite rule does not exist.'),(562,'Client.Voip.NoSuchPeerRewriteRule','de','Die Peering-Rewrite-Regel existiert nicht.'),(563,'Client.Voip.NoSuchPeerRewriteRule','es','La regla de reescritura de peering no existe.'),(564,'Client.Voip.NoSuchPeerRewriteRule','fr','Le peering rewrite rule nexiste pas.'),(565,'Client.Voip.NoSuchDomainRewriteRule','en','The domain rewrite rule does not exist.'),(566,'Client.Voip.NoSuchDomainRewriteRule','de','Die Domain-Rewrite-Regel existiert nicht.'),(567,'Client.Voip.NoSuchDomainRewriteRule','es','La regla de reescritura de dominio no existe.'),(568,'Client.Voip.NoSuchDomainRewriteRule','fr','Le domaine rewrite rule nexiste pas.'),(569,'Client.Voip.NoSuchCfDestSet','en','The call-forward destination set does not exist.'),(570,'Client.Voip.NoSuchCfDestSet','es','The call-forward destination set does not exist.'),(571,'Client.Voip.NoSuchCfDestSet','de','Die Rufumleitungs-Gruppe existiert nicht.'),(572,'Client.Voip.NoSuchCfDestSet','fr','The call-forward destination set does not exist.'),(573,'Client.Voip.ExistingCfDestSet','en','The call-forward destination set already exists.'),(574,'Client.Voip.ExistingCfDestSet','es','The call-forward destination set already exists.'),(575,'Client.Voip.ExistingCfDestSet','de','Die Rufumleitungs-Gruppe existiert bereits.'),(576,'Client.Voip.ExistingCfDestSet','fr','The call-forward destination set already exists.'),(577,'Client.Voip.NoSuchCfDest','en','The call-forward destination does not exist.'),(578,'Client.Voip.NoSuchCfDest','es','The call-forward destination does not exist.'),(579,'Client.Voip.NoSuchCfDest','de','Die Rufumleitung existiert nicht.'),(580,'Client.Voip.NoSuchCfDest','fr','The call-forward destination does not exist.'),(581,'Client.Voip.ExistingCfDest','en','The call-forward destination already exists.'),(582,'Client.Voip.ExistingCfDest','es','The call-forward destination already exists.'),(583,'Client.Voip.ExistingCfDest','de','Die Rufumleitung existiert bereits.'),(584,'Client.Voip.ExistingCfDest','fr','The call-forward destination already exists.'),(585,'Client.Voip.NoSuchCfTimeSet','en','The call-forward time set does not exist.'),(586,'Client.Voip.NoSuchCfTimeSet','es','The call-forward time set does not exist.'),(587,'Client.Voip.NoSuchCfTimeSet','de','Die Rufumleitungs-Zeit-Gruppe existiert nicht.'),(588,'Client.Voip.NoSuchCfTimeSet','fr','The call-forward time set does not exist.'),(589,'Client.Voip.ExistingCfTimeSet','en','The call-forward time set already exists.'),(590,'Client.Voip.ExistingCfTimeSet','es','The call-forward time set already exists.'),(591,'Client.Voip.ExistingCfTimeSet','de','Die Rufumleitungs-Zeit-Gruppe existiert bereits.'),(592,'Client.Voip.ExistingCfTimeSet','fr','The call-forward time set already exists.'),(593,'Client.Voip.NoSuchCfPeriod','en','The call-forward time period does not exist.'),(594,'Client.Voip.NoSuchCfPeriod','es','The call-forward time period does not exist.'),(595,'Client.Voip.NoSuchCfPeriod','de','Die Rufumleitungs-Zeitperiode existiert nicht.'),(596,'Client.Voip.NoSuchCfPeriod','fr','The call-forward time period does not exist.'),(597,'Client.Voip.MalformedFaxDestination','en','\'destination\' must be an email address or phone number.'),(598,'Client.Voip.MalformedFaxDestination','de','\'destination\' muss eine E-Mail Adresse oder Telefonnummer enthalten.'),(599,'Client.Voip.MalformedFaxDestination','es','\'destination\' ha de ser una dirección de correo o un número de teléfono.'),(600,'Client.Voip.MalformedFaxDestination','fr','\'destination\' doit être une adresse électronique ou un numéro de téléphone.'),(601,'Client.Syntax.FaxPassLength','en','The password is to short, please use ${faxpw_min_char} characters at least.'),(602,'Client.Syntax.FaxPassLength','de','Das Passwort ist zu kurz, bitte verwenden Sie mindestens ${faxpw_min_char} Zeichen.'),(603,'Client.Syntax.FaxPassLength','es','La contraseña es demasiado corta. Por favor use al menos ${faxpw_min_char} caracteres.'),(604,'Client.Syntax.FaxPassLength','fr','Le mot de passe est trop court, utilisez le caractères $ {faxpw_min_char} au moins.'),(605,'Web.Syntax.ID','en','Invalid ID, please enter a numeric value.'),(606,'Web.Syntax.ID','de','Ungültige ID, bitte geben Sie einen numerischen Wert ein.'),(607,'Web.Syntax.ID','es','ID inválido. Por favor, introduzca un valor numérico.'),(608,'Web.Syntax.ID','fr','ID invalide, entrez dans une valeur numérique.'),(609,'Web.Syntax.LNPProvName','en','Please enter a provider name in the text field.'),(610,'Web.Syntax.LNPProvName','de','Bitte geben Sie einen Provider-Namen in das Textfeld ein.'),(611,'Web.Syntax.LNPProvName','es','Por favor, introduzca el nombre de un proveedor en el campo de texto.'),(612,'Web.Syntax.LNPProvName','fr','Entrez un nom de fournisseur dans le champ texte.'),(613,'Web.LNPProvider.Created','en','The LNP provider has been created.'),(614,'Web.LNPProvider.Created','de','Der LNP Provider wurde erstellt.'),(615,'Web.LNPProvider.Created','es','El proveedor LNP ha sido creado.'),(616,'Web.LNPProvider.Created','fr','Le fournisseur LNP a été créé.'),(617,'Web.LNPProvider.Updated','en','The LNP provider has been changed.'),(618,'Web.LNPProvider.Updated','de','Der LNP Provider wurde geändert.'),(619,'Web.LNPProvider.Updated','es','El proveedor LNP ha sido modificado.'),(620,'Web.LNPProvider.Updated','fr','Le fournisseur LNP a été changé.'),(621,'Web.LNPProvider.Deleted','en','The LNP provider has been deleted.'),(622,'Web.LNPProvider.Deleted','de','Der LNP Provider wurde gelöscht.'),(623,'Web.LNPProvider.Deleted','es','El proveedor LNP ha sido eliminado.'),(624,'Web.LNPProvider.Deleted','fr','Le fournisseur LNP a été supprimé.'),(625,'Web.LNPNumber.Created','en','The LNP number has been stored.'),(626,'Web.LNPNumber.Created','de','Die LNP Nummer wurde gespeichert.'),(627,'Web.LNPNumber.Created','es','El número LNP ha sido guardado.'),(628,'Web.LNPNumber.Created','fr','Le numéro LNP a été stocké.'),(629,'Web.LNPNumber.Updated','en','The LNP number has been changed.'),(630,'Web.LNPNumber.Updated','de','Die LNP Nummer wurde geändert.'),(631,'Web.LNPNumber.Updated','es','El número LNP ha sido modificado.'),(632,'Web.LNPNumber.Updated','fr','Le numéro LNP a été changé.'),(633,'Web.LNPNumber.Deleted','en','The LNP number has been deleted.'),(634,'Web.LNPNumber.Deleted','de','Die LNP Nummer wurde gelöscht.'),(635,'Web.LNPNumber.Deleted','es','El número LNP ha sido eliminado.'),(636,'Web.LNPNumber.Deleted','fr','Le numéro LNP a été supprimé.'),(637,'Client.Syntax.MalformedE164Number','en','Invalid E.164 number. Please use numbers only and include the international prefix.'),(638,'Client.Syntax.MalformedE164Number','de','Ungültige E.164 Nummer. Bitte verwenden Sie nur Zahlen und geben sie den internationalen Prefix mit an.'),(639,'Client.Syntax.MalformedE164Number','es','Número E.164 inválido. Por favor, use dígitos exclusivamente e incluya el prefijo internacional.'),(640,'Client.Syntax.MalformedE164Number','fr','Numéro E.164.est invalide Utilisez des nombres uniquement en incluant le préfixe international.'),(641,'Client.Syntax.MalformedDate','en','Invalid date, please check your syntax.'),(642,'Client.Syntax.MalformedDate','de','Ungültiges Datum, bitte überprüfen Sie die Syntax.'),(643,'Client.Syntax.MalformedDate','es','Fecha inválida. Por favor, revise la sintaxis.'),(644,'Client.Syntax.MalformedDate','fr','La date est invalide, vérifiez votre syntaxe.'),(645,'Client.Syntax.MissingNCOSLevel','en','Please specify an NCOS level identifier string.'),(646,'Client.Syntax.MissingNCOSLevel','de','Bitte geben Sie eine Bezeichnung für den NCOS Level an.'),(647,'Client.Syntax.MissingNCOSLevel','es','Por favor, especifique una cadena identificadora para el nivel NCOS.'),(648,'Client.Syntax.MissingNCOSLevel','fr','Spécifiez une série d\'identificateur de niveau de NCOS.'),(649,'Client.NCOS.ExistingLevel','en','The NCOS level already exists.'),(650,'Client.NCOS.ExistingLevel','de','Die NCOS Level Bezeichnung existiert bereits.'),(651,'Client.NCOS.ExistingLevel','es','El nivel NCOS ya existe.'),(652,'Client.NCOS.ExistingLevel','fr','Le niveau de NCOS existe déjà.'),(653,'Client.NCOS.NoSuchLevel','en','The NCOS level does not exist.'),(654,'Client.NCOS.NoSuchLevel','de','Die NCOS Level Bezeichnung existiert nicht.'),(655,'Client.NCOS.NoSuchLevel','es','El nivel NCOS no existe.'),(656,'Client.NCOS.NoSuchLevel','fr','The NCOS level does not exist.'),(657,'Web.NCOSLevel.Created','en','The NCOS level has been created.'),(658,'Web.NCOSLevel.Created','de','Der NCOS Level wurde erstellt.'),(659,'Web.NCOSLevel.Created','es','El nivel NCOS ha sido creado.'),(660,'Web.NCOSLevel.Created','fr','Le niveau de NCOS a été créé.'),(661,'Web.NCOSLevel.Updated','en','The NCOS level has been changed.'),(662,'Web.NCOSLevel.Updated','de','Der NCOS Level wurde geändert.'),(663,'Web.NCOSLevel.Updated','es','El nivel NCOS ha sido modificado.'),(664,'Web.NCOSLevel.Updated','fr','Le niveau de NCOS a été changé.'),(665,'Web.NCOSLevel.Deleted','en','The NCOS level has been deleted.'),(666,'Web.NCOSLevel.Deleted','de','Der NCOS Level wurde gelöscht.'),(667,'Web.NCOSLevel.Deleted','es','El nivel NCOS ha sido eliminado.'),(668,'Web.NCOSLevel.Deleted','fr','Le niveau de NCOS a été supprimé.'),(669,'Web.NCOSPattern.Created','en','The pattern has been stored.'),(670,'Web.NCOSPattern.Created','de','Der Filter wurde gespeichert.'),(671,'Web.NCOSPattern.Created','es','El patrón ha sido guardado.'),(672,'Web.NCOSPattern.Created','fr','Le modèle a été stocké.'),(673,'Web.NCOSPattern.Updated','en','The pattern has been replaced.'),(674,'Web.NCOSPattern.Updated','de','Der Filter wurde ersetzt.'),(675,'Web.NCOSPattern.Updated','es','El patrón ha sido modificado.'),(676,'Web.NCOSPattern.Updated','fr','Le modèle a été remplacé.'),(677,'Web.NCOSPattern.Deleted','en','The pattern has been deleted.'),(678,'Web.NCOSPattern.Deleted','de','Der Filter wurde entfernt.'),(679,'Web.NCOSPattern.Deleted','es','El patrón ha sido eliminado.'),(680,'Web.NCOSPattern.Deleted','fr','Le modèle a été supprimé.'),(681,'Web.NCOSLNP.Created','en','The provider has been added to the list.'),(682,'Web.NCOSLNP.Created','de','Der LNP Provider wurde der Liste hinzugefügt.'),(683,'Web.NCOSLNP.Created','es','El proveedor ha sido añadido a la lista.'),(684,'Web.NCOSLNP.Created','fr','Le fournisseur a été ajouté à la liste.'),(685,'Web.NCOSLNP.Updated','en','The provider has been updated.'),(686,'Web.NCOSLNP.Updated','de','Der LNP Provider wurde geändert.'),(687,'Web.NCOSLNP.Updated','es','El proveedor ha sido modificado.'),(688,'Web.NCOSLNP.Updated','fr','Le fournisseur a été mis à jour.'),(689,'Web.NCOSLNP.Deleted','en','The provider has been removed from the list.'),(690,'Web.NCOSLNP.Deleted','de','Der LNP Provider wurde von der Liste entfernt.'),(691,'Web.NCOSLNP.Deleted','es','El proveedor ha sido eliminado de la lista.'),(692,'Web.NCOSLNP.Deleted','fr','Le fournisseur a été enlevé de la liste.'),(693,'Client.Syntax.MalformedNCOSPattern','en','The pattern may not be empty, please specify a regular expression.'),(694,'Client.Syntax.MalformedNCOSPattern','de','Der Filter darf nicht leer sein, bitte geben Sie einen regulären Ausdruck an.'),(695,'Client.Syntax.MalformedNCOSPattern','es','El patrón podría no estar vacío. Por favor, introduzca una expresión regular.'),(696,'Client.Syntax.MalformedNCOSPattern','fr','Le modèle ne peut pas être vide, spécifiez une expression régulière.'),(697,'Client.Syntax.MalformedAudioData','en','Invalid audio data, please provide an audio stream in wave format.'),(698,'Client.Syntax.MalformedAudioData','de','Ungültige Audio-Daten, bitte geben Sie einen Stream im Wave-Format an.'),(699,'Client.Syntax.MalformedAudioData','es','Audio incorrecto. Por favor proporcione un flujo de audio en formato wav.'),(700,'Client.Syntax.MalformedAudioData','fr','Données audio invalides, fournissez un format audio courant.'),(701,'Client.Voip.ExistingAudioFile','en','The audio file handle is already in use.'),(702,'Client.Voip.ExistingAudioFile','de','Der Audio-Datei-Identifikator wird bereits verwendet.'),(703,'Client.Voip.ExistingAudioFile','es','El fichero de audio ya está en uso.'),(704,'Client.Voip.ExistingAudioFile','fr','Le fichier audio traité est déjà dans.'),(705,'Client.Voip.NoSuchAudioFile','en','The audio file handle does not exist.'),(706,'Client.Voip.NoSuchAudioFile','de','Der Audio-Datei-Identifikator existiert noch nicht.'),(707,'Client.Voip.NoSuchAudioFile','es','El fichero de audio no existe.'),(708,'Client.Voip.NoSuchAudioFile','fr','Le fichier audio traité n\'existe pas.'),(709,'Web.AudioFile.Created','en','The audio file has been created.'),(710,'Web.AudioFile.Created','de','Die Audio-Datei wurde gespeichert.'),(711,'Web.AudioFile.Created','es','El fichero de audio ha sido creado.'),(712,'Web.AudioFile.Created','fr','Le fichier audio a été créé.'),(713,'Web.AudioFile.Updated','en','The audio file has been changed.'),(714,'Web.AudioFile.Updated','de','Die Audio-Datei wurde geändert.'),(715,'Web.AudioFile.Updated','es','El fichero de audio ha sido modificado.'),(716,'Web.AudioFile.Updated','fr','Le fichier audio a été changé.'),(717,'Web.AudioFile.Deleted','en','The audio file has been deleted.'),(718,'Web.AudioFile.Deleted','de','Die Audio-Datei wurde gelöscht.'),(719,'Web.AudioFile.Deleted','es','El fichero de audio ha sido eliminado.'),(720,'Web.AudioFile.Deleted','fr','Le fichier audio a été supprimé.'),(721,'Client.Syntax.MalformedHandle','en','Invalid handle, please specify an alpha-numeric string.'),(722,'Client.Syntax.MalformedHandle','de','Ungültiger Identifikator, bitte geben Sie eine alphanumerische Zeichenkette ein.'),(723,'Client.Syntax.MalformedHandle','es','Nombre incorrecto. Por favor use caracteres alfanuméricos exclusivamente.'),(724,'Client.Syntax.MalformedHandle','fr','Traitement invalide, spécifiez une série alphanumérique.'),(725,'Client.VSC.NoSuchAction','en','The VSC action does not exist.'),(726,'Client.VSC.NoSuchAction','de','Die VSC Aktion existiert nicht.'),(727,'Client.VSC.NoSuchAction','es','La acción VSC no existe.'),(728,'Client.VSC.NoSuchAction','fr','L\'action VSC n\'existe pas.'),(729,'Client.VSC.ExistingAction','en','The VSC action has already been defined.'),(730,'Client.VSC.ExistingAction','de','Die VSC Aktion wurde bereits definiert.'),(731,'Client.VSC.ExistingAction','es','La acción VSC ya ha sido definida.'),(732,'Client.VSC.ExistingAction','fr','L\'action VSC a déjà été définie.'),(733,'Client.VSC.ExistingDigits','en','The digits are already in use for another VSC action.'),(734,'Client.VSC.ExistingDigits','de','Die Zahlenkombination wird bereits für eine andere VSC Aktion verwendet.'),(735,'Client.VSC.ExistingDigits','es','Los dígitos ya se encuentran definidos para otra acción VSC.'),(736,'Client.VSC.ExistingDigits','fr','Les chiffres sont déjà en cours dutilisation pour une autre action de VSC.'),(737,'Client.Syntax.MalformedVSCDigits','en','Invalid VSC digits setting, please specify exactly two digits.'),(738,'Client.Syntax.MalformedVSCDigits','de','Ungültige Zahlenkombination, bitte geben Sie genau zwei Ziffern an.'),(739,'Client.Syntax.MalformedVSCDigits','es','Especificación de dígitos inválida. Por favor, especifica exactamente dos dígitos.'),(740,'Client.Syntax.MalformedVSCDigits','fr','La configuration de chiffres VSC est invalide, spécifiez exactement deux chiffres.'),(741,'Web.VSC.Created','en','The VSC entry has been created.'),(742,'Web.VSC.Created','de','Der VSC Eintrag wurde gespeichert.'),(743,'Web.VSC.Created','es','La entrada VSC ha sido creada.'),(744,'Web.VSC.Created','fr','L\'entrée VSC a été créée.'),(745,'Web.VSC.Updated','en','The VSC entry has been changed.'),(746,'Web.VSC.Updated','de','Der VSC Eintrag wurde geändert.'),(747,'Web.VSC.Updated','es','La entrada VSC ha sido modificada.'),(748,'Web.VSC.Updated','fr','L\'entrée VSC a été changée.'),(749,'Web.VSC.Deleted','en','The VSC entry has been deleted.'),(750,'Web.VSC.Deleted','de','Der VSC Eintrag wurde gelöscht.'),(751,'Web.VSC.Deleted','es','La entrada VSC ha sido eliminada.'),(752,'Web.VSC.Deleted','fr','L\'entrée VSC a été supprimée.'),(753,'Client.Voip.AudioFileInUse','en','The audio file is in use and can\'t be deleted.'),(754,'Client.Voip.AudioFileInUse','de','Die Audio-Datei wird verwendet und kann nicht gelöscht werden.'),(755,'Client.Voip.AudioFileInUse','es','El fichero de audio se encuentra actualmente en uso y no puede ser eliminado.'),(756,'Client.Voip.AudioFileInUse','fr','Le fichier audio est en cours d\'utilisation et ne peut pas être supprimé.'),(757,'Web.Contract.Created','en','The contract has been created.'),(758,'Web.Contract.Created','de','Der Vertrag wurde gespeichert.'),(759,'Web.Contract.Created','es','El contrato ha sido creado.'),(760,'Web.Contract.Created','fr','Le contrat a été créé.'),(761,'Web.Contract.Updated','en','The contract has been changed.'),(762,'Web.Contract.Updated','de','Der Vertrag wurde geändert.'),(763,'Web.Contract.Updated','es','El contrato ha sido modificado.'),(764,'Web.Contract.Updated','fr','Le contrat a été changé.'),(765,'Web.Contract.Deleted','en','The contract has been deleted.'),(766,'Web.Contract.Deleted','de','Der Vertrag wurde gelöscht.'),(767,'Web.Contract.Deleted','es','El contrato ha sido eliminado.'),(768,'Web.Contract.Deleted','fr','Le contrat a été supprimé.'),(769,'Web.NCOSLevel.LACSet','en','The caller\'s area code has been added to the list.'),(770,'Web.NCOSLevel.LACSet','de','Die Vorwahl des Anrufers wurde zur Liste hinzugefügt.'),(771,'Web.NCOSLevel.LACSet','es','El código de área de llamante ha sido añadido a la lista.'),(772,'Web.NCOSLevel.LACSet','fr','L\'indicatif de l\'interlocuteur a été ajouté à la liste.'),(773,'Web.NCOSLevel.LACUnset','en','The caller\'s area code has been removed from the list.'),(774,'Web.NCOSLevel.LACUnset','de','Die Vorwahl des Anrufers wurde von der Liste entfernt.'),(775,'Web.NCOSLevel.LACUnset','es','El código de área de llamante ha sido eliminado de la lista.'),(776,'Web.NCOSLevel.LACUnset','fr','L\'indicatif de l\'interlocuteur a été enlevé de la liste.'),(777,'Web.NumberBlock.Created','en','The number block has been created.'),(778,'Web.NumberBlock.Created','de','Der Nummernblock wurde gespeichert.'),(779,'Web.NumberBlock.Created','es','El bloque de numeración ha sido creado.'),(780,'Web.NumberBlock.Created','fr','Le bloc de numéro a été créé.'),(781,'Web.NumberBlock.Updated','en','The number block has been changed.'),(782,'Web.NumberBlock.Updated','de','Der Nummernblock wurde geändert.'),(783,'Web.NumberBlock.Updated','es','El bloque de numeración ha sido modificado.'),(784,'Web.NumberBlock.Updated','fr','Le bloc de numéro a été changé.'),(785,'Web.NumberBlock.Deleted','en','The number block has been deleted.'),(786,'Web.NumberBlock.Deleted','de','Der Nummernblock wurde gelöscht.'),(787,'Web.NumberBlock.Deleted','es','El bloque de numeración ha sido eliminado.'),(788,'Web.NumberBlock.Deleted','fr','Le bloc de numéro a été supprimé.'),(789,'Client.Syntax.MalformedReminderTime','en','Invalid time string, please use \'hh:mm\' format.'),(790,'Client.Syntax.MalformedReminderTime','de','Ungültige Zeitangabe, bitte verwenden Sie das \'hh:mm\' Format.'),(791,'Client.Syntax.MalformedReminderTime','es','Formato de tiempo inválido. Por favor, utilice el formato \'hh:mm\'.'),(792,'Client.Syntax.MalformedReminderTime','fr','Série de temps invalide, utiliser le format de \'hh:mm\'.'),(793,'Web.Fax.ExistingFaxDestination','en','This destination is already on the list.'),(794,'Web.Fax.ExistingFaxDestination','de','Dieses Destination steht bereits auf der Liste.'),(795,'Web.Fax.ExistingFaxDestination','es','Este destino ya se encuentra en la lista.'),(796,'Web.Fax.ExistingFaxDestination','fr','Cette destination est déjà dans la liste.'),(797,'Client.Voip.ReservedSubscriber','en','This username is reserved for internal use.'),(798,'Client.Voip.ReservedSubscriber','de','Dieser Username ist für interne Verwendung reserviert.'),(799,'Client.Voip.ReservedSubscriber','es','El nombre de usuario está reservado para uso interno.'),(800,'Client.Voip.ReservedSubscriber','fr','Ce non dutilisateur est réservé pour lutilisation interne.'),(801,'Server.Voip.NoProxy','de','Es wurde kein SIP Proxy für Click-To-Dial konfiguriert.'),(802,'Server.Voip.NoProxy','en','No SIP Proxy has been configured for click-to-dial.'),(803,'Server.Voip.NoProxy','es','No se ha configurado ningún proxy SIP para click-to-dial.'),(804,'Server.Voip.NoProxy','fr','Aucun SIP Proxy n\'a été configuré pour Cliquer et composer le numéro.'),(805,'Client.Fees.DuplicateDestination','de','Ein Ziel-Präfix / -Suffix wurde mehrfach angegeben.'),(806,'Client.Fees.DuplicateDestination','en','A destination prefix/suffix has been specified twice.'),(807,'Client.Fees.DuplicateDestination','es','Prefijo/sufijo de destino duplicado.'),(808,'Client.Fees.DuplicateDestination','fr','Un préfixe/suffixe de destination a été spécifié deux fois.'),(809,'Client.Billing.ExistingExternalCID','en','This external ID is already in use for another customer.'),(810,'Client.Billing.ExistingExternalCID','de','Diese externe ID ist bereits bei einem anderen Kunden in Verwendung.'),(811,'Client.Billing.ExistingExternalCID','es','Este ID externo ya está siendo usado por otro cliente.'),(812,'Client.Billing.ExistingExternalCID','fr','Cet ID externe est déjà utilisé pour un autre client.'),(813,'Client.Billing.ExistingExternalAID','en','This external ID is already in use for another account.'),(814,'Client.Billing.ExistingExternalAID','de','Diese externe ID ist bereits bei einem anderen Vertrag in Verwendung.'),(815,'Client.Billing.ExistingExternalAID','es','Este ID externo ya está siendo usado por otra cuenta.'),(816,'Client.Billing.ExistingExternalAID','fr','Cet ID externe est déjà utilisé pour un autre compte.'),(817,'Client.Billing.ExistingExternalSID','en','This external ID is already in use for another subscriber.'),(818,'Client.Billing.ExistingExternalSID','de','Diese externe ID ist bereits bei einem anderen Subscriber in Verwendung.'),(819,'Client.Billing.ExistingExternalSID','es','Este ID externo ya está siendo usado por otro subscriptor.'),(820,'Client.Billing.ExistingExternalSID','fr','Cet ID externe est déjà utilisé pour un autre abonné.'),(821,'Web.Syntax.MissingExternalID','en','Please enter an external ID in the search box.'),(822,'Web.Syntax.MissingExternalID','de','Bitte geben Sie eine externe ID in das Suchfeld ein.'),(823,'Web.Syntax.MissingExternalID','es','Por favor, introduzca un ID externo en el campo de búsqueda.'),(824,'Web.Syntax.MissingExternalID','fr','Entrez ID externe dans la boîte de recherche.'),(825,'Client.Voip.ExistingRewriteRuleSet','en','The rewrite rule set name is already in use.'),(826,'Client.Voip.ExistingRewriteRuleSet','de','Der Name ist bereits für ein anderes Regelset in Verwendung.'),(827,'Client.Voip.ExistingRewriteRuleSet','es','El nombre de grupo de reglas de reescritura ya está en uso.'),(828,'Client.Voip.ExistingRewriteRuleSet','fr','Le groupe rewrite rule est déja utilisé.'),(829,'Client.Voip.NoSuchRewriteRuleSet','en','The rewrite rule set does not exist.'),(830,'Client.Voip.NoSuchRewriteRuleSet','de','Das angegebene Regelset existiert nicht.'),(831,'Client.Voip.NoSuchRewriteRuleSet','es','El grupo de reglas de reescritura no existe.'),(832,'Client.Voip.NoSuchRewriteRuleSet','fr','Le groupe rewrite rule nexiste pas.'),(833,'Client.Voip.NoSuchRewriteRule','en','The rewrite rule does not exist.'),(834,'Client.Voip.NoSuchRewriteRule','de','Die angegebene Regel existiert nicht.'),(835,'Client.Voip.NoSuchRewriteRule','es','La regla de reescritura no existe.'),(836,'Client.Voip.NoSuchRewriteRule','fr','Le rewrite rule nexiste pas'),(837,'Web.Rewrite.RuleSetDeleted','en','The rewrite rule set has been deleted.'),(838,'Web.Rewrite.RuleSetDeleted','de','Das Regelset wurde gelöscht.'),(839,'Web.Rewrite.RuleSetDeleted','es','La regla de reescritura ha sido borrada.'),(840,'Web.Rewrite.RuleSetDeleted','fr','Le groupe rewrite rule a été supprimé.'),(841,'Web.Fees.InvalidCharset','en','Invalid character set detected, please provide all data in UTF-8 encoding.'),(842,'Web.Fees.InvalidCharset','de','Ungültiger Zeichensatz, bitte verwenden Sie für alle Daten die UTF-8 Kodierung.'),(843,'Web.Fees.InvalidCharset','es','Detectada codificación de caracter inválida. Por favor, use codificación UTF-8.'),(844,'Web.Fees.InvalidCharset','fr','Jeu de caractères non valide détecté, s\'il vous plaît fournir toutes les données en UTF-8.'),(845,'Web.Fees.InvalidZone','en','Invalid zone specification, should be a non-empty string'),(846,'Web.Fees.InvalidZone','de','Ungültige Zonenbeschreibung, bitte geben Sie einen Text ein'),(847,'Web.Fees.InvalidZone','es','Zona especificada no válida. Debe ser una cadena de caracteres no vacía.'),(848,'Web.Fees.InvalidZone','fr','Zone de la spécification non valide détecté. Doit être une chaîne non vide.'),(849,'Web.Fees.InvalidZoneDetail','en','Invalid zone detail specification, should be a non-empty string'),(850,'Web.Fees.InvalidZoneDetail','de','Ungültige Zonendetailbeschreibung, bitte geben Sie einen Text ein'),(851,'Web.Fees.InvalidZoneDetail','es','Detalle de zona especificada no válida. Debe ser una cadena de caracteres no vacía.'),(852,'Web.Fees.InvalidZoneDetail','fr','Invalid Spécification de zone, doit être une chaîne non vide.'),(853,'Web.Fees.InvalidRate','en','Invalid rate specification, should be a floating point number'),(854,'Web.Fees.InvalidRate','de','Ungültige Gebührenangabe, bitte geben Sie eine Gleitpunktzahl ein'),(855,'Web.Fees.InvalidRate','es','Campo rate inválido. Debe ser un número flotante.'),(856,'Web.Fees.InvalidRate','fr','Invalid spécification du taux, devrait être un nombre à virgule flottante'),(857,'Web.Fees.InvalidInterval','en','Invalid interval specification, should be an integer'),(858,'Web.Fees.InvalidInterval','de','Ungültige Intervallangabe, bitte geben Sie eine Ganzzahl ein'),(859,'Web.Fees.InvalidInterval','es','Intervalo especificado inválido. Debe ser un número entero.'),(860,'Web.Fees.InvalidInterval','fr','Invalide la spécification d\'intervalle, doit être un entier'),(861,'Client.Syntax.InvalidYear','en','Invalid year.'),(862,'Client.Syntax.InvalidYear','de','Ungültiges Jahr. '),(863,'Client.Syntax.InvalidYear','es','Año inválido'),(864,'Client.Syntax.InvalidYear','fr','Invalid year.'),(865,'Client.Syntax.InvalidMonth','en','Invalid month.'),(866,'Client.Syntax.InvalidMonth','de','Ungültiges Monat.'),(867,'Client.Syntax.InvalidMonth','es','Mes no válido'),(868,'Client.Syntax.InvalidMonth','fr','Invalid month.'),(869,'Client.Syntax.InvalidMDay','en','Invalid day of month.'),(870,'Client.Syntax.InvalidMDay','de','Ungültiger Tag. '),(871,'Client.Syntax.InvalidMDay','es','Día del mes no válido'),(872,'Client.Syntax.InvalidMDay','fr','Invalid day of month.'),(873,'Client.Syntax.InvalidWDay','en','Invalid day of week.'),(874,'Client.Syntax.InvalidWDay','de','Ungültiger Wochentagl'),(875,'Client.Syntax.InvalidWDay','es','Día de la semana no válido'),(876,'Client.Syntax.InvalidWDay','fr','Invalid day of week.'),(877,'Client.Syntax.InvalidHour','en','Invalid hour.'),(878,'Client.Syntax.InvalidHour','de','Ungültige Stunde.'),(879,'Client.Syntax.InvalidHour','es','Hora no válida'),(880,'Client.Syntax.InvalidHour','fr','Invalid hour.'),(881,'Client.Syntax.InvalidMinute','en','Invalid minute.'),(882,'Client.Syntax.InvalidMinute','de','Ungültige Minute.'),(883,'Client.Syntax.InvalidMinute','es','Minuto no válido'),(884,'Client.Syntax.InvalidMinute','fr','Invalid minute.'),(885,'Client.Syntax.FromMissing','en','Beginning missing.'),(886,'Client.Syntax.FromMissing','de','Beginn fehlt.'),(887,'Client.Syntax.FromMissing','es','Falta el inicio'),(888,'Client.Syntax.FromMissing','fr','Beginning missing.'),(889,'Client.Syntax.FromAfterTo','en','Beginning after End.'),(890,'Client.Syntax.FromAfterTo','de','Beginn nach Ende.'),(891,'Client.Syntax.FromAfterTo','es','Inicio después de final'),(892,'Client.Syntax.FromAfterTo','fr','Beginning after End.'),(893,'Client.Syntax.EmptySetName','en','Setname can not be empty.'),(894,'Client.Syntax.EmptySetName','de','Setname darf nicht leer sein.'),(895,'Client.Syntax.EmptySetName','es','No se ha asignado un nombre'),(896,'Client.Syntax.EmptySetName','fr','Setname can not be empty.'),(897,'Client.Syntax.MissingDestinationSet','en','Please choose a destination set.'),(898,'Client.Syntax.MissingDestinationSet','de','Bitte wählen Sie eine Zielgruppe.'),(899,'Client.Syntax.MissingDestinationSet','es','Por favor, elija un grupo de destinos'),(900,'Client.Syntax.MissingDestinationSet','fr','Please choose a destination set.'),(901,'Client.Syntax.UnknownProtocol','en','Unknown protocol'),(902,'Client.Syntax.UnknownProtocol','de','Unbekanntes Protokoll'),(903,'Client.Syntax.UnknownProtocol','es','Protocolo desconocido'),(904,'Client.Syntax.UnknownProtocol','fr','Unknown protocol'),(905,'Client.Voip.InvalidEnum','en','Invalid enum'),(906,'Client.Voip.InvalidEnum','de','Ungültiger Wert'),(907,'Client.Voip.InvalidEnum','es','Valor inválido'),(908,'Client.Voip.InvalidEnum','fr','Invalid enum'),(909,'Client.Syntax.UnknownLock','en','Unknown locklevel'),(910,'Client.Syntax.UnknownLock','de','Unbekannter Locklevel'),(911,'Client.Syntax.UnknownLock','fr','Unknown locklevel'),(912,'Client.Syntax.UnknownLock','es','Nivel de bloqueo inválido'),(913,'Server.Voip.SoundSetDeleted','en','Soundset deleted'),(914,'Server.Voip.SoundSetDeleted','de','Soundset gelöscht'),(915,'Server.Voip.SoundSetDeleted','fr','Soundset deleted'),(916,'Server.Voip.SoundSetDeleted','es','Grupo de locuciones eliminado'),(917,'Server.Voip.SoundSetMapped','en','Soundset still mapped'),(918,'Server.Voip.SoundSetMapped','de','Soundset in Verwendung'),(919,'Server.Voip.SoundSetMapped','fr','Soundset still mapped'),(920,'Server.Voip.SoundSetMapped','es','El grupo de locuciones aún está asignado'),(921,'Server.Voip.NoSuchSoundSet','en','Soundset does not exist '),(922,'Server.Voip.NoSuchSoundSet','de','Soundset existiert nicht '),(923,'Server.Voip.NoSuchSoundSet','fr','Soundset does not exist '),(924,'Server.Voip.NoSuchSoundSet','es','El grupo de locuciones no existe'),(925,'Client.Syntax.MissingSoundFile','en','Soundfile missing '),(926,'Client.Syntax.MissingSoundFile','de','Soundfile fehlt '),(927,'Client.Syntax.MissingSoundFile','es','Locución no encontrada'),(928,'Client.Syntax.MissingSoundFile','fr','Soundfile missing '),(929,'Client.Syntax.InvalidE164Number','en','Invalid E.164 Number'),(930,'Client.Syntax.InvalidE164Number','de','Ungültige E.164 Nummer'),(931,'Client.Syntax.InvalidE164Number','es','Número E164 inválido'),(932,'Client.Syntax.InvalidE164Number','fr','Invalid E.164 Number'),(933,'Client.Syntax.InvalidSipUsernamePattern','en','Invalid SIP username pattern, please use numbers, letters, \"*\", \"?\" and bracket expressions only. Bracket expressions may contain single characters, ranges and the leading negation. Eg.: [0-9a-z], [^abc].'),(934,'Client.Syntax.InvalidSipUsernamePattern','de','Ungültiges SIP username Muster, bitte verwenden Sie nur Ziffern, Buchstaben, \"*\", \"?\" und Klammerausdrücke. In Klammerausdrücke erlaubt sind einzelne Zeichen, Bereiche und Negation. Zb: [0-9a-z], [^abc].'),(935,'Client.Syntax.InvalidSipUsernamePattern','es','Patrón de usuario SIP no válido. Por favor, use números, letras, \"*\", \"?\" y corchetes únicamente. Los corchetes pueden contener caracteres, rangos y negaciones. Ej: [0-9a-z], [^abc]'),(936,'Client.Syntax.InvalidSipUsernamePattern','fr','Invalid SIP username pattern, please use numbers, letters, \"*\", \"?\" and bracket expressions only. Bracket expressions may contain single characters, ranges and the leading negation. Eg.: [0-9a-z], [^abc].'),(937,'Client.Syntax.InvalidSipUsername','en','Invalid sip username'),(938,'Client.Syntax.InvalidSipUsername','de','Ungültiger sip username'),(939,'Client.Syntax.InvalidSipUsername','es','Usuario SIP no válido'),(940,'Client.Syntax.InvalidSipUsername','fr','Invalid sip username'),(941,'Client.Voip.ExistingWebUser','en','This webuser is already in use.'),(942,'Client.Voip.ExistingWebUser','de','Dieser Webuser ist nicht mehr verfügbar.'),(943,'Client.Voip.ExistingWebUser','es','El usuario web ya se encuentra en uso'),(944,'Client.Voip.ExistingWebUser','fr','This webuser is already in use.'),(945,'Server.Voip.SoundFileExists','en','Soundfile already exists'),(946,'Server.Voip.SoundFileExists','de','Soundfile existiert bereits'),(947,'Server.Voip.SoundFileExists','fr','Soundfile already exists'),(948,'Server.Voip.SoundFileExists','es','La locución ya existe'),(949,'Server.System.WaveTranscodeFailed','en','Failed to transcode sound file'),(950,'Server.System.WaveTranscodeFailed','de','Transkodieren der Sounddatei fehlgeschlagen'),(951,'Server.System.WaveTranscodeFailed','es','Ha fallado la transcodificación de la locución'),(952,'Server.System.WaveTranscodeFailed','fr','Failed to transcode sound file'),(953,'Client.Syntax.InvalidFileType','en','Invalid file type'),(954,'Client.Syntax.InvalidFileType','de','Ungültiger Dateityp'),(955,'Client.Syntax.InvalidFileType','es','Tipo de fichero inválido'),(956,'Client.Syntax.InvalidFileType','fr','Invalid file type'),(957,'Client.Voip.DuplicatePeeringRule','en','This peering rule already exists.'),(958,'Client.Voip.DuplicatePeeringRule','de','Diese Peering-Regel existiert bereits.'),(959,'Client.Voip.DuplicatePeeringRule','es','Regla de peering duplicada'),(960,'Client.Voip.DuplicatePeeringRule','fr','This peering rule already exists.'),(961,'Client.Voip.NoSuchSubscriber','en','Subscriber does not exist'),(962,'Client.Voip.NoSuchSubscriber','de','Subscriber existiert nicht'),(963,'Client.Voip.NoSuchSubscriber','es','No existe el subscriber'),(964,'Client.Voip.NoSuchSubscriber','fr','Subscriber does not exist'),(965,'Client.Billing.MalformedAmount','it','Per favore specificare l\'ammontare con un numero intero.'),(966,'Client.Billing.NoPayType','it','Per favore scegliere un tipo di pagamento.'),(967,'Client.Syntax.Date','it','Formato data non valido.'),(968,'Client.Syntax.Email','it','Indirizzo e-mail non valido.'),(969,'Client.Syntax.MalformedDomain','it','caratteri non valido nel dominio.'),(970,'Client.Syntax.MalformedUsername','it','caratteri non validi nello username.'),(971,'Client.Syntax.MissingDomain','it','Per favore immettere lo username e il dominio.'),(972,'Client.Syntax.MissingParam','it','Manca un parametro obbligatorio.'),(973,'Client.Syntax.MalformedUri','it','SIP URI non valida.'),(974,'Client.Syntax.MissingUsername','it','Per favore inserire uno username.'),(975,'Client.Syntax.VoiceBoxPin','it','Per favore inserire 4 cifre, oppure lasciare il campo testo vuoto.'),(976,'Client.Voip.AssignedExtension','it','L\'interno e\' gia\' in uso.'),(977,'Client.Voip.AssignedNumber','it','Il numero telefono specificato non e\' piu\' disponibile. '),(978,'Client.Voip.AuthFailed','it','Login fallito, prego verificare le credenziali.'),(979,'Client.Voip.ChooseNumber','it','Prego selezionare un numero dalla lista.'),(980,'Client.Voip.DeniedNumber','it','Il numero di telefono specificato non e\' disponibile.'),(981,'Client.Voip.ExistingSubscriber','it','Lo username e\' gia\' in uso.'),(982,'Client.Voip.ForwardSelect','it','Per favore selezionare quando deviare la chiamata.'),(983,'Client.Voip.IncorrectPass','it','Password errata, prego verificare.'),(984,'Client.Voip.InputErrorFound','it','Trovato un valore mancato o non valido.'),(985,'Client.Voip.MalformedAc','it','Prefisso non valido, prego utilizzare solo cifre e non utilizzare lo zero come prima cifra.'),(986,'Client.Voip.MalformedCc','it','Prefisso internazionale non valido, prego utilizzare solo cifre e non utilizzare lo zero come prima cifra.)'),(987,'Client.Voip.MalformedSn','it','Numero interno non valido, prego utilizzare solo cifre. (Il numero non deve iniziare con lo zero.)'),(988,'Client.Voip.MalformedNumber','it','Numero non valido, prego utilizzare solo cifre ed includere il prefisso.'),(989,'Client.Voip.MalformedNumberPattern','it','Valore non valido, prego utilizzare solo numeri e “?” o “*” rispettivamente per una o un numero arbitrario di cifre.'),(990,'Client.Voip.MalformedTargetClass','it','Prego scegliere un target.'),(991,'Client.Voip.MalformedTarget','it','Destinazione non valida, prego utilizzare solo cifre o inserire una SIP URI valida.'),(992,'Client.Voip.MalformedTimeout','it','Timeout non valido, prego utilizzare solo cifre.'),(993,'Client.Voip.MissingName','it','Prego immettere almeno il nome o il cognome.'),(994,'Client.Voip.MissingOldPass','it','Prego immettere la propria password.'),(995,'Client.Voip.MissingPass2','it','Prego immettere la password in entrambi i campi.'),(996,'Client.Voip.MissingPass','it','Prego immettere una password.'),(997,'Client.Voip.MissingRingtimeout','it','Prego specificare un timeout per le chiamate in ingresso. (In secondi da 5 a 300).'),(998,'Client.Voip.NoSuchDomain','it','Il dominio specificato non esiste.'),(999,'Client.Voip.NoSuchNumber','it','Il numero di telefono speficato non e\' disponibile.'),(1000,'Client.Voip.PassLength','it','The password is too short'),(1001,'Client.Voip.PassNoMatch','it','Le password non coincidono, prego verificare.'),(1002,'Client.Voip.ToManyPreference','it','Massimo numero di valori raggiunto.'),(1003,'Server.Billing.Success','it','L\'account e\' stato compilato con successo.'),(1004,'Server.Internal','it','Errore interno, prego riprovare.'),(1005,'Server.Paypal.Error','it','Prego seguire le istruzioni sul sito PayPal per trasferire il credito.'),(1006,'Server.Paypal.Fault','it','Errore di comunicazione con il server PayPal, prego riprovare piu\' tardi.'),(1007,'Server.Paypal.Invalid','it','Errore di comunicazione con il server PayPal, prego riprovare piu\' tardi.'),(1008,'Server.Voip.RemovedContact','it','Il valore contact e\' stato eliminato.'),(1009,'Server.Voip.RemovedRegisteredContact','it','Il valore contact registrato e\' stato eliminato.'),(1010,'Server.Voip.AddedRegisteredContact','it','Il valore contact registrato permanentemente e\' stato aggiunto.'),(1011,'Server.Voip.RemovedVoicemail','it','Il messaggio vocale e\' stato eliminato.'),(1012,'Server.Voip.SavedContact','it','Il valore contact e\' stato salvato.'),(1013,'Server.Voip.SavedPass','it','La password e\' stata modificata con successo.'),(1014,'Server.Voip.SavedSettings','it','Le impostazioni sono state salvate.'),(1015,'Server.Voip.SubscriberCreated','it','L\'utente e\' stato salvato e puo\' essere configurato.'),(1016,'Server.Voip.SubscriberDeleted','it','L\'utente e\' stato eliminato.'),(1017,'Server.System.RRDOpenError','it','Apertura del file RRD fallita'),(1018,'Server.System.RRDBinmodeError','it','Switch a BIN del file RRD fallito. '),(1019,'Server.System.RRDReadError','it','Lettura del file RRD fallita.'),(1020,'Web.Addressbook.Fax','it','Fax'),(1021,'Web.Addressbook.Home','it','Casa'),(1022,'Web.Addressbook.Mobile','it','Cellulare'),(1023,'Web.Addressbook.Office','it','Ufficio'),(1024,'Web.MissingRedInput','it','Prego riempire almeno tutti I campi in rosso.'),(1025,'Web.Months.01','it','Gennaio'),(1026,'Web.Months.02','it','Febbraio'),(1027,'Web.Months.03','it','Marzo'),(1028,'Web.Months.04','it','Aprile'),(1029,'Web.Months.05','it','Maggio'),(1030,'Web.Months.06','it','Giugno'),(1031,'Web.Months.07','it','Luglio'),(1032,'Web.Months.08','it','Agosto'),(1033,'Web.Months.09','it','Settembre'),(1034,'Web.Months.10','it','Ottobre'),(1035,'Web.Months.11','it','Novembre'),(1036,'Web.Months.12','it','Dicembre'),(1037,'Client.Syntax.AccountID','it','ID non valido, prego utilizzare solo cifre.'),(1038,'Client.Syntax.CashValue','it','Ammontare non valito, prego utilizzare solo numeri, com virgola o punto come separatore decimale.'),(1039,'Client.Syntax.TimeValue','it','Valore non valido, prego utilizzare solo numeri.'),(1040,'Client.Syntax.LoginMissingUsername','it','Prego immettere il proprio username.'),(1041,'Client.Syntax.LoginMissingPass','it','Prego immettere la propria password.'),(1042,'Client.Voip.NoSuchAccount','it','Questo utente non esiste.'),(1043,'Client.Voip.ExistingDomain','it','Il dominio esiste gia\'.'),(1044,'Web.Domain.Created','it','Il dominio e\' stato salvato.'),(1045,'Web.Domain.Deleted','it','Il dominio e\' stato eliminato.'),(1046,'Client.Admin.ExistingAdmin','it','Lo username e\' gia\' in uso.'),(1047,'Client.Admin.NoSuchAdmin','it','L\'amministratore non esiste.'),(1048,'Client.Syntax.MalformedLogin','it','Carattere non valido nel nome di Login. Prego utilizzare solo caratteri alfanumerici.'),(1049,'Web.Admin.Created','it','L\'amministratore e\' stato salvato.'),(1050,'Web.Admin.Deleted','it','L\'amministratore e\' stato eliminato'),(1051,'Web.Account.Created','it','L\'utente e\' stato salvato.'),(1052,'Web.Payment.UnknownError','it','Fallimento nell\'inizializzare la transazione. Prego riprovare piu\' tardi o verificare I valori inseriti.'),(1053,'Web.Payment.HttpFailed','it','Il server per il pagamento non puo\' essere raggiunto. Prego riprovare piu\' tardi.'),(1054,'Web.Syntax.Numeric','it','Numero non valido, prego usare solo cifre numeriche.'),(1055,'Web.MissingContactInfo','it','Prego controllare la casella “come sopra” o riempire tutti I campi addizionali.'),(1056,'Web.MissingInput','it','Prego riempire tutti I campi.'),(1057,'Web.Subscriber.Lockforeign','it','L\'interno e\' bloccato per le chiamate che lasciano il sistema.'),(1058,'Web.Subscriber.Lockoutgoing','it','L\'interno e\' bloccato per le chiamate in uscita.'),(1059,'Web.Subscriber.Lockincoming','it','L\'interno e\' bloccato chiamate in uscita e in ingresso.'),(1060,'Web.Subscriber.Lockglobal','it','L\'interno e\' bloccato per tutti I servizi.'),(1061,'Web.Payment.ExternalError','it','La transizione e\' fallita. Prego riprovare piu\' tardi e seguire tutte le istruzioni sul sito web esterno.'),(1062,'Client.Voip.NoGroupName','it','Prego immettere un nome per il gruppo.'),(1063,'Client.Voip.NoGroupExt','it','Prego immettere un interno numerico per il gruppo.'),(1064,'Client.Voip.MacInUse','it','Indirizzo MAC gia\' utilizzato.'),(1065,'Web.MissingSystem','it','Prego scegliere il PBX IP che si intende utilizzare.'),(1066,'Web.MissingAGB','it','Prego sottoscrivere alle nostre condizioni generali di contratto.'),(1067,'Web.Account.Activated','it','L\'utente e\' stato attivato.'),(1068,'Client.Billing.AuthFailed','it','Login fallito, prego verificare le proprie credenziali.'),(1069,'Web.MissingSearchString','it','Prego immettere un valore di ricerca.'),(1070,'Client.Billing.ContactIncomplete','it','Prego immettere almeno un nome, cognome o azienda.'),(1071,'Client.Billing.ExistingShopuser','it','Questo username e\' gia\' in uso.'),(1072,'Client.Billing.ExistingProduct','it','Un prodotto con il seguente identificativo esiste gia\'.'),(1073,'Client.Billing.NoSuchProduct','it','Nessun prodotto con il seguente identificativo e\' stato trovato.'),(1074,'Client.Billing.ExistingProfile','it','Un profilo di billing con il seguente identificativo esiste gia\'.'),(1075,'Client.Billing.NoSuchProfile','it','Nessun profilo di billing con il seguente identificativo e\' stato trovato.'),(1076,'Web.Product.Created','it','Il prodotto inserito e\' stato creato.'),(1077,'Web.Product.Updated','it','Il prodotto inserito e\' stato modificato.'),(1078,'Web.Product.Deleted','it','Il prodotto inserito e\' stato eliminato.'),(1079,'Web.Bilprof.Created','it','Il profilo tariffario e\' stato creato.'),(1080,'Web.Bilprof.Updated','it','Il profilo tariffario e\' stato modificato.'),(1081,'Web.Bilprof.Deleted','it','Il profilo tariffario e\' stato eliminato.'),(1082,'Web.Fees.MissingFilename','it','Prego immettere un nome file.'),(1083,'Web.Fees.Fieldcount','it','Numero di elementi errato'),(1084,'Web.Fees.FieldsFoundRequired','it','Elementi trovati/richiesti:'),(1085,'Web.Fees.InvalidDestination','it','Prefisso/suffisso di destinazione non valido'),(1086,'Client.Billing.NoSuchCustomer','it','Il cliente specificato non esiste.'),(1087,'Client.Syntax.MalformedDaytime','it','Orario inserito non valido, prego immettere ore, minuti e secondi nel formato HH:MM:SS.'),(1088,'Web.Fees.SavedPeaktimes','it','Gli orari inseriti sono stati aggiornati.'),(1089,'Client.Voip.DuplicatedNumber','it','Un numero di telefono e\' stato specificato piu\' di una volta.'),(1090,'Client.Voip.SlotAlreadyExists','it','Il codice di chiamata rapida e\' gia\' in uso.'),(1091,'Client.Voip.SlotNotExistent','it','Il codice di chiamata rapida non esiste.'),(1092,'Client.Syntax.MalformedSpeedDialDestination','it','La destinazione associata al codice di chiamata rapida non e\' valida.'),(1093,'Client.Syntax.MalformedVSC','it','Il codice di servizio (VSC) non e\' valido.'),(1094,'Client.Syntax.MalformedIPNet','it','ipnet non valido, prego utilizzare la notazione decimale puntata e specificare la maschera com numero di bits.'),(1095,'Client.Syntax.MalformedIP','it','ip non valido, pre utilizzare la notazione decimale puntata per IPv4 o indirizzi senza parentesi quadre per IPv6.'),(1096,'Server.Voip.PeerGroupDeleted','it','Il peering group e\' stato eliminato.'),(1097,'Client.Voip.NoSuchPeerGroup','it','Il peering group non esiste.'),(1098,'Client.Voip.NoPeerContract','it','Nessun peering contract selezionato.'),(1099,'Client.Voip.ExistingPeerGroup','it','Il peering group esiste gia\'.'),(1100,'Client.Syntax.MalformedPeerGroupName','it','Carattere non valido nel nome del peering group.'),(1101,'Client.Voip.NoSuchPeerRule','it','La regola non esiste.'),(1102,'Client.Voip.NoSuchPeerHost','it','L\'host non esiste.'),(1103,'Client.Voip.ExistingPeerHost','it','Un host con questo nome esiste gia\' in questo gruppo.'),(1104,'Client.Voip.ExistingPeerIp','it','Un host con questo IP esiste gia\' in questo gruppo.'),(1105,'Client.Voip.NoSuchPeerRewriteRule','it','Le regole di riscrittura per questo peering non esistono.'),(1106,'Client.Voip.NoSuchDomainRewriteRule','it','Le regole di riscrittura per questo dominio non esistono.'),(1107,'Client.Voip.NoSuchCfDestSet','it','La tipologia di destinazione per la deviazione di chiamata non esiste.'),(1108,'Client.Voip.ExistingCfDestSet','it','La tipologia di destinazione per la deviazione di chiamata esiste gia\'.'),(1109,'Client.Voip.NoSuchCfDest','it','La destinazione per la deviazione di chiamata non esiste.'),(1110,'Client.Voip.ExistingCfDest','it','La destinazione per la deviazione di chiamata esiste gia\'.'),(1111,'Client.Voip.NoSuchCfTimeSet','it','Le regole temporali per la deviazione di chiamata non esistono.'),(1112,'Client.Voip.ExistingCfTimeSet','it','La regole temporali per la deviazione di chiamata esistono gia\'.'),(1113,'Client.Voip.NoSuchCfPeriod','it','Il periodo temporale per la deviazione di chiamata non esiste.'),(1114,'Client.Voip.MalformedFaxDestination','it','\'destination\' deve essere un indirizzo email o un numero di telefono.'),(1115,'Client.Syntax.FaxPassLength','it','La password e\' troppo breve, prego usare ${faxpw_min_char} caratteri almeno.'),(1116,'Web.Syntax.ID','it','ID non valido, prego immettere un valore numerico.'),(1117,'Web.Syntax.LNPProvName','it','Prego immettere un nome per il campo provider.'),(1118,'Web.LNPProvider.Created','it','Il provider LNP e\' stato creato.'),(1119,'Web.LNPProvider.Updated','it','Il provider LNP e\' stato modificato.'),(1120,'Web.LNPProvider.Deleted','it','Il provider LNP e\' stato eliminato.'),(1121,'Web.LNPNumber.Created','it','Il numero LNP e\' stato memorizzato.'),(1122,'Web.LNPNumber.Updated','it','Il numero LNP e\' stato modificato.'),(1123,'Web.LNPNumber.Deleted','it','Il numero LNP e\' stato eliminato.'),(1124,'Client.Syntax.MalformedE164Number','it','Numerazione E.164 non valida. Prego utilizzare solo numeri ed includere il prefisso internazionale.'),(1125,'Client.Syntax.MalformedDate','it','Data non valida, prego controllare la sintassi.'),(1126,'Client.Syntax.MissingNCOSLevel','it','Prego specificare un livello NCOS.'),(1127,'Client.NCOS.ExistingLevel','it','Il livello NCOS esiste gia\'.'),(1128,'Client.NCOS.NoSuchLevel','it','Il livello NCOS non esiste.'),(1129,'Web.NCOSLevel.Created','it','Il livello NCOS e\' stato creato.'),(1130,'Web.NCOSLevel.Updated','it','Il livello NCOS e\' stato modificato.'),(1131,'Web.NCOSLevel.Deleted','it','Il livello NCOS e\' stato eliminato.'),(1132,'Web.NCOSPattern.Created','it','Il pattern e\' stato memorizzato.'),(1133,'Web.NCOSPattern.Updated','it','Il pattern e\' stato aggiornato.'),(1134,'Web.NCOSPattern.Deleted','it','Il pattern e\' stato eliminato.'),(1135,'Web.NCOSLNP.Created','it','Il provider e\' stato aggiunto alla lista.'),(1136,'Web.NCOSLNP.Updated','it','Il provider e\' stato aggiornato.'),(1137,'Web.NCOSLNP.Deleted','it','Il provider e\' stato rimosso dalla lista.'),(1138,'Client.Syntax.MalformedNCOSPattern','it','Il pattern non puo\' essere vuoto, prego specificare una espressione regolare.'),(1139,'Client.Syntax.MalformedAudioData','it','File audio non valido, prego immettere una file audio in formato wav.'),(1140,'Client.Voip.ExistingAudioFile','it','Identificativo per il file audio gia\' in uso.'),(1141,'Client.Voip.NoSuchAudioFile','it','L\'dentificativo per il file audio non esiste..'),(1142,'Web.AudioFile.Created','it','Il file audio e\' stato creato.'),(1143,'Web.AudioFile.Updated','it','Il file audio e\' stato modificato.'),(1144,'Web.AudioFile.Deleted','it','Il file audio e\' stato eliminato.'),(1145,'Client.Syntax.MalformedHandle','it','Identificativo non valido, prego specificare una stringa alfanumerica.'),(1146,'Client.VSC.NoSuchAction','it','L\'azione per il codice VSC non esiste.'),(1147,'Client.VSC.ExistingAction','it','L\'azione per il codice VSC e\' stata gia\' definita.'),(1148,'Client.VSC.ExistingDigits','it','Le cifre sono gia\' utilizzate da un altro codice VSC.'),(1149,'Client.Syntax.MalformedVSCDigits','it','Codice VSC non valido, prego immettere esattamente due cifre.'),(1150,'Web.VSC.Created','it','Codice VSC creato.'),(1151,'Web.VSC.Updated','it','Codice VSC modificato.'),(1152,'Web.VSC.Deleted','it','Codice VSC eliminato.'),(1153,'Client.Voip.AudioFileInUse','it','Il file audio e\' in uso e non puo\' essere eliminato.'),(1154,'Web.Contract.Created','it','Il contract e\' stato creato.'),(1155,'Web.Contract.Updated','it','Il contract e\' stato modificato.'),(1156,'Web.Contract.Deleted','it','Il contract e\' stato eliminato.'),(1157,'Web.NCOSLevel.LACSet','it','Il prefisso chiamante e\' stato aggiunto alla lista.'),(1158,'Web.NCOSLevel.LACUnset','it','Il prefisso chiamante e\' stato rimosso dalla lista.'),(1159,'Web.NumberBlock.Created','it','Il blocco numero e\' stato creato.'),(1160,'Web.NumberBlock.Updated','it','Il blocco numero e\' stato modificato.'),(1161,'Web.NumberBlock.Deleted','it','Il blocco numero e\' stato eliminato.'),(1162,'Client.Syntax.MalformedReminderTime','it','Stringa temporale non valida, prego usare il formato \'hh:mm\''),(1163,'Web.Fax.ExistingFaxDestination','it','Questa destinazione e\' gia\' nella lista.'),(1164,'Client.Voip.ReservedSubscriber','it','Questo username e\' riservato per uso interno.'),(1165,'Server.Voip.NoProxy','it','Nessun SIP Proxy e\' stato configurato per il click-to-dial.'),(1166,'Client.Fees.DuplicateDestination','it','Un prefisso/suffisso di destinazione e\' stato specificato due volte.'),(1167,'Client.Billing.ExistingExternalCID','it','Questo External ID e\' gia\' in utilizzato da un altro cliente.'),(1168,'Client.Billing.ExistingExternalAID','it','Questo External ID e\' gia\' in utilizzato da un altro utente.'),(1169,'Client.Billing.ExistingExternalSID','it','Questo External ID e\' gia\' in utilizzato da un altro interno.'),(1170,'Web.Syntax.MissingExternalID','it','Prego immettere un external ID nel campo di ricerca.'),(1171,'Client.Voip.ExistingRewriteRuleSet','it','Il nome per le regole di riscrittura e\' gia\' in uso.'),(1172,'Client.Voip.NoSuchRewriteRuleSet','it','La tipologia di regola di riscrittura non esiste.'),(1173,'Client.Voip.NoSuchRewriteRule','it','La regola di riscrittura non esiste.'),(1174,'Web.Rewrite.RuleSetDeleted','it','La tipologia di regola di riscrittura e\' stata eliminata.'),(1175,'Web.Fees.InvalidCharset','it','Gruppo di caratteri non valido, prego immettere tutti I dati codificati UTF-8.'),(1176,'Web.Fees.InvalidZone','it','Zona specificata non valida, dovrebbe essere una stringa non vuota.'),(1177,'Web.Fees.InvalidZoneDetail','it','Dettaglio zona specificato non valido, dovrebbe essere una stringa non vuota.'),(1178,'Web.Fees.InvalidRate','it','Prezzo non valido, dovrebbe essere un numero in virgola mobile.'),(1179,'Web.Fees.InvalidInterval','it','Intervallo specificato non valido, dovrebbe essere un numero intero.'),(1180,'Client.Syntax.InvalidYear','it','Anno non valido.'),(1181,'Client.Syntax.InvalidMonth','it','Mese non valido.'),(1182,'Client.Syntax.InvalidMDay','it','Giorno del mese non valido.'),(1183,'Client.Syntax.InvalidWDay','it','Giorno della settimana.'),(1184,'Client.Syntax.InvalidHour','it','Ora non valida.'),(1185,'Client.Syntax.InvalidMinute','it','Minuto non valido.'),(1186,'Client.Syntax.FromMissing','it','Manca un inizio.'),(1187,'Client.Syntax.FromAfterTo','it','Inizio dopo fine.'),(1188,'Client.Syntax.EmptySetName','it','Setname non puo\' essere vuoto.'),(1189,'Client.Syntax.MissingDestinationSet','it','Prego scegliere una tipologia di destinazione.'),(1190,'Client.Syntax.UnknownProtocol','it','Protocollo sconosciuto.'),(1191,'Client.Voip.InvalidEnum','it','ENUM non valido.'),(1192,'Client.Syntax.UnknownLock','it','Locklevel non valido.'),(1193,'Server.Voip.SoundSetDeleted','it','Tipologia di suoni eliminata.'),(1194,'Server.Voip.SoundSetMapped','it','Tipologia di suoni ancora assegnata.'),(1195,'Server.Voip.NoSuchSoundSet','it','La tipologia di suoni non esiste.'),(1196,'Client.Syntax.MissingSoundFile','it','File audio mancante.'),(1197,'Client.Syntax.InvalidE164Number','it','Numerazione E.164 non valida.'),(1198,'Client.Syntax.InvalidSipUsernamePattern','it','Pattern specificato per username SIP non valido, prego utilizzare solo numeri, lettere, “*”, “?” e “[n-m]”'),(1199,'Client.Syntax.InvalidSipUsername','it','Username SIP non valido.'),(1200,'Client.Voip.ExistingWebUser','it','L\'utente webuser e\' gia\' in uso.'),(1201,'Server.Voip.SoundFileExists','it','Il file audio esiste gia\'.'),(1202,'Server.System.WaveTranscodeFailed','it','Transcodifica del file audio fallita.'),(1203,'Client.Syntax.InvalidFileType','it','Tipo di file non valido.'),(1204,'Client.Voip.DuplicatePeeringRule','it','Questa regola esiste gia\'.'),(1205,'Client.Voip.FaxQueued','en','Fax is going to be sent'),(1206,'Client.Voip.FaxQueued','de','Fax wird gesendet'),(1207,'Client.Voip.FaxQueued','es','Fax se transmite'),(1208,'Client.Voip.FaxQueued','it','Fax verrà trasmesso'),(1209,'Client.Voip.FaxQueued','fr','Fax sera transmis'),(1210,'Client.Voip.NoFaxData','en','No Fax content specified'),(1211,'Client.Voip.NoFaxData','de','Kein Inhalt zur Fax-Übertragung angegeben'),(1212,'Client.Voip.NoFaxData','es','No se especifica el contenido del fax'),(1213,'Client.Voip.NoFaxData','it','Nessun contenuto fax è specificato'),(1214,'Client.Voip.NoFaxData','fr','Aucun contenu du fax est spécifié'),(1215,'Client.Voip.InvalidFaxFileType','en','Invalid File Type for Fax'),(1216,'Client.Voip.InvalidFaxFileType','de','Ungültiger Datei-Typ für Fax'),(1217,'Client.Voip.InvalidFaxFileType','es','Tipo de archivo no válido para el fax'),(1218,'Client.Voip.InvalidFaxFileType','it','Tipo di file non valido per il fax'),(1219,'Client.Voip.InvalidFaxFileType','fr','Type de fichier non valide pour fax'),(1220,'Web.Fees.InvalidDirection','en','Invalid fee direction'),(1221,'Web.Fees.InvalidDirection','de','Ungültige Gebühren-Richtung'),(1222,'Web.Fees.InvalidDirection','fr','Invalid fee direction'),(1223,'Web.Fees.InvalidDirection','es','Invalid fee direction'),(1224,'Client.Voip.PasswordMinLength','en','The password is too short'),(1225,'Client.Voip.PasswordMinLength','de','The password is too short'),(1226,'Client.Voip.PasswordMinLength','es','The password is too short'),(1227,'Client.Voip.PasswordMinLength','fr','The password is too short'),(1228,'Client.Voip.PasswordMinLength','it','The password is too short'),(1229,'Client.Voip.PasswordMaxLength','en','The password is too long'),(1230,'Client.Voip.PasswordMaxLength','de','The password is too long'),(1231,'Client.Voip.PasswordMaxLength','es','The password is too long'),(1232,'Client.Voip.PasswordMaxLength','fr','The password is too long'),(1233,'Client.Voip.PasswordMaxLength','it','The password is too long'),(1234,'Client.Voip.PasswordMusthaveLowercase','en','The password must contain lower-case character'),(1235,'Client.Voip.PasswordMusthaveLowercase','de','Kleinbuchstaben müssen enthalten sein'),(1236,'Client.Voip.PasswordMusthaveLowercase','fr','The password must contain lower-case character'),(1237,'Client.Voip.PasswordMusthaveLowercase','es','The password must contain lower-case character'),(1238,'Client.Voip.PasswordMusthaveLowercase','it','The password must contain lower-case character'),(1239,'Client.Voip.PasswordMusthaveUppercase','en','The password must contain upper-case character'),(1240,'Client.Voip.PasswordMusthaveUppercase','de','Spezialzeichen müssen enthalten sein'),(1241,'Client.Voip.PasswordMusthaveUppercase','fr','The password must contain upper-case character'),(1242,'Client.Voip.PasswordMusthaveUppercase','es','The password must contain upper-case character'),(1243,'Client.Voip.PasswordMusthaveUppercase','it','The password must contain upper-case character'),(1244,'Client.Voip.PasswordMusthaveDigit','en','The password must contain digit'),(1245,'Client.Voip.PasswordMusthaveDigit','de','Ziffern müssen enthalten sein'),(1246,'Client.Voip.PasswordMusthaveDigit','fr','The password must contain digit'),(1247,'Client.Voip.PasswordMusthaveDigit','es','The password must contain digit'),(1248,'Client.Voip.PasswordMusthaveSpecialchar','en','The password must contain special characters'),(1249,'Client.Voip.PasswordMusthaveSpecialchar','de','Spezialzeichen müssen enthalten sein'),(1250,'Client.Voip.PasswordMusthaveSpecialchar','fr','The password must contain special characters'),(1251,'Client.Voip.PasswordMusthaveSpecialchar','es','The password must contain special characters');
/*!40000 ALTER TABLE `language_strings` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_aig_sequence`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_aig_sequence` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_aig_sequence` WRITE;
/*!40000 ALTER TABLE `voip_aig_sequence` DISABLE KEYS */;
INSERT INTO `voip_aig_sequence` VALUES (100);
/*!40000 ALTER TABLE `voip_aig_sequence` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_allowed_ip_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_allowed_ip_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(10) unsigned NOT NULL,
`ipnet` varchar(18) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `groupnet_idx` (`group_id`,`ipnet`),
KEY `groupid_idx` (`group_id`),
KEY `ipnet_idx` (`ipnet`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_allowed_ip_groups` WRITE;
/*!40000 ALTER TABLE `voip_allowed_ip_groups` DISABLE KEYS */;
INSERT INTO `voip_allowed_ip_groups` VALUES (1,1,'127.0.0.1');
/*!40000 ALTER TABLE `voip_allowed_ip_groups` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_aig_crepl_trig AFTER INSERT ON voip_allowed_ip_groups
FOR EACH ROW BEGIN
INSERT INTO kamailio.address (id, grp, ip_addr, mask)
VALUES(NEW.id, NEW.group_id,
IF(LOCATE('/', NEW.ipnet), SUBSTRING_INDEX(NEW.ipnet, '/', 1), NEW.ipnet),
IF(LOCATE('/', NEW.ipnet), SUBSTRING_INDEX(NEW.ipnet, '/', -1), 32));
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_aig_urepl_trig AFTER UPDATE ON voip_allowed_ip_groups
FOR EACH ROW BEGIN
UPDATE kamailio.address SET id = NEW.id, grp = NEW.group_id,
ip_addr = IF(LOCATE('/', NEW.ipnet), SUBSTRING_INDEX(NEW.ipnet, '/', 1), NEW.ipnet),
mask = IF(LOCATE('/', NEW.ipnet), SUBSTRING_INDEX(NEW.ipnet, '/', -1), 32)
WHERE id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_aig_drepl_trig BEFORE DELETE ON voip_allowed_ip_groups
FOR EACH ROW BEGIN
DELETE FROM kamailio.address WHERE id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_cc_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cc_mappings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uuid` char(36) NOT NULL,
`auth_key` varchar(255) NOT NULL,
`source_uuid` char(36) NOT NULL,
PRIMARY KEY (`id`),
KEY `uuid_idx` (`uuid`),
KEY `uuid_authkey_idx` (`uuid`,`auth_key`),
CONSTRAINT `vs_uuid_ref` FOREIGN KEY (`uuid`) REFERENCES `voip_subscribers` (`uuid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cc_mappings` WRITE;
/*!40000 ALTER TABLE `voip_cc_mappings` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cc_mappings` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_cf_destination_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cf_destination_sets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned DEFAULT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `sub_idx` (`subscriber_id`),
KEY `name_idx` (`name`),
CONSTRAINT `v_s_subid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cf_destination_sets` WRITE;
/*!40000 ALTER TABLE `voip_cf_destination_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cf_destination_sets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_cf_destinations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cf_destinations` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`destination_set_id` int(11) unsigned NOT NULL,
`destination` varchar(255) NOT NULL,
`priority` int(3) unsigned DEFAULT NULL,
`timeout` int(11) unsigned NOT NULL DEFAULT '300',
PRIMARY KEY (`id`),
KEY `dset_idx` (`destination_set_id`),
KEY `destination_idx` (`destination`),
CONSTRAINT `v_cf_dsetid_ref` FOREIGN KEY (`destination_set_id`) REFERENCES `voip_cf_destination_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cf_destinations` WRITE;
/*!40000 ALTER TABLE `voip_cf_destinations` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cf_destinations` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_cf_mappings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cf_mappings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`type` enum('cfu','cfb','cfna','cft') NOT NULL DEFAULT 'cfu',
`destination_set_id` int(11) unsigned DEFAULT NULL,
`time_set_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `sub_idx` (`subscriber_id`),
KEY `type_idx` (`type`),
KEY `cfmap_time_ref` (`time_set_id`),
KEY `cfmap_dest_ref` (`destination_set_id`),
CONSTRAINT `cfmap_dest_ref` FOREIGN KEY (`destination_set_id`) REFERENCES `voip_cf_destination_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cfmap_time_ref` FOREIGN KEY (`time_set_id`) REFERENCES `voip_cf_time_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_cfmap_subid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cf_mappings` WRITE;
/*!40000 ALTER TABLE `voip_cf_mappings` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cf_mappings` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_cf_periods`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cf_periods` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`time_set_id` int(11) unsigned NOT NULL,
`year` varchar(255) DEFAULT NULL,
`month` varchar(255) DEFAULT NULL,
`mday` varchar(255) DEFAULT NULL,
`wday` varchar(255) DEFAULT NULL,
`hour` varchar(255) DEFAULT NULL,
`minute` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tset_idx` (`time_set_id`),
CONSTRAINT `v_cf_tsetid_ref` FOREIGN KEY (`time_set_id`) REFERENCES `voip_cf_time_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cf_periods` WRITE;
/*!40000 ALTER TABLE `voip_cf_periods` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cf_periods` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_cf_time_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_cf_time_sets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned DEFAULT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `sub_idx` (`subscriber_id`),
KEY `name_idx` (`name`),
CONSTRAINT `v_cf_ts_subid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_cf_time_sets` WRITE;
/*!40000 ALTER TABLE `voip_cf_time_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_cf_time_sets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_contacts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`firstname` varchar(127) DEFAULT NULL,
`lastname` varchar(127) DEFAULT NULL,
`company` varchar(127) DEFAULT NULL,
`phonenumber` varchar(31) DEFAULT NULL,
`homephonenumber` varchar(31) DEFAULT NULL,
`mobilenumber` varchar(31) DEFAULT NULL,
`faxnumber` varchar(31) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`homepage` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `subscriberid_idx` (`subscriber_id`),
CONSTRAINT `v_c_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_contacts` WRITE;
/*!40000 ALTER TABLE `voip_contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_contacts` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_contract_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_contract_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
`value` varchar(128) NOT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `conidattrid_idx` (`contract_id`,`attribute_id`),
KEY `contractid_idx` (`contract_id`),
KEY `attributeid_idx` (`attribute_id`),
CONSTRAINT `v_c_p_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_contract_preferences` WRITE;
/*!40000 ALTER TABLE `voip_contract_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_contract_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_contractpref_crepl_trig AFTER INSERT ON voip_contract_preferences
FOR EACH ROW BEGIN
INSERT INTO kamailio.contract_preferences
(id, uuid, attribute, type, value, last_modified)
SELECT NEW.id, NEW.contract_id, attribute, type, NEW.value, '0'
FROM provisioning.voip_preferences
WHERE id <=> NEW.attribute_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_contractpref_urepl_trig AFTER UPDATE ON voip_contract_preferences
FOR EACH ROW BEGIN
UPDATE kamailio.contract_preferences pp, provisioning.voip_preferences vp
SET pp.id = NEW.id, pp.uuid = NEW.contract_id, pp.type = vp.type,
pp.attribute = vp.attribute, pp.value = NEW.value, pp.last_modified = '0'
WHERE pp.id <=> OLD.id
AND vp.id <=> NEW.attribute_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_contractpref_drepl_trig BEFORE DELETE ON voip_contract_preferences
FOR EACH ROW BEGIN
DELETE FROM kamailio.contract_preferences
WHERE id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_dbaliases`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_dbaliases` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(127) NOT NULL,
`domain_id` int(11) unsigned NOT NULL,
`subscriber_id` int(11) unsigned NOT NULL,
`is_primary` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `user_dom_idx` (`username`,`domain_id`),
KEY `domainid_idx` (`domain_id`),
KEY `subscriberid_idx` (`subscriber_id`),
CONSTRAINT `v_da_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `voip_domains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_da_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_dbaliases` WRITE;
/*!40000 ALTER TABLE `voip_dbaliases` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_dbaliases` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dba_crepl_trig AFTER INSERT ON voip_dbaliases
FOR EACH ROW BEGIN
DECLARE dbalias_domain varchar(127);
DECLARE target_username varchar(127);
DECLARE target_domain varchar(127);
SELECT domain INTO dbalias_domain FROM voip_domains where id = NEW.domain_id;
SELECT a.username, b.domain INTO target_username, target_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
INSERT INTO kamailio.dbaliases (alias_username, alias_domain, username, domain, is_primary)
VALUES(NEW.username, dbalias_domain, target_username, target_domain, NEW.is_primary);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dba_urepl_trig AFTER UPDATE ON voip_dbaliases
FOR EACH ROW BEGIN
DECLARE old_dbalias_domain varchar(127);
DECLARE new_dbalias_domain varchar(127);
DECLARE target_username varchar(127);
DECLARE target_domain varchar(127);
SELECT domain INTO old_dbalias_domain FROM voip_domains where id = OLD.domain_id;
SELECT domain INTO new_dbalias_domain FROM voip_domains where id = NEW.domain_id;
SELECT a.username, b.domain INTO target_username, target_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
UPDATE kamailio.dbaliases SET alias_username = NEW.username, alias_domain = new_dbalias_domain,
username = target_username, domain = target_domain, is_primary = NEW.is_primary
WHERE alias_username <=> OLD.username
AND alias_domain <=> old_dbalias_domain
AND is_primary <=> OLD.is_primary;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dba_drepl_trig BEFORE DELETE ON voip_dbaliases
FOR EACH ROW BEGIN
DECLARE dbalias_domain varchar(127);
SELECT domain INTO dbalias_domain FROM voip_domains where id = OLD.domain_id;
DELETE FROM kamailio.dbaliases WHERE alias_username <=> OLD.username
AND alias_domain <=> dbalias_domain;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_dom_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_dom_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`domain_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
`value` varchar(128) NOT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `domidattrid_idx` (`domain_id`,`attribute_id`),
KEY `domainid_idx` (`domain_id`),
KEY `attributeid_idx` (`attribute_id`),
CONSTRAINT `v_d_p_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `voip_domains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_d_p_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_dom_preferences` WRITE;
/*!40000 ALTER TABLE `voip_dom_preferences` DISABLE KEYS */;
INSERT INTO `voip_dom_preferences` VALUES (1,2,62,'no','0000-00-00 00:00:00'),(2,2,66,'UPDATE_FALLBACK_INVITE','0000-00-00 00:00:00'),(3,2,90,'ice_strip_candidates','2015-06-28 23:09:24'),(6,2,101,'strip','2015-06-28 23:09:27'),(7,2,91,'auto','2015-06-28 23:09:27'),(8,2,107,'never','2015-06-28 23:09:28'),(9,2,124,'override_by_usernpn','2015-06-28 23:09:30'),(10,2,135,'extended_send_dialed','2015-06-28 23:09:30'),(11,2,136,'callee','2015-06-28 23:09:31'),(12,2,139,'en','2015-06-28 23:09:31'),(13,2,152,'transparent','2015-06-28 23:09:32'),(14,2,152,'transparent','2015-06-28 23:09:32');
/*!40000 ALTER TABLE `voip_dom_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dompref_crepl_trig AFTER INSERT ON voip_dom_preferences
FOR EACH ROW BEGIN
DECLARE domain_name varchar(127);
DECLARE attribute_name varchar(31);
DECLARE attribute_type tinyint(3);
SELECT domain INTO domain_name
FROM voip_domains
WHERE id <=> NEW.domain_id;
SELECT attribute, type INTO attribute_name, attribute_type
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
INSERT INTO kamailio.dom_preferences (domain, attribute, type, value)
VALUES(domain_name, attribute_name, attribute_type, NEW.value);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dompref_urepl_trig AFTER UPDATE ON voip_dom_preferences
FOR EACH ROW BEGIN
DECLARE old_domain_name varchar(127);
DECLARE new_domain_name varchar(127);
DECLARE old_attribute_name varchar(31);
DECLARE new_attribute_name varchar(31);
SELECT domain INTO old_domain_name
FROM voip_domains
WHERE id <=> OLD.domain_id;
SELECT domain INTO new_domain_name
FROM voip_domains
WHERE id <=> NEW.domain_id;
SELECT attribute INTO old_attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
SELECT attribute INTO new_attribute_name
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
UPDATE kamailio.dom_preferences SET domain = new_domain_name,
attribute = new_attribute_name,
value = NEW.value
WHERE domain <=> old_domain_name
AND attribute <=> old_attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dompref_drepl_trig BEFORE DELETE ON voip_dom_preferences
FOR EACH ROW BEGIN
DECLARE domain_name varchar(127);
DECLARE attribute_name varchar(31);
SELECT domain INTO domain_name
FROM voip_domains
WHERE id <=> OLD.domain_id;
SELECT attribute INTO attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
DELETE FROM kamailio.dom_preferences WHERE domain <=> domain_name
AND attribute <=> attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_domains`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_domains` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`domain` varchar(127) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `domain_idx` (`domain`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_domains` WRITE;
/*!40000 ALTER TABLE `voip_domains` DISABLE KEYS */;
INSERT INTO `voip_domains` VALUES (2,'voip.sipwise.local');
/*!40000 ALTER TABLE `voip_domains` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dom_crepl_trig AFTER INSERT ON voip_domains
FOR EACH ROW BEGIN
INSERT INTO kamailio.domain (domain) VALUES(NEW.domain);
INSERT INTO voip_dom_preferences (domain_id, attribute_id, value)
SELECT NEW.id, p.id, pe.value
FROM voip_preferences p, voip_preferences_enum pe
WHERE p.id <=> preference_id AND p.dom_pref=1 AND pe.dom_pref=1 AND pe.default_val=1 AND pe.value IS NOT NULL;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_dom_drepl_trig BEFORE DELETE ON voip_domains
FOR EACH ROW BEGIN
DELETE FROM kamailio.domain WHERE domain <=> OLD.domain;
DELETE FROM kamailio.dom_preferences WHERE domain <=> OLD.domain;
DELETE FROM provisioning.voip_subscribers WHERE domain_id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_fax_destinations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_fax_destinations` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`destination` varchar(255) NOT NULL,
`filetype` enum('PS','TIFF','PDF','PDF14') NOT NULL DEFAULT 'TIFF',
`cc` tinyint(1) NOT NULL DEFAULT '0',
`incoming` tinyint(1) NOT NULL DEFAULT '1',
`outgoing` tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `subdest_idx` (`subscriber_id`,`destination`),
CONSTRAINT `v_f_d_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_fax_destinations` WRITE;
/*!40000 ALTER TABLE `voip_fax_destinations` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_fax_destinations` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxd_crepl_trig AFTER INSERT ON voip_fax_destinations
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO subscriber_username, subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id = a.domain_id;
SELECT id INTO os_subscriber_id FROM kamailio.subscriber
WHERE username <=> subscriber_username AND domain <=> subscriber_domain;
INSERT INTO kamailio.fax_destinations (subscriber_id, destination, filetype,
cc, incoming, outgoing, status)
VALUES(os_subscriber_id, NEW.destination, NEW.filetype,
IF(NEW.cc, 'true', 'false'), IF(NEW.incoming, 'true', 'false'),
IF(NEW.outgoing, 'true', 'false'), IF(NEW.status, 'true', 'false'));
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxd_urepl_trig AFTER UPDATE ON voip_fax_destinations
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE os_subscriber_id int(10) UNSIGNED;
DECLARE old_subscriber_username varchar(127);
DECLARE old_subscriber_domain varchar(127);
DECLARE old_os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO subscriber_username, subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO os_subscriber_id FROM kamailio.subscriber
WHERE username <=> subscriber_username AND domain <=> subscriber_domain;
SELECT a.username, b.domain INTO old_subscriber_username, old_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO old_os_subscriber_id FROM kamailio.subscriber
WHERE username <=> old_subscriber_username AND domain <=> old_subscriber_domain;
UPDATE kamailio.fax_destinations SET subscriber_id = os_subscriber_id, destination = NEW.destination,
filetype = NEW.filetype, cc = IF(NEW.cc, 'true', 'false'),
incoming = IF(NEW.incoming, 'true', 'false'),
outgoing = IF(NEW.outgoing, 'true', 'false'),
status = IF(NEW.status, 'true', 'false')
WHERE subscriber_id <=> old_os_subscriber_id
AND destination <=> OLD.destination;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxd_drepl_trig BEFORE DELETE ON voip_fax_destinations
FOR EACH ROW BEGIN
DECLARE old_subscriber_username varchar(127);
DECLARE old_subscriber_domain varchar(127);
DECLARE old_os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO old_subscriber_username, old_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO old_os_subscriber_id FROM kamailio.subscriber
WHERE username <=> old_subscriber_username AND domain <=> old_subscriber_domain;
DELETE FROM kamailio.fax_destinations WHERE subscriber_id <=> old_os_subscriber_id
AND destination <=> OLD.destination;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_fax_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_fax_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`password` varchar(64) DEFAULT NULL,
`name` varchar(64) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0',
`send_status` tinyint(1) NOT NULL DEFAULT '1',
`send_copy` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `subscriberid_idx` (`subscriber_id`),
CONSTRAINT `v_f_p_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_fax_preferences` WRITE;
/*!40000 ALTER TABLE `voip_fax_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_fax_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxp_crepl_trig AFTER INSERT ON voip_fax_preferences
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO subscriber_username, subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO os_subscriber_id FROM kamailio.subscriber
WHERE username <=> subscriber_username AND domain <=> subscriber_domain;
INSERT INTO kamailio.fax_preferences
(subscriber_id, password, name, active, send_status, send_copy)
VALUES(os_subscriber_id, NEW.password, NEW.name, IF(NEW.active, 'true', 'false'),
IF(NEW.send_status, 'true', 'false'), IF(NEW.send_copy, 'true', 'false'));
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxp_urepl_trig AFTER UPDATE ON voip_fax_preferences
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE os_subscriber_id int(10) UNSIGNED;
DECLARE old_subscriber_username varchar(127);
DECLARE old_subscriber_domain varchar(127);
DECLARE old_os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO subscriber_username, subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO os_subscriber_id FROM kamailio.subscriber
WHERE username <=> subscriber_username AND domain <=> subscriber_domain;
SELECT a.username, b.domain INTO old_subscriber_username, old_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO old_os_subscriber_id FROM kamailio.subscriber
WHERE username <=> old_subscriber_username AND domain <=> old_subscriber_domain;
UPDATE kamailio.fax_preferences SET subscriber_id = os_subscriber_id, password = NEW.password,
name = NEW.name, active = IF(NEW.active, 'true', 'false'),
send_status = IF(NEW.send_status, 'true', 'false'),
send_copy = IF(NEW.send_copy, 'true', 'false')
WHERE subscriber_id <=> old_os_subscriber_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_faxp_drepl_trig BEFORE DELETE ON voip_fax_preferences
FOR EACH ROW BEGIN
DECLARE old_subscriber_username varchar(127);
DECLARE old_subscriber_domain varchar(127);
DECLARE old_os_subscriber_id int(10) UNSIGNED;
SELECT a.username, b.domain INTO old_subscriber_username, old_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
SELECT id INTO old_os_subscriber_id FROM kamailio.subscriber
WHERE username <=> old_subscriber_username AND domain <=> old_subscriber_domain;
DELETE FROM kamailio.fax_preferences WHERE subscriber_id <=> old_os_subscriber_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_pbx_autoattendants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_pbx_autoattendants` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`uuid` char(36) NOT NULL,
`choice` tinyint(3) NOT NULL,
`destination` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `uuid_choice_idx` (`uuid`,`choice`),
KEY `fk_aa_sub_idx` (`subscriber_id`),
CONSTRAINT `voip_pbx_autoattendant_ibfk_1` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_pbx_autoattendants` WRITE;
/*!40000 ALTER TABLE `voip_pbx_autoattendants` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_pbx_autoattendants` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_pbx_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_pbx_groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`group_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `subscriber_idx` (`subscriber_id`),
KEY `group_idx` (`group_id`),
CONSTRAINT `fk_v_sub_group` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_pbx_groups` WRITE;
/*!40000 ALTER TABLE `voip_pbx_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_pbx_groups` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_peer_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_peer_groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(127) NOT NULL,
`priority` tinyint(3) NOT NULL DEFAULT '1',
`description` varchar(255) DEFAULT NULL,
`peering_contract_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_peer_groups` WRITE;
/*!40000 ALTER TABLE `voip_peer_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_peer_groups` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_pgrp_urepl_trig AFTER UPDATE ON voip_peer_groups
FOR EACH ROW BEGIN
UPDATE kamailio.lcr_rule_target rt, kamailio.lcr_gw gw
SET rt.priority = NEW.priority
WHERE gw.id <=> rt.gw_id
AND gw.lcr_id = 1
AND gw.group_id <=> NEW.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_pgrp_drepl_trig AFTER DELETE ON voip_peer_groups
FOR EACH ROW BEGIN
DELETE FROM kamailio.lcr_rule WHERE group_id <=> OLD.id;
DELETE FROM kamailio.lcr_gw WHERE group_id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_peer_hosts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_peer_hosts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(11) unsigned NOT NULL,
`name` varchar(64) NOT NULL DEFAULT '',
`ip` varchar(64) NOT NULL,
`host` varchar(64) DEFAULT NULL,
`port` int(5) NOT NULL DEFAULT '5060',
`transport` tinyint(3) unsigned DEFAULT NULL,
`weight` tinyint(3) NOT NULL DEFAULT '0',
`via_route` varchar(255) DEFAULT NULL,
`via_lb` tinyint(1) NOT NULL DEFAULT '0',
`enabled` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `grpname` (`group_id`,`name`),
KEY `grpidx` (`group_id`),
CONSTRAINT `v_ps_groupid_ref` FOREIGN KEY (`group_id`) REFERENCES `voip_peer_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_peer_hosts` WRITE;
/*!40000 ALTER TABLE `voip_peer_hosts` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_peer_hosts` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_phost_crepl_trig AFTER INSERT ON voip_peer_hosts
FOR EACH ROW BEGIN
IF NEW.enabled THEN
INSERT INTO kamailio.lcr_gw (lcr_id, gw_name, ip_addr, hostname, port, uri_scheme, transport, strip, flags, group_id)
VALUES(1, NEW.name, NEW.ip, NEW.host, NEW.port, 1, NEW.transport, 0, NEW.id, NEW.group_id);
INSERT INTO kamailio.lcr_rule_target (lcr_id, rule_id, gw_id, priority, weight)
SELECT rule.lcr_id, rule.id, LAST_INSERT_ID(), vpg.priority, NEW.weight
FROM kamailio.lcr_rule rule
INNER JOIN provisioning.voip_peer_groups vpg ON vpg.id = rule.group_id
WHERE vpg.id <=> NEW.group_id;
INSERT INTO voip_peer_preferences (peer_host_id, attribute_id, value)
SELECT NEW.id, p.id, pe.value
FROM voip_preferences p, voip_preferences_enum pe
WHERE p.id <=> preference_id AND p.peer_pref=1 AND pe.peer_pref=1 AND pe.default_val=1 AND pe.value IS NOT NULL;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_phost_urepl_trig AFTER UPDATE ON voip_peer_hosts
FOR EACH ROW BEGIN
IF OLD.enabled = 1 AND NEW.enabled = 1 THEN
UPDATE kamailio.lcr_gw
SET gw_name = NEW.name, ip_addr = NEW.ip, hostname = NEW.host, port = NEW.port, transport = NEW.transport, flags = NEW.id
WHERE lcr_id = 1 AND ip_addr <=> OLD.ip;
UPDATE kamailio.lcr_rule_target rt, kamailio.lcr_gw gw
SET rt.weight = NEW.weight
WHERE gw.id <=> rt.gw_id
AND gw.lcr_id = 1
AND gw.group_id <=> NEW.group_id
AND gw.ip_addr <=> NEW.ip;
ELSEIF OLD.enabled = 0 AND NEW.enabled = 1 THEN
INSERT INTO kamailio.lcr_gw (lcr_id, gw_name, ip_addr, hostname, port, uri_scheme, transport, strip, flags, group_id)
VALUES(1, NEW.name, NEW.ip, NEW.host, NEW.port, 1, NEW.transport, 0, NEW.id, NEW.group_id);
INSERT INTO kamailio.lcr_rule_target (lcr_id, rule_id, gw_id, priority, weight)
SELECT rule.lcr_id, rule.id, LAST_INSERT_ID(), vpg.priority, NEW.weight
FROM kamailio.lcr_rule rule
INNER JOIN provisioning.voip_peer_groups vpg ON vpg.id = rule.group_id
WHERE vpg.id <=> NEW.group_id;
INSERT INTO voip_peer_preferences (peer_host_id, attribute_id, value)
SELECT NEW.id, p.id, pe.value
FROM voip_preferences p, voip_preferences_enum pe
WHERE p.id <=> preference_id AND p.peer_pref=1 AND pe.peer_pref=1 AND pe.default_val=1 AND pe.value IS NOT NULL;
ELSEIF OLD.enabled = 1 AND NEW.enabled = 0 THEN
DELETE FROM kamailio.lcr_gw
WHERE lcr_id = 1
AND group_id <=> OLD.group_id
AND ip_addr <=> OLD.ip;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_phost_drepl_trig AFTER DELETE ON voip_peer_hosts
FOR EACH ROW BEGIN
DELETE FROM kamailio.lcr_gw
WHERE flags <=> OLD.id;
DELETE FROM kamailio.peer_preferences
WHERE uuid = OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_peer_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_peer_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`peer_host_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
`value` varchar(255) NOT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `peerhostid_idx` (`peer_host_id`),
KEY `attributeid_idx` (`attribute_id`),
CONSTRAINT `v_p_p_peerhostid_ref` FOREIGN KEY (`peer_host_id`) REFERENCES `voip_peer_hosts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_p_p_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_peer_preferences` WRITE;
/*!40000 ALTER TABLE `voip_peer_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_peer_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_peerpref_crepl_trig AFTER INSERT ON voip_peer_preferences
FOR EACH ROW BEGIN
INSERT INTO kamailio.peer_preferences
(id, uuid, attribute, type, value, last_modified)
SELECT NEW.id, NEW.peer_host_id, attribute, type, NEW.value, '0'
FROM provisioning.voip_preferences
WHERE id <=> NEW.attribute_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_peerpref_urepl_trig AFTER UPDATE ON voip_peer_preferences
FOR EACH ROW BEGIN
UPDATE kamailio.peer_preferences pp, provisioning.voip_preferences vp
SET pp.id = NEW.id, pp.uuid = NEW.peer_host_id, pp.type = vp.type,
pp.attribute = vp.attribute, pp.value = NEW.value, pp.last_modified = '0'
WHERE pp.id <=> OLD.id
AND vp.id <=> NEW.attribute_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_peerpref_drepl_trig BEFORE DELETE ON voip_peer_preferences
FOR EACH ROW BEGIN
DELETE FROM kamailio.peer_preferences
WHERE id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_peer_rules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_peer_rules` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(11) unsigned NOT NULL,
`callee_prefix` varchar(64) NOT NULL DEFAULT '',
`callee_pattern` varchar(64) DEFAULT '',
`caller_pattern` varchar(64) DEFAULT NULL,
`description` varchar(255) NOT NULL,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `grpidx` (`group_id`),
CONSTRAINT `v_pg_groupid_ref` FOREIGN KEY (`group_id`) REFERENCES `voip_peer_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_peer_rules` WRITE;
/*!40000 ALTER TABLE `voip_peer_rules` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_peer_rules` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER provisioning.voip_prul_crepl_trig AFTER INSERT ON voip_peer_rules
FOR EACH ROW BEGIN
IF NEW.enabled = 1 THEN
INSERT INTO kamailio.lcr_rule (lcr_id, prefix, request_uri, from_uri, stopper, enabled, group_id)
VALUES(1, NEW.callee_prefix, NEW.callee_pattern, NEW.caller_pattern, 0, 1, NEW.group_id);
INSERT INTO kamailio.lcr_rule_target (lcr_id, rule_id, gw_id, priority, weight)
SELECT gw.lcr_id, LAST_INSERT_ID(), gw.id, vpg.priority, vph.weight
FROM kamailio.lcr_gw gw
INNER JOIN provisioning.voip_peer_hosts vph ON vph.ip = gw.ip_addr
AND gw.lcr_id = 1
AND vph.group_id = gw.group_id
INNER JOIN provisioning.voip_peer_groups vpg ON vpg.id = vph.group_id
WHERE vph.group_id <=> NEW.group_id;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER provisioning.voip_prul_urepl_trig AFTER UPDATE ON voip_peer_rules
FOR EACH ROW BEGIN
IF OLD.enabled = 1 AND NEW.enabled = 1 THEN
UPDATE kamailio.lcr_rule
SET prefix = NEW.callee_prefix, request_uri = NEW.callee_pattern,
from_uri = NEW.caller_pattern
WHERE prefix <=> OLD.callee_prefix
AND request_uri <=> OLD.callee_pattern
AND from_uri <=> OLD.caller_pattern
AND group_id <=> OLD.group_id;
ELSEIF OLD.enabled = 0 AND NEW.enabled = 1 THEN
INSERT INTO kamailio.lcr_rule (lcr_id, prefix, request_uri, from_uri, stopper, enabled, group_id)
VALUES(1, NEW.callee_prefix, NEW.callee_pattern, NEW.caller_pattern, 0, 1, NEW.group_id);
INSERT INTO kamailio.lcr_rule_target (lcr_id, rule_id, gw_id, priority, weight)
SELECT gw.lcr_id, LAST_INSERT_ID(), gw.id, vpg.priority, vph.weight
FROM kamailio.lcr_gw gw
INNER JOIN provisioning.voip_peer_hosts vph ON vph.ip = gw.ip_addr
AND gw.lcr_id = 1
AND vph.group_id = gw.group_id
INNER JOIN provisioning.voip_peer_groups vpg ON vpg.id = vph.group_id
WHERE vph.group_id <=> NEW.group_id;
ELSEIF OLD.enabled = 1 AND NEW.enabled = 0 THEN
DELETE FROM kamailio.lcr_rule
WHERE prefix <=> OLD.callee_prefix
AND request_uri <=> OLD.callee_pattern
AND from_uri <=> OLD.caller_pattern
AND group_id <=> OLD.group_id;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER provisioning.voip_prul_drepl_trig AFTER DELETE ON voip_peer_rules
FOR EACH ROW BEGIN
DELETE FROM kamailio.lcr_rule
WHERE prefix <=> OLD.callee_prefix
AND request_uri <=> OLD.callee_pattern
AND from_uri <=> OLD.caller_pattern
AND group_id <=> OLD.group_id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_preference_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_preference_groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_preference_groups` WRITE;
/*!40000 ALTER TABLE `voip_preference_groups` DISABLE KEYS */;
INSERT INTO `voip_preference_groups` VALUES (1,'Call Forwards'),(2,'Call Blockings'),(3,'Access Restrictions'),(4,'Number Manipulations'),(5,'NAT and Media Flow Control'),(6,'Remote Authentication'),(7,'Session Timers'),(8,'Internals'),(9,'Cloud PBX'),(10,'XMPP Settings'),(11,'Dialogic Settings');
/*!40000 ALTER TABLE `voip_preference_groups` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`voip_preference_groups_id` int(11) unsigned NOT NULL,
`attribute` varchar(31) NOT NULL,
`label` varchar(255) NOT NULL,
`type` tinyint(3) NOT NULL DEFAULT '0',
`max_occur` tinyint(3) unsigned NOT NULL,
`usr_pref` tinyint(1) NOT NULL DEFAULT '0',
`prof_pref` tinyint(1) NOT NULL DEFAULT '0',
`dom_pref` tinyint(1) NOT NULL DEFAULT '0',
`peer_pref` tinyint(1) NOT NULL DEFAULT '0',
`contract_pref` tinyint(1) NOT NULL DEFAULT '0',
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`internal` tinyint(1) NOT NULL DEFAULT '0',
`expose_to_customer` tinyint(1) NOT NULL DEFAULT '0',
`data_type` enum('boolean','int','string','enum') DEFAULT NULL,
`read_only` tinyint(1) NOT NULL DEFAULT '0',
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `attribute_idx` (`attribute`),
KEY `vpgid_ref` (`voip_preference_groups_id`),
CONSTRAINT `vpgid_ref` FOREIGN KEY (`voip_preference_groups_id`) REFERENCES `voip_preference_groups` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=165 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_preferences` WRITE;
/*!40000 ALTER TABLE `voip_preferences` DISABLE KEYS */;
INSERT INTO `voip_preferences` VALUES (1,3,'lock','Lock Level',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',1,'See \"lock_voip_account_subscriber\" for a list of possible values. A lock value of \"none\" will not be returned to the caller. Read-only setting.'),(2,2,'block_in_mode','Block Mode for inbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'boolean',0,'Specifies the operational mode of the incoming block list. If unset or set to a false value, it is a blacklist (accept all calls except from numbers listed in the block list), with a true value it is a whitelist (reject all calls except from numbers listed in the block list).'),(3,2,'block_in_list','Block List for inbound calls',0,0,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to call the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(4,2,'block_in_clir','Block anonymous inbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'boolean',0,'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.'),(5,2,'block_out_mode','Block Mode for outbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'boolean',0,'Specifies the operational mode of the outgoing block list. If unset or set to a false value, it is a blacklist (allow all calls except to numbers listed in the block list), with a true value it is a whitelist (deny all calls except to numbers listed in the block list).'),(6,2,'block_out_list','Block List for outbound calls',0,0,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to be called by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(7,2,'adm_block_in_mode','Administrative Block Mode for inbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'boolean',0,'Same as \"block_in_mode\" but may only be set by administrators.'),(8,2,'adm_block_in_list','Administrative Block List for inbound calls',0,0,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'string',0,'Same as \"block_in_list\" but may only be set by administrators and is applied prior to the user setting.'),(9,2,'adm_block_in_clir','Administratively block anonymous inbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'boolean',0,'Same as \"block_in_clir\" but may only be set by administrators and is applied prior to the user setting.'),(10,2,'adm_block_out_mode','Administrative Block Mode for outbound calls',1,1,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'boolean',0,'Same as \"block_out_mode\" but may only be set by administrators.'),(11,2,'adm_block_out_list','Administrative Block List for outbound calls',0,0,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'string',0,'Same as \"block_out_list\" but may only be set by administrators and is applied prior to the user setting.'),(12,1,'cfu','Internal Call Forward Unconditional #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',1,'The id pointing to the \"Call Forward Unconditional\" entry in the voip_cf_mappings table'),(13,1,'cfb','Internal Call Forward Busy map #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',1,'The id pointing to the \"Call Forward Busy\" entry in the voip_cf_mappings table'),(14,1,'cfna','Internal Call Forward Unavailable #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',1,'The id pointing to the \"Call Forward Unavailable\" entry in the voip_cf_mappings table'),(15,1,'cft','Internal Call Forward Timeout #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',1,'The id pointing to the \"Call Forward Timeout\" entry in the voip_cf_mappings table'),(16,8,'ringtimeout','Ring Timeout for CFT',1,1,1,0,0,0,0,'2015-06-28 23:09:29',0,0,'int',0,'Specifies how many seconds the system should wait before redirecting the call if \"cft\" is set.'),(17,4,'cli','Network-Provided CLI',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"network-provided calling line identification\" - specifies the SIP username that is used for outgoing calls in the SIP \"From\" and \"P-Asserted-Identity\" headers (as user- and network-provided calling numbers). The content of the \"From\" header may be overridden by the \"user_cli\" preference and client (if allowed by the \"allowed_clis\" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.'),(18,4,'clir','Hide own number for outbound calls',1,1,1,0,0,0,0,'2015-06-28 23:09:27',0,1,'boolean',0,'\"Calling line identification restriction\" - if set to true, the CLI is not displayed on outgoing calls.'),(19,4,'cc','Country Code',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'The country code that will be used for routing of dialed numbers without a country code. Defaults to the country code of the E.164 number if the subscriber has one.'),(20,4,'ac','Area Code',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'The area code that will be used for routing of dialed numbers without an area code. Defaults to the area code of the E.164 number if the subscriber has one.'),(22,4,'emergency_prefix','Emergency Prefix variable',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(23,2,'ncos_id','Internal NCOS Level #',1,1,1,1,1,0,1,'2015-06-28 23:09:31',1,0,'int',0,NULL),(24,2,'adm_ncos_id','Internal Administrative NCOS Level #',1,1,1,1,1,0,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(29,2,'ncos','NCOS Level',0,1,1,1,1,0,1,'2015-06-28 23:09:31',-1,1,'string',0,'Specifies the NCOS level that applies to the user.'),(30,2,'adm_ncos','Administrative NCOS Level',0,1,1,1,1,0,0,'2015-06-28 23:09:31',-1,0,'string',0,'Same as \"ncos\", but may only be set by administrators and is applied prior to the user setting.'),(31,2,'block_out_override_pin','PIN to bypass outbound Block List',0,1,1,0,0,0,1,'2015-06-28 23:09:29',0,1,'string',0,'A PIN code which may be used in a VSC to disable the outgoing user block list and NCOS level for a call.'),(32,2,'adm_block_out_override_pin','Administrative PIN to bypass outbound Block List',0,1,1,0,0,0,1,'2015-06-28 23:09:29',0,0,'string',0,'Same as \"block_out_override_pin\" but additionally disables the administrative block list and NCOS level.'),(33,6,'peer_auth_user','Peer Authentication User',0,1,1,0,0,1,0,'2015-06-28 23:09:27',0,0,'string',0,'A username used for authentication against the peer host.'),(34,6,'peer_auth_pass','Peer Authentication Password',0,1,1,0,0,1,0,'2015-06-28 23:09:27',0,0,'string',0,'A password used for authentication against the peer host.'),(35,3,'unauth_inbound_calls','Allow inbound calls from foreign subscribers',1,1,0,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.'),(36,6,'peer_auth_realm','Peer Authentication Domain',0,1,1,0,0,1,0,'2015-06-28 23:09:27',0,0,'string',0,'A realm (hostname) used to identify and for authentication against a peer host.'),(40,6,'peer_auth_register','Enable Peer Authentication',1,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Specifies whether registration at the peer host is desired.'),(41,3,'concurrent_max','Maximum number of concurrent calls',1,1,1,1,1,1,1,'2015-06-28 23:09:31',0,0,'int',0,'Maximum number of overall (incoming and outgoing) concurrent on-net and off-net calls for a subscriber or peer, excluding calls from subscriber to the application server and intra-PBX calls.'),(42,3,'concurrent_max_out','Maximum number of outbound concurrent calls',1,1,1,1,1,1,1,'2015-06-28 23:09:31',0,0,'int',0,'Maximum number of outgoing concurrent on-net and off-net calls coming from a subscriber or going to a peer, excluding calls from subscriber to the application server and intra-PBX calls.'),(43,3,'allowed_clis','Allowed CLIs for outbound calls',0,0,1,0,0,0,1,'2015-06-28 23:09:30',0,0,'string',0,'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.'),(45,8,'account_id','Internal Contract #',1,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',0,NULL),(46,8,'ext_contract_id','External Contract #',0,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,NULL),(47,8,'ext_subscriber_id','External Subscriber #',0,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,NULL),(48,6,'find_subscriber_by_uuid','Find Subscriber by UUID',1,1,0,0,0,1,0,'2015-06-28 23:09:27',0,0,'boolean',0,'For incoming calls from this peer, find the destination subscriber by a uuid parameter in R-URI which has been sent in Contact at outbound registration.'),(50,4,'rewrite_rule_set','Rewrite Rule Set',1,1,1,1,1,1,0,'2015-06-28 23:09:31',-1,0,'int',0,'Specifies the list of caller and callee rewrite rules which should be applied for incoming and outgoing calls.'),(51,4,'rewrite_caller_in_dpid','Internal # for inbound caller rewrite rule set',1,1,1,1,1,1,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(52,4,'rewrite_callee_in_dpid','Internal # for inbound callee rewrite rule set',1,1,1,1,1,1,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(53,4,'rewrite_caller_out_dpid','Internal # for outbound caller rewrite rule set',1,1,1,1,1,1,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(54,4,'rewrite_callee_out_dpid','Internal # for outbound callee rewrite rule set',1,1,1,1,1,1,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(55,4,'e164_to_ruri','Use Number instead of Contact first for outbound calls',1,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'boolean',0,'Send the E164 number instead of SIP AOR as request username when sending INVITE to the subscriber. If a 404 is received the SIP AOR is sent as request URI as fallback.'),(56,4,'user_cli','User-Provided Number',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"user-provided calling line identification\" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP \"From\" header (as user-provided calling number) if a client sends a CLI which is not allowed by \"allowed_clis\" or if \"allowed_clis\" is not set.'),(57,8,'prepaid','Enable Prepaid',1,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'boolean',0,NULL),(60,8,'force_inbound_calls_to_peer','Force inbound calls to peer',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.'),(61,4,'emergency_suffix','Emergency Suffix variable',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(62,7,'sst_enable','Enable Session-Timers',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Enable SIP Session Timers.'),(63,7,'sst_expires','Session-Timer Refresh Interval',1,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'int',0,'SIP Session Timers refresh interval (seconds). Should be always greater than min_timer preference. SBC will make refresh at the half of this interval.'),(64,7,'sst_min_timer','Session-Timer Min Refresh Interval',1,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'int',0,'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.'),(65,7,'sst_max_timer','Session-Timer Max Refresh Interval',1,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'int',0,'Sets upper limit on accepted Min-SE value in in SBC.'),(66,7,'sst_refresh_method','Session-Timer Refresh Method',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'SIP Session Timers refresh method.'),(67,5,'sound_set','System Sound Set',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'int',0,'Sound Set used for system prompts like error announcements etc.'),(68,3,'reject_emergency','Reject Emergency Calls',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Reject emergency calls from this user or domain.'),(69,4,'emergency_cli','Emergency CLI',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). Emergency CLI which can be used in rewrite rules as substitution value.'),(70,8,'outbound_socket','Force outbound call via socket',0,1,0,0,0,1,0,'2015-06-28 23:09:27',0,0,'enum',0,'Outbound socket to be used for SIP communication to this entity'),(71,4,'inbound_upn','Inbound User-Provided Number',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The SIP header field to fetch the user-provided-number from for inbound calls'),(72,4,'inbound_npn','Inbound Network-Provided Number',0,1,0,0,0,1,0,'2015-06-28 23:09:27',0,0,'enum',0,'The SIP header field to fetch the network-provided-number from for inbound calls'),(73,4,'outbound_from_user','Outbound From-Username Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the From username for outbound calls from the platform to the subscriber'),(74,4,'outbound_from_display','Outbound From-Display Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the From display-name for outbound calls from the platform to the subscriber'),(75,4,'outbound_pai_user','Outbound PAI-Username Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the P-Asserted-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(76,4,'outbound_ppi_user','Outbound PPI-Username Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the P-Preferred-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(77,8,'mobile_push_enable','Enable Apple/Google Mobile Push',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.'),(78,4,'extension_in_npn','Use valid Alias CLI as NPN',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).'),(79,3,'concurrent_max_per_account','Maximum number of concurrent calls of Customer',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'int',0,'Maximum number of overall (incoming and outgoing) concurrent on-net and off-net calls for subscribers within the same Customer account, excluding calls to the application server and intra-PBX calls.'),(80,3,'concurrent_max_out_per_account','Maximum number of outbound concurrent calls of Customer',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'int',0,'Maximum number of outgoing concurrent on-net and off-net calls for subscribers within the same Customer account, excluding calls to the application server and intra-PBX calls.'),(81,4,'inbound_uprn','Inbound User-Provided Redirecting Number',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Specifies the way to obtain the User-Provided Redirecting CLI. Possible options are use NPN of forwarding subscriber or respect inbound Diversion header. Same validation rules as for UPN apply to UPRN. NGCP does not stack UPRNs up if the call is forwarded several times.'),(82,4,'outbound_diversion','Outbound Diversion Header',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the Diversion header for outbound calls (use \"None\" to not set header at all)'),(83,3,'allowed_ips_grp','Internal allowed source IP group #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(84,3,'man_allowed_ips_grp','Internal manual allowed source IP group #',1,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(85,3,'allowed_ips','Allowed source IPs',1,0,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(86,3,'man_allowed_ips','Manually defined allowed source IPs',1,0,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(87,3,'ignore_allowed_ips','Ignore allowed IPs',1,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'boolean',0,'Ignore preferences \"allowed_ips\" and \"man_allowed_ips\".'),(88,5,'no_nat_sipping','Disable NAT SIP pings',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Don\'t do NAT ping for domain/user. Use with caution: this only makes sense on the access network which does not need pings (e.g. CDMA)'),(89,8,'ip_header','IP Header Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'string',0,'The SIP header to take the IP address for logging it into CDRs.'),(90,5,'use_rtpproxy','RTP-Proxy Mode',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Set RTP relay mode for this peer/domain/user'),(91,5,'ipv46_for_rtpproxy','IPv4/IPv6 briding mode',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Choose the logic of IPv4/IPv6 autodetection for the RTP relay'),(92,3,'allow_out_foreign_domain','Allow calls to foreign domains',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Allow outbound calls of local subscribers to foreign domains'),(93,8,'mobile_push_expiry','Mobile Push Expiry Timeout',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'int',0,'The expiry interval of sent push request. Client is expected to register within this time, otherwise he should treat the request as outdated and ignore.'),(94,9,'cloud_pbx','CloudPBX Subscriber',1,1,1,1,1,0,0,'2015-06-28 23:09:31',1,0,'boolean',0,'Send the calls from/to the subscribers through the cloud pbx module.'),(97,9,'cloud_pbx_hunt_policy','CloudPBX Hunt Policy',0,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'enum',0,'The hunting policy for PBX hunt groups.'),(98,9,'cloud_pbx_hunt_timeout','CloudPBX Serial Hunt Timeout',1,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'int',0,'The serial timeout for hunting in PBX hunt groups.'),(99,9,'cloud_pbx_hunt_group','CloudPBX Hunt Group List',0,0,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,'The members (as SIP URIs) of the PBX hunt group.'),(100,9,'cloud_pbx_base_cli','CLI of CloudPBX Pilot Subscriber',0,1,1,0,0,0,0,'2015-06-28 23:09:27',1,0,'string',0,'The base CLI for the PBX extension.'),(101,8,'ua_header_mode','User-Agent header passing mode',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'User-Agent header passing mode.'),(102,8,'ua_header_replace','User-Agent header replacement (if mode is \"replace\")',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'string',0,'The string to be used as a User-Agent header replacement if ua_header_mode is set to \"replace\".'),(103,4,'outbound_history_info','Outbound History-Info Field',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'The content to put into the History-Info header for outbound calls (use \"None\" to not set header at all)'),(104,10,'shared_buddylist_visibility','Export subscriber to shared XMPP Buddylist',1,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'boolean',0,'Export this subscriber into the shared XMPP buddy list for the customer.'),(105,4,'display_name','Network-Provided Display Name',0,1,1,0,0,0,0,'2015-06-28 23:09:27',0,0,'string',0,'The network-provided display name used for XMPP contacts and optionally SIP outbound header manipulation.'),(106,5,'contract_sound_set','Customer Sound Set',1,1,1,0,0,0,0,'2015-06-28 23:09:27',0,1,'int',0,'Customer specific Sound Set used for PBX auto-attendant prompts, customer-specific announcements etc.'),(107,8,'force_outbound_calls_to_peer','Force outbound calls from user or peer to peer',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Force calls from this user/domain/peer to be routed to PSTN even if the callee is local. Use with caution, as this setting may increase your costs! When enabling this option in a peer, make sure you trust it, as the NGCP will become an open relay for it!'),(108,8,'serial_forking_by_q_value','Perform serial forking based on q-value of registered contacts',1,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'boolean',0,'Check the box if you want to perform serial forking based on q-value instead of parallel forking for registered contacts'),(109,5,'music_on_hold','Music on Hold',1,1,1,0,0,0,0,'2015-06-28 23:09:28',0,1,'boolean',0,'\"Music on Hold\" - if set to true and a music on hold file is provided, a calling party gets that file played when put on hold'),(110,4,'clir_intrapbx','Hide own number for calls within own PBX',1,1,1,0,0,0,0,'2015-06-28 23:09:29',0,1,'boolean',0,'\"Calling line identification restriction\" - if set to true, the CLI is not displayed on outgoing calls to other users within the same PBX.'),(111,5,'bypass_rtpproxy','Disable RTP-Proxy in the selected case',0,1,1,1,1,0,0,'2015-06-28 23:09:31',0,0,'enum',0,'Set to \'if both parties are behind same NAT\' if you want to allow RTP to bypass RTP-Proxy if the SIP UAs are within the same LAN of each other as determined by the \'received\' IP address check (peer-to-peer mode)'),(112,9,'cloud_pbx_ext','Extension of CloudPBX Subscriber',0,1,1,0,0,0,0,'2015-06-28 23:09:29',1,0,'string',0,'The extension for the PBX subscriber'),(113,8,'speed_dial','Speed Dial',1,1,1,0,0,0,0,'2015-06-28 23:09:29',1,1,'boolean',0,'\"Speed Dial\" - An internal flag for the speed dial pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.'),(114,8,'reminder','Reminder',1,1,1,0,0,0,0,'2015-06-28 23:09:29',1,1,'boolean',0,'\"Reminder\" - An internal flag for the reminder pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.'),(115,8,'auto_attendant','Auto Attendant',1,1,1,0,0,0,0,'2015-06-28 23:09:29',1,1,'boolean',0,'\"Auto Attendant\" - An internal flag for the auto_attendant pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.'),(116,8,'voice_mail','Voice Mail',1,1,1,0,0,0,0,'2015-06-28 23:09:29',1,1,'boolean',0,'\"Voice Mail\" - An internal flag for the voice_mail pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.'),(117,8,'fax_server','Fax Server',1,1,1,0,0,0,0,'2015-06-28 23:09:29',1,1,'boolean',0,'\"Fax Server\" - An internal flag for the fax_server pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.'),(119,4,'emergency_location_object','MIME encapsulated Location Information in the INVITE',0,1,1,0,0,0,0,'2015-06-28 23:09:29',0,0,'string',0,'Provide this field as pre-coded value to add it to the SDP as MIME object with content-type \"application/vnd.cirpack.isdn-ext\" and \"content-disposition: signal;handling=required\" according to the German NGN interconnect specification'),(120,3,'concurrent_max_total','Total max number of overall concurrent calls',1,1,1,1,1,0,1,'2015-06-28 23:09:31',0,0,'int',0,'Maximum total number of overall (incoming and outgoing) concurrent calls for subscribers.'),(121,3,'concurrent_max_out_total','Total max number of outbound concurrent calls',1,1,1,1,1,0,1,'2015-06-28 23:09:31',0,0,'int',0,'Maximum total number of outgoing concurrent calls coming from subscribers.'),(122,4,'voicemail_echo_number','Number to be played in voicebox',1,1,1,0,0,0,0,'2015-06-28 23:09:29',0,0,'string',0,'If set, will be played as Number of the voicebox owner. Otherwise the number of the preference \"cli\" is used.'),(123,5,'lbrtp_set','The cluster set used for SIP lb and RTP',0,1,0,1,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Use a particular cluster set of load-balancers for SIP towards this endpoint (only for peers, as for subscribers it is defined by Path during registration) and of RTP relays (both peers and subscribers).'),(124,3,'allowed_clis_reject_policy','User-Provided CLI rejection mode',0,1,1,1,1,0,1,'2015-06-28 23:09:31',0,0,'enum',0,'Define an action to be executed if User-Provided Number doesn\'t match the \'allowed_clis\' list'),(125,8,'gpp0','General Purpose Parameter 0',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp0 or destination_gpp0, depending on the call direction.'),(126,8,'gpp1','General Purpose Parameter 1',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp1 or destination_gpp1, depending on the call direction.'),(127,8,'gpp2','General Purpose Parameter 2',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp2 or destination_gpp2, depending on the call direction.'),(128,8,'gpp3','General Purpose Parameter 3',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp3 or destination_gpp3, depending on the call direction.'),(129,8,'gpp4','General Purpose Parameter 4',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp4 or destination_gpp4, depending on the call direction.'),(130,8,'gpp5','General Purpose Parameter 5',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp5 or destination_gpp5, depending on the call direction.'),(131,8,'gpp6','General Purpose Parameter 6',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp6 or destination_gpp6, depending on the call direction.'),(132,8,'gpp7','General Purpose Parameter 7',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp7 or destination_gpp7, depending on the call direction.'),(133,8,'gpp8','General Purpose Parameter 8',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp8 or destination_gpp8, depending on the call direction.'),(134,8,'gpp9','General Purpose Parameter 9',0,1,1,0,0,0,0,'2015-06-28 23:09:30',0,0,'string',0,'A general purpose parameter, which is reflected in CDRs of this subscriber either as source_gpp9 or destination_gpp9, depending on the call direction.'),(135,4,'extended_dialing_mode','Incoming Dialed Number Matching',0,1,1,1,1,0,0,'2015-06-28 23:09:31',0,1,'enum',0,'\"Incoming Dialed Number Matching\" - configure between strict number matching for incoming calls where dialing arbitrary extension behind subscriber number is not allowed and the extended number matching, where the system will locate the subscriber by longest matching prefix and will send either the base matching number or the original dialed number with extension (with possible fallback to user on 404 response from callee).'),(136,4,'outbound_to_user',' Outbound To-Username Field ',0,1,1,1,1,1,0,'2015-06-28 23:09:31',0,1,'enum',0,'The content to put into the To username for outbound calls from the platform to the subscriber or peer.'),(137,9,'enable_t38','Enable T38 Fax-over-IP',1,1,1,0,0,0,0,'2015-06-28 23:09:31',0,1,'boolean',0,'Enable T38 Fax-over-IP via auto-provisioning if the end device supports it.'),(138,9,'cloud_pbx_callqueue','PBX Call Queue',1,1,1,1,0,0,0,'2015-06-28 23:09:31',0,1,'boolean',0,'Marks subscriber for CloudPBX Call Queue that queues incoming calls if it is busy and serves them to this subscriber when it becomes available'),(139,8,'language','Language for voicemail and app server',0,1,1,1,1,0,0,'2015-06-28 23:09:31',0,1,'enum',0,'Voice prompts language for voicemail, conference and application server.'),(140,2,'adm_cf_ncos_id','Internal Administrative NCOS Level for Call Forward #',1,1,1,1,1,0,0,'2015-06-28 23:09:31',1,0,'int',0,NULL),(141,2,'adm_cf_ncos','Administrative NCOS Level For Call Forward',0,1,1,1,1,0,0,'2015-06-28 23:09:31',-1,0,'string',0,'Specifies the Administrative NCOS Level that applies for the Call Forward from the user.'),(142,8,'conference_pin','PIN for access to pin-protected conference',0,1,1,0,0,0,0,'2015-06-28 23:09:31',0,0,'string',0,'PIN for access to private conferencing service.'),(143,9,'max_queue_length','Call Queue length',0,1,1,0,0,0,0,'2015-06-28 23:09:31',0,1,'string',0,'Maximum number of callers in a PBX Call Queue. By default 5'),(144,9,'queue_wrap_up_time','Call Queue wrap-up time, sec',0,1,1,0,0,0,0,'2015-06-28 23:09:31',0,1,'string',0,'Idle interval before connecting first caller in PBX Call Queue. By default it is 10 seconds'),(145,5,'rtp_interface','RTP interface',0,1,1,0,1,1,0,'2015-06-28 23:09:31',0,0,'enum',0,'Logical RTP interface to use for media packets'),(146,9,'ignore_cf_when_hunting','Ignore Call Forward when Hunting',1,1,0,0,1,0,1,'2015-06-28 23:09:32',0,1,'boolean',0,'Ignore the Call Forward from a Cloud PBX subscriber when it is called within a huntgroup'),(147,11,'dialogic_mode','Dialogic Mode',0,1,0,0,0,1,0,'2015-06-28 23:09:32',0,0,'enum',0,'Set dialogic mode, which is used to autoprovision configuration on a Dialogic IMG.'),(148,11,'dialogic_ip_rtp','Dialogic RTP IP',1,1,0,0,0,1,0,'2015-06-28 23:09:32',0,0,'string',0,'IP that the Dialogic IMG will configure on it\'s second port for the RTP traffic. Must be different from the SIP IP.'),(149,11,'dialogic_ip_config','Dialogic Configuration IP',1,1,0,0,0,1,0,'2015-06-28 23:09:32',0,0,'string',0,'IP under which the Dialogic IMG\'s webinterface is accessible for confiuration.'),(150,11,'dialogic_out_codecs','Dialogic Out Codecs',0,1,0,0,0,1,0,'2015-06-28 23:09:32',0,0,'enum',0,'The chosen Codecs will be used from the IMG to transcode to, in the given order of priority.'),(151,8,'conference_max_participants','Maximum Number of Participants in Conference Room',0,1,0,0,0,0,1,'2015-06-28 23:09:32',0,1,'string',0,'Maximum Number of simultaneous participants in one conference room.'),(152,5,'transport_protocol','Media transport protocol',0,1,1,1,1,1,0,'2015-06-28 23:09:32',0,0,'enum',0,'Which transport protocol (e.g. RTP, SRTP, etc) to use'),(153,11,'dialogic_ss7_opc','SS7 OPC',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'SS7 Own Point Code.'),(154,11,'dialogic_ss7_apc','SS7 APC',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'SS7 Adjacent Point Code.'),(155,11,'dialogic_ss7_dpc','SS7 DPC',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'SS7 Destination Point Code.'),(156,11,'dialogic_nfs_server','NFS Server',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'An IP or hostname of an external NFS server which can be used to log data to.'),(157,11,'dialogic_nfs_path','NFS Path',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'A path describing the folder on the NFS server, where the logfiles will be stored.'),(158,11,'dialogic_snmp_system_name','SNMP System Name',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'The system name, appearing in the output when acting as an SNMP Agent.'),(159,11,'dialogic_snmp_system_location','SNMP System Location',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'The system location, appearing in the output when acting as an SNMP Agent.'),(160,11,'dialogic_snmp_system_contact','SNMP System Contact',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'The system contact, appearing in the output when acting as an SNMP Agent.'),(161,11,'dialogic_snmp_community_name','SNMP Community Name',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'The community name, used by the SNMP manager, to access this IMG as an Agent.'),(162,11,'dialogic_ip_snmp_manager','SNMP Manager IP',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'string',0,'The IP address of the SNMP manager which is supposed to access this IMG. Only this IP will have access to the SNMP Agent.'),(163,11,'dialogic_use_optical_spans','Dialogic Optical Link',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'boolean',0,'When set to true, use the optical link instead of the ISDN ports. This only has an effect in the SS7 or ISDN mode.'),(164,11,'dialogic_is_isdn_userside','ISDN Userside',1,1,0,0,0,1,0,'2015-06-28 23:09:33',0,0,'boolean',0,'When set to true, the ISDN ports are configured to be the Userside end of an ISDN network. This only has an effect in the ISDN mode.');
/*!40000 ALTER TABLE `voip_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_pref_urepl_trig AFTER UPDATE ON voip_preferences
FOR EACH ROW BEGIN
IF OLD.attribute != NEW.attribute THEN
UPDATE kamailio.usr_preferences
SET attribute = NEW.attribute
WHERE attribute <=> OLD.attribute;
UPDATE kamailio.dom_preferences
SET attribute = NEW.attribute
WHERE attribute <=> OLD.attribute;
UPDATE kamailio.peer_preferences
SET attribute = NEW.attribute
WHERE attribute <=> OLD.attribute;
UPDATE kamailio.peer_preferences
SET attribute = NEW.attribute
WHERE attribute <=> OLD.attribute;
UPDATE kamailio.prof_preferences
SET attribute = NEW.attribute
WHERE attribute <=> OLD.attribute;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_pref_drepl_trig BEFORE DELETE ON voip_preferences
FOR EACH ROW BEGIN
DELETE FROM voip_usr_preferences WHERE attribute_id <=> OLD.id;
DELETE FROM voip_dom_preferences WHERE attribute_id <=> OLD.id;
DELETE FROM voip_peer_preferences WHERE attribute_id <=> OLD.id;
DELETE FROM voip_prof_preferences WHERE attribute_id <=> OLD.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_preferences_enum`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_preferences_enum` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`preference_id` int(11) unsigned DEFAULT NULL,
`label` varchar(128) DEFAULT NULL,
`value` varchar(128) DEFAULT NULL,
`usr_pref` tinyint(1) DEFAULT '0',
`prof_pref` tinyint(1) DEFAULT '0',
`dom_pref` tinyint(1) DEFAULT '0',
`peer_pref` tinyint(1) DEFAULT '0',
`contract_pref` tinyint(1) DEFAULT NULL,
`default_val` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `preference_id` (`preference_id`),
CONSTRAINT `voip_preferences_enum_ibfk_1` FOREIGN KEY (`preference_id`) REFERENCES `voip_preferences` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=180 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_preferences_enum` WRITE;
/*!40000 ALTER TABLE `voip_preferences_enum` DISABLE KEYS */;
INSERT INTO `voip_preferences_enum` VALUES (8,62,'use domain default',NULL,1,0,0,0,NULL,NULL),(9,62,'no','no',1,0,0,0,NULL,NULL),(10,62,'no','no',0,1,1,0,NULL,1),(11,62,'no','no',0,0,0,1,NULL,1),(12,62,'yes','yes',1,1,1,1,NULL,NULL),(13,66,'use domain default',NULL,1,0,0,0,NULL,NULL),(14,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',1,0,0,0,NULL,NULL),(15,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',0,1,1,0,NULL,1),(16,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',0,0,0,1,NULL,1),(17,66,'UPDATE','UPDATE',1,1,1,1,NULL,NULL),(18,66,'INVITE','INVITE',1,1,1,1,NULL,NULL),(19,70,'default',NULL,1,1,1,1,NULL,1),(20,71,'From-Username',NULL,0,1,1,1,NULL,1),(21,71,'From-Displayname','from_display',1,1,1,1,NULL,0),(22,71,'P-Asserted-Identity','pai_user',1,1,1,1,NULL,0),(23,71,'P-Preferred-Identity','ppi_user',1,1,1,1,NULL,0),(24,71,'Remote-Party-ID','rpid_user',1,1,1,1,NULL,0),(25,72,'From-Username',NULL,0,0,0,1,NULL,1),(26,72,'From-Displayname','from_display',0,0,0,1,NULL,0),(27,72,'P-Asserted-Identity','pai_user',0,0,0,1,NULL,0),(28,72,'P-Preferred-Identity','ppi_user',0,0,0,1,NULL,0),(29,72,'Remote-Party-ID','rpid_user',0,0,0,1,NULL,0),(30,73,'Network-Provided-Number','npn',1,1,1,1,NULL,0),(31,73,'User-Provided-Number','upn',0,1,1,1,NULL,1),(32,73,'Authentication-User','auth_user',1,1,1,1,NULL,0),(33,73,'Received Display-name','rcv_display',1,1,1,1,NULL,0),(34,74,'None',NULL,0,1,1,1,NULL,1),(35,74,'Network-Provided-Number','npn',1,1,1,1,NULL,0),(36,74,'User-Provided-Number','upn',1,1,1,1,NULL,0),(37,74,'Authentication-User','auth_user',1,1,1,1,NULL,0),(38,74,'Received Display-name','rcv_display',1,1,1,1,NULL,0),(39,75,'None',NULL,0,1,1,1,NULL,0),(40,75,'Network-Provided-Number','npn',0,1,1,1,NULL,1),(41,75,'User-Provided-Number','upn',1,1,1,1,NULL,0),(42,75,'Authentication-User','auth_user',1,1,1,1,NULL,0),(43,75,'Received Display-name','rcv_display',1,1,1,1,NULL,0),(44,76,'None',NULL,0,1,1,1,NULL,1),(45,76,'Network-Provided-Number','npn',1,1,1,1,NULL,0),(46,76,'User-Provided-Number','upn',1,1,1,1,NULL,0),(47,76,'Authentication-User','auth_user',1,1,1,1,NULL,0),(48,76,'Received Display-name','rcv_display',1,1,1,1,NULL,0),(49,71,'use domain default',NULL,1,0,0,0,NULL,0),(50,71,'From-Username','from_user',1,0,0,0,NULL,0),(51,73,'use domain default',NULL,1,0,0,0,NULL,0),(53,74,'use domain default',NULL,1,0,0,0,NULL,0),(54,74,'None','none',1,0,0,0,NULL,0),(55,75,'use domain default',NULL,1,0,0,0,NULL,0),(56,75,'None','none',1,0,0,0,NULL,0),(57,76,'use domain default',NULL,1,0,0,0,NULL,0),(58,76,'None','none',1,0,0,0,NULL,0),(59,75,'Network-Provided-Number ','npn',1,0,0,0,NULL,0),(60,73,'User-Provided-Number','upn',1,0,0,0,NULL,0),(61,81,'None','none',1,1,1,1,NULL,0),(62,81,'Forwarder\'s NPN','npn',0,1,1,0,NULL,1),(63,81,'Forwarder\'s NPN','npn',1,0,0,0,NULL,0),(64,81,'use domain default',NULL,1,0,0,0,NULL,0),(65,81,'Forwarder\'s NPN / Received Diversion','npn_diversion',1,1,1,0,NULL,0),(66,81,'Received Diversion','diversion',1,1,1,1,NULL,0),(67,82,'None',NULL,0,1,1,1,NULL,1),(68,82,'None','none',1,0,0,0,NULL,0),(69,82,'use domain default',NULL,1,0,0,0,NULL,0),(70,82,'UPRN','uprn',1,1,1,1,NULL,0),(71,73,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,1,NULL,0),(72,73,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,1,NULL,0),(73,73,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,1,NULL,0),(74,73,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,1,NULL,0),(75,74,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,1,NULL,0),(76,74,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,1,NULL,0),(77,74,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,1,NULL,0),(78,74,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,1,NULL,0),(79,75,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,1,NULL,0),(80,75,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,1,NULL,0),(81,75,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,1,NULL,0),(82,75,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,1,NULL,0),(83,76,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,1,NULL,0),(84,76,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,1,NULL,0),(85,76,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,1,NULL,0),(86,76,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,1,NULL,0),(87,90,'use domain default',NULL,1,0,0,0,NULL,1),(88,90,'Always with plain SDP','ice_strip_candidates',0,1,1,1,NULL,1),(89,90,'Always with rtpproxy as additional ICE candidate','ice_add_candidates',1,1,1,1,NULL,0),(90,90,'Always with rtpproxy as only ICE candidate','ice_replace_candidates',1,1,1,1,NULL,0),(91,90,'Never','never',1,1,1,1,NULL,0),(92,91,'use domain default',NULL,1,0,0,0,NULL,1),(93,91,'Force IPv4','force_ipv4',1,1,1,1,NULL,0),(94,91,'Force IPv6','force_ipv6',1,1,1,1,NULL,0),(105,97,'serial','serial',1,0,0,0,NULL,1),(106,97,'parallel','parallel',1,0,0,0,NULL,0),(107,101,'Strip',NULL,1,0,0,0,NULL,1),(108,101,'Strip','strip',0,1,1,1,NULL,1),(109,101,'Pass-through','passthrough',1,1,1,1,NULL,0),(110,101,'Replace','replace',1,1,1,1,NULL,0),(111,103,'None',NULL,0,1,1,1,NULL,1),(112,103,'None','none',1,0,0,0,NULL,0),(113,103,'use domain default',NULL,1,0,0,0,NULL,0),(114,103,'UPRN','uprn',1,1,1,1,NULL,0),(115,74,'Network-Provided Display-name','np_display',1,1,1,1,NULL,0),(116,73,'Peer authentication name','peer_auth_user',0,0,0,1,NULL,0),(117,75,'Peer authentication name','peer_auth_user',0,0,0,1,NULL,0),(118,76,'Peer authentication name','peer_auth_user',0,0,0,1,NULL,0),(119,90,'Always with plain SDP','ice_strip_candidates',1,0,0,0,NULL,0),(120,91,'Auto-detect','auto',0,1,1,1,NULL,1),(121,91,'Auto-detect','auto',1,0,0,0,NULL,0),(122,107,'use domain defalut',NULL,1,0,0,0,NULL,1),(123,107,'Never','never',0,1,1,1,NULL,1),(124,107,'If callee is offline','force_offline',1,1,1,1,NULL,0),(125,107,'If callee is offline and number is primary','force_offline_primary',1,1,1,1,NULL,0),(126,107,'If callee is offline and number is alias','force_offline_alias',1,1,1,1,NULL,0),(127,107,'Always','force',1,1,1,1,NULL,0),(128,107,'If callee is not local','force_nonlocal',0,0,0,1,NULL,0),(129,111,'use domain default',NULL,1,0,0,0,NULL,1),(130,111,'Never','never',1,1,1,0,NULL,0),(131,111,'If both parties are behind same NAT','same_nat',1,1,1,0,NULL,0),(132,107,'Never','never',1,0,0,0,NULL,0),(133,123,'None',NULL,0,1,1,1,0,NULL),(134,124,'use customer/domain default',NULL,1,0,0,0,0,1),(135,124,'Replace with Network-Provided Number','override_by_usernpn',1,0,0,0,1,0),(136,124,'Replace with Network-Provided Number','override_by_usernpn',0,1,1,0,0,1),(137,124,'Force CLIR','override_by_clir',1,1,1,0,1,0),(138,124,'Reject with 403','reject',1,1,1,0,1,0),(139,124,'use domain default',NULL,0,0,0,0,1,1),(140,97,'random','random',1,0,0,0,NULL,0),(141,97,'circular','circular',1,0,0,0,NULL,0),(142,135,'use domain default',NULL,1,0,0,0,0,1),(143,135,'Strict number matching','strict',1,1,1,0,0,0),(144,135,'Extended matching, send dialed number with extension','extended_send_dialed',0,1,1,0,0,1),(145,135,'Extended matching, send dialed number with extension','extended_send_dialed',1,0,0,0,0,0),(146,135,'Extended matching, send base matching number','extended_send_base',1,1,1,0,0,0),(147,136,'use domain default',NULL,1,0,0,0,0,1),(148,136,'Called user','callee',0,1,1,1,0,1),(149,136,'Called user','callee',1,0,0,0,0,0),(150,136,'Received To header','rcvd_to',1,1,1,1,0,0),(151,136,'Original (Forwarding) called user','orig_callee',1,1,1,1,0,0),(152,139,'use domain default',NULL,1,0,0,0,0,1),(153,139,'German','de',1,0,1,0,0,0),(154,139,'English','en',0,0,1,0,0,1),(155,139,'English','en',1,0,0,0,0,0),(156,139,'Spanish','es',1,0,1,0,0,0),(157,139,'Italian','it',1,0,1,0,0,0),(158,139,'Russian','ru',1,0,1,0,0,0),(159,145,'default',NULL,1,1,1,1,NULL,1),(160,147,'(none)','none',0,0,0,1,NULL,1),(161,147,'SIP 2 SIP','sipsip',0,0,0,1,NULL,0),(162,150,'G711 ulaw, G711 alaw, G729, AMR','G711 ulaw, G711 alaw, G729, AMR',0,0,0,1,NULL,1),(163,150,'G711 ulaw, G711 alaw','G711 ulaw, G711 alaw',0,0,0,1,NULL,0),(164,150,'AMR','AMR',0,0,0,1,NULL,0),(165,152,'use domain default',NULL,1,0,0,0,0,1),(166,152,'Transparent','transparent',1,0,0,0,0,0),(167,152,'Transparent','transparent',0,1,1,1,0,1),(168,152,'RTP/AVP (plain RTP)','RTP/AVP',1,1,1,1,0,0),(169,152,'RTP/SAVP (encrypted SRTP)','RTP/SAVP',1,1,1,1,0,0),(170,152,'RTP/AVPF (RTP with RTCP feedback)','RTP/AVPF',1,1,1,1,0,0),(171,152,'RTP/SAVPF (encrypted SRTP with RTCP feedback)','RTP/SAVPF',1,1,1,1,0,0),(172,152,'UDP/TLS/RTP/SAVP (encrypted SRTP using DTLS-SRTP)','UDP/TLS/RTP/SAVP',1,1,1,1,0,0),(173,152,'UDP/TLS/RTP/SAVPF (encrypted SRTP using DTLS-SRTP with RTCP feedback)','UDP/TLS/RTP/SAVPF',1,1,1,1,0,0),(174,147,'SIP/ISDN','sipisdn',0,0,0,1,NULL,0),(175,147,'SIP/SS7','sipss7',0,0,0,1,NULL,0),(176,107,'Always force calls to other customers','force_interpbx',1,1,1,0,0,0),(177,111,'If both parties are on public IP','both_public',1,0,1,0,1,0),(178,145,'ext','ext',1,0,1,1,NULL,NULL),(179,123,'default','50',0,1,1,1,0,NULL);
/*!40000 ALTER TABLE `voip_preferences_enum` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER enum_set_default AFTER INSERT ON voip_preferences_enum
FOR EACH ROW BEGIN
IF (NEW.dom_pref=1 AND NEW.default_val = 1 AND NEW.value IS NOT NULL) THEN
INSERT into voip_dom_preferences (domain_id, attribute_id, value)
SELECT id, NEW.preference_id, NEW.value
FROM voip_domains;
END IF;
IF (NEW.peer_pref=1 AND NEW.default_val = 1 AND NEW.value IS NOT NULL) THEN
INSERT into voip_peer_preferences (peer_host_id, attribute_id, value)
SELECT id, NEW.preference_id, NEW.value
FROM voip_peer_hosts;
END IF;
IF (NEW.usr_pref=1 AND NEW.default_val = 1 AND NEW.value IS NOT NULL) THEN
INSERT into voip_usr_preferences (subscriber_id, attribute_id, value)
SELECT id, NEW.preference_id, NEW.value
FROM voip_subscribers;
END IF;
IF (NEW.prof_pref=1 AND NEW.default_val = 1 AND NEW.value IS NOT NULL) THEN
INSERT into voip_prof_preferences (profile_id, attribute_id, value)
SELECT id, NEW.preference_id, NEW.value
FROM voip_subscriber_profiles;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER enum_update AFTER UPDATE ON voip_preferences_enum
FOR EACH ROW BEGIN
UPDATE voip_usr_preferences SET value=NEW.value
WHERE attribute_id <=> NEW.preference_id AND value <=> OLD.value;
UPDATE voip_dom_preferences SET value=NEW.value
WHERE attribute_id <=> NEW.preference_id AND value <=> OLD.value;
UPDATE voip_peer_preferences SET value=NEW.value
WHERE attribute_id <=> NEW.preference_id AND value <=> OLD.value;
UPDATE voip_prof_preferences SET value=NEW.value
WHERE attribute_id <=> NEW.preference_id AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_prof_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_prof_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`profile_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
`value` varchar(128) NOT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `profidattrid_idx` (`profile_id`,`attribute_id`),
KEY `profid_idx` (`profile_id`),
KEY `attrid_idx` (`attribute_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_prof_preferences` WRITE;
/*!40000 ALTER TABLE `voip_prof_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_prof_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_profpref_crepl_trig AFTER INSERT ON voip_prof_preferences
FOR EACH ROW BEGIN
DECLARE attribute_name varchar(31);
DECLARE attribute_type tinyint(3);
SELECT attribute, type INTO attribute_name, attribute_type
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
INSERT INTO kamailio.prof_preferences (uuid, attribute, type, value)
VALUES(NEW.profile_id, attribute_name, attribute_type, NEW.value);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_profpref_urepl_trig AFTER UPDATE ON voip_prof_preferences
FOR EACH ROW BEGIN
DECLARE old_attribute_name varchar(31);
DECLARE new_attribute_name varchar(31);
SELECT attribute INTO old_attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
SELECT attribute INTO new_attribute_name
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
UPDATE kamailio.prof_preferences SET uuid = NEW.profile_id,
attribute = new_attribute_name,
value = NEW.value
WHERE uuid <=> OLD.profile_id
AND attribute <=> old_attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_profpref_drepl_trig BEFORE DELETE ON voip_prof_preferences
FOR EACH ROW BEGIN
DECLARE attribute_name varchar(31);
SELECT attribute INTO attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
DELETE FROM kamailio.prof_preferences WHERE uuid <=> OLD.profile_id
AND attribute <=> attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_reminder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_reminder` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`time` time NOT NULL,
`recur` enum('never','weekdays','always') NOT NULL DEFAULT 'never',
PRIMARY KEY (`id`),
UNIQUE KEY `subscriber_id` (`subscriber_id`),
CONSTRAINT `v_rem_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_reminder` WRITE;
/*!40000 ALTER TABLE `voip_reminder` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_reminder` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_rewrite_rule_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_rewrite_rule_sets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL DEFAULT '1',
`name` varchar(32) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`caller_in_dpid` int(11) unsigned DEFAULT NULL,
`callee_in_dpid` int(11) unsigned DEFAULT NULL,
`caller_out_dpid` int(11) unsigned DEFAULT NULL,
`callee_out_dpid` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name_idx` (`name`),
KEY `vrwrs_reseller_ref` (`reseller_id`),
CONSTRAINT `vrwrs_reseller_ref` FOREIGN KEY (`reseller_id`) REFERENCES `billing`.`resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_rewrite_rule_sets` WRITE;
/*!40000 ALTER TABLE `voip_rewrite_rule_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_rewrite_rule_sets` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrulesets_crepl_trig BEFORE INSERT ON voip_rewrite_rule_sets
FOR EACH ROW BEGIN
IF NEW.caller_in_dpid IS NULL THEN
INSERT INTO voip_rwrs_sequence VALUES();
SET NEW.caller_in_dpid = (SELECT LAST_INSERT_ID());
END IF;
IF NEW.callee_in_dpid IS NULL THEN
INSERT INTO voip_rwrs_sequence VALUES();
SET NEW.callee_in_dpid = (SELECT LAST_INSERT_ID());
END IF;
IF NEW.caller_out_dpid IS NULL THEN
INSERT INTO voip_rwrs_sequence VALUES();
SET NEW.caller_out_dpid = (SELECT LAST_INSERT_ID());
END IF;
IF NEW.callee_out_dpid IS NULL THEN
INSERT INTO voip_rwrs_sequence VALUES();
SET NEW.callee_out_dpid = (SELECT LAST_INSERT_ID());
END IF;
DELETE a FROM voip_rwrs_sequence a, voip_rwrs_sequence b WHERE a.id < b.id;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrulesets_urepl_trig AFTER UPDATE ON voip_rewrite_rule_sets
FOR EACH ROW BEGIN
IF NEW.caller_in_dpid != OLD.caller_in_dpid THEN
UPDATE kamailio.dialplan SET dpid = NEW.caller_in_dpid WHERE dpid <=> OLD.caller_in_dpid;
UPDATE voip_usr_preferences a, voip_preferences b
SET a.value = NEW.caller_in_dpid
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
UPDATE voip_dom_preferences a, voip_preferences b
SET a.value = NEW.caller_in_dpid
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
UPDATE voip_peer_preferences a, voip_preferences b
SET a.value = NEW.caller_in_dpid
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
UPDATE voip_prof_preferences a, voip_preferences b
SET a.value = NEW.caller_in_dpid
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
END IF;
IF NEW.callee_in_dpid != OLD.callee_in_dpid THEN
UPDATE kamailio.dialplan SET dpid = NEW.callee_in_dpid WHERE dpid <=> OLD.callee_in_dpid;
UPDATE voip_usr_preferences a, voip_preferences b
SET a.value = NEW.callee_in_dpid
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
UPDATE voip_dom_preferences a, voip_preferences b
SET a.value = NEW.callee_in_dpid
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
UPDATE voip_peer_preferences a, voip_preferences b
SET a.value = NEW.callee_in_dpid
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
UPDATE voip_prof_preferences a, voip_preferences b
SET a.value = NEW.callee_in_dpid
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
END IF;
IF NEW.caller_out_dpid != OLD.caller_out_dpid THEN
UPDATE kamailio.dialplan SET dpid = NEW.caller_out_dpid WHERE dpid <=> OLD.caller_out_dpid;
UPDATE voip_usr_preferences a, voip_preferences b
SET a.value = NEW.caller_out_dpid
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
UPDATE voip_dom_preferences a, voip_preferences b
SET a.value = NEW.caller_out_dpid
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
UPDATE voip_peer_preferences a, voip_preferences b
SET a.value = NEW.caller_out_dpid
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
UPDATE voip_prof_preferences a, voip_preferences b
SET a.value = NEW.caller_out_dpid
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
END IF;
IF NEW.callee_out_dpid != OLD.callee_out_dpid THEN
UPDATE kamailio.dialplan SET dpid = NEW.callee_out_dpid WHERE dpid <=> OLD.callee_out_dpid;
UPDATE voip_usr_preferences a, voip_preferences b
SET a.value = NEW.callee_out_dpid
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
UPDATE voip_dom_preferences a, voip_preferences b
SET a.value = NEW.callee_out_dpid
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
UPDATE voip_peer_preferences a, voip_preferences b
SET a.value = NEW.callee_out_dpid
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
UPDATE voip_prof_preferences a, voip_preferences b
SET a.value = NEW.callee_out_dpid
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrulesets_drepl_trig BEFORE DELETE ON voip_rewrite_rule_sets
FOR EACH ROW BEGIN
DELETE a FROM voip_usr_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
DELETE a FROM voip_usr_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
DELETE a FROM voip_usr_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
DELETE a FROM voip_usr_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
DELETE a FROM voip_dom_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
DELETE a FROM voip_dom_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
DELETE a FROM voip_dom_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
DELETE a FROM voip_dom_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
DELETE a FROM voip_peer_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
DELETE a FROM voip_peer_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
DELETE a FROM voip_peer_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
DELETE a FROM voip_peer_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
DELETE a FROM voip_prof_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_in_dpid;
DELETE a FROM voip_prof_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_in_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_in_dpid;
DELETE a FROM voip_prof_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_caller_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.caller_out_dpid;
DELETE a FROM voip_prof_preferences a, voip_preferences b
WHERE b.attribute <=> 'rewrite_callee_out_dpid'
AND a.attribute_id <=> b.id
AND a.value <=> OLD.callee_out_dpid;
DELETE FROM kamailio.dialplan WHERE dpid <=> OLD.caller_in_dpid;
DELETE FROM kamailio.dialplan WHERE dpid <=> OLD.callee_in_dpid;
DELETE FROM kamailio.dialplan WHERE dpid <=> OLD.caller_out_dpid;
DELETE FROM kamailio.dialplan WHERE dpid <=> OLD.callee_out_dpid;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_rewrite_rules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_rewrite_rules` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`set_id` int(11) unsigned NOT NULL,
`match_pattern` varchar(128) NOT NULL DEFAULT '',
`replace_pattern` varchar(255) NOT NULL,
`description` varchar(127) NOT NULL DEFAULT '',
`direction` enum('in','out') NOT NULL DEFAULT 'in',
`field` enum('caller','callee') NOT NULL DEFAULT 'caller',
`priority` int(11) unsigned NOT NULL DEFAULT '50',
`enabled` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `setidx` (`set_id`),
KEY `dirfieldidx` (`direction`,`field`),
CONSTRAINT `v_rwr_setid_ref` FOREIGN KEY (`set_id`) REFERENCES `voip_rewrite_rule_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_rewrite_rules` WRITE;
/*!40000 ALTER TABLE `voip_rewrite_rules` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_rewrite_rules` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrules_crepl_trig AFTER INSERT ON voip_rewrite_rules
FOR EACH ROW BEGIN
DECLARE new_set_id int(11) unsigned;
IF NEW.enabled = 1 THEN
SELECT IF(NEW.direction = 'in', IF(NEW.field = 'caller', caller_in_dpid, callee_in_dpid), IF(NEW.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;
INSERT INTO kamailio.dialplan (dpid,pr,match_op,match_exp,match_len,subst_exp,repl_exp,attrs)
VALUES(new_set_id,NEW.priority,1,NEW.match_pattern,0,NEW.match_pattern,NEW.replace_pattern,'');
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrules_urepl_trig AFTER UPDATE ON voip_rewrite_rules
FOR EACH ROW BEGIN
DECLARE old_set_id int(11) unsigned;
DECLARE new_set_id int(11) unsigned;
IF OLD.enabled = 1 AND NEW.enabled = 1 THEN
SELECT IF(OLD.direction = 'in', IF(OLD.field = 'caller', caller_in_dpid, callee_in_dpid), IF(OLD.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO old_set_id FROM voip_rewrite_rule_sets WHERE id <=> OLD.set_id;
SELECT IF(NEW.direction = 'in', IF(NEW.field = 'caller', caller_in_dpid, callee_in_dpid), IF(NEW.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;
UPDATE kamailio.dialplan
SET dpid = new_set_id,
pr = NEW.priority,
match_exp = NEW.match_pattern,
subst_exp = NEW.match_pattern,
repl_exp = NEW.replace_pattern
WHERE dpid <=> old_set_id
AND pr <=> OLD.priority
AND match_exp <=> OLD.match_pattern
AND subst_exp <=> OLD.match_pattern
AND repl_exp <=> OLD.replace_pattern;
ELSEIF OLD.enabled = 0 AND NEW.enabled = 1 THEN
SELECT IF(NEW.direction = 'in', IF(NEW.field = 'caller', caller_in_dpid, callee_in_dpid), IF(NEW.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id;
INSERT INTO kamailio.dialplan (dpid,pr,match_op,match_exp,match_len,subst_exp,repl_exp,attrs)
VALUES(new_set_id,NEW.priority,1,NEW.match_pattern,0,NEW.match_pattern,NEW.replace_pattern,'');
ELSEIF OLD.enabled = 1 AND NEW.enabled = 0 THEN
SELECT IF(OLD.direction = 'in', IF(OLD.field = 'caller', caller_in_dpid, callee_in_dpid), IF(OLD.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO old_set_id FROM voip_rewrite_rule_sets WHERE id <=> OLD.set_id;
DELETE FROM kamailio.dialplan
WHERE dpid <=> old_set_id
AND pr <=> OLD.priority
AND match_exp <=> OLD.match_pattern
AND subst_exp <=> OLD.match_pattern
AND repl_exp <=> OLD.replace_pattern;
END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_rwrules_drepl_trig BEFORE DELETE ON voip_rewrite_rules
FOR EACH ROW BEGIN
DECLARE old_set_id int(11) unsigned;
SELECT IF(OLD.direction = 'in', IF(OLD.field = 'caller', caller_in_dpid, callee_in_dpid), IF(OLD.field = 'caller', caller_out_dpid, callee_out_dpid))
INTO old_set_id FROM voip_rewrite_rule_sets WHERE id <=> OLD.set_id;
DELETE FROM kamailio.dialplan
WHERE dpid <=> old_set_id
AND pr <=> OLD.priority
AND match_exp <=> OLD.match_pattern
AND subst_exp <=> OLD.match_pattern
AND repl_exp <=> OLD.replace_pattern;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_rwrs_sequence`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_rwrs_sequence` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_rwrs_sequence` WRITE;
/*!40000 ALTER TABLE `voip_rwrs_sequence` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_rwrs_sequence` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_sound_files`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_sound_files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filename` varchar(256) DEFAULT NULL,
`data` longblob,
`handle_id` int(11) DEFAULT NULL,
`set_id` int(11) DEFAULT NULL,
`loopplay` tinyint(1) DEFAULT '0',
`codec` varchar(16) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `set_id_ref` (`set_id`),
KEY `handle_id_ref` (`handle_id`),
CONSTRAINT `handle_id_ref` FOREIGN KEY (`handle_id`) REFERENCES `voip_sound_handles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `set_id_ref` FOREIGN KEY (`set_id`) REFERENCES `voip_sound_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_sound_files` WRITE;
/*!40000 ALTER TABLE `voip_sound_files` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_sound_files` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_sound_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_sound_groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_sound_groups` WRITE;
/*!40000 ALTER TABLE `voip_sound_groups` DISABLE KEYS */;
INSERT INTO `voip_sound_groups` VALUES (1,'early_rejects'),(2,'pbx'),(3,'calling_card'),(4,'music_on_hold'),(5,'mobile_push'),(6,'voucher_recharge'),(7,'play_balance'),(8,'digits'),(9,'conference');
/*!40000 ALTER TABLE `voip_sound_groups` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_sound_handles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_sound_handles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) DEFAULT NULL,
`group_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `v_s_h_group_ref` (`group_id`),
CONSTRAINT `v_s_h_group_ref` FOREIGN KEY (`group_id`) REFERENCES `voip_sound_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_sound_handles` WRITE;
/*!40000 ALTER TABLE `voip_sound_handles` DISABLE KEYS */;
INSERT INTO `voip_sound_handles` VALUES (1,'block_in',1),(2,'block_out',1),(3,'block_ncos',1),(4,'block_override_pin_wrong',1),(5,'locked_in',1),(6,'locked_out',1),(7,'max_calls_in',1),(8,'max_calls_out',1),(9,'max_calls_peer',1),(10,'unauth_caller_ip',1),(11,'relaying_denied',1),(12,'invalid_speeddial',1),(13,'cf_loop',1),(14,'callee_offline',1),(15,'callee_busy',1),(16,'callee_unknown',1),(17,'callee_tmp_unavailable',1),(18,'peering_unavailable',1),(19,'voicebox_unavailable',1),(20,'music_on_hold',4),(21,'emergency_unsupported',1),(22,'no_credit',1),(23,'and',3),(24,'busy_ringback_tone',3),(25,'calling_card_not_found',3),(26,'connecting',3),(27,'could_not_connect',3),(28,'credits_successfully_transfered',3),(29,'declined_ringback_tone',3),(30,'dollar',3),(31,'enter_callingcard_number_to_transfer',3),(32,'enter_callingcard_number',3),(33,'enter_destination_number',3),(34,'error_please_try_later',3),(35,'euro_cents',3),(36,'euro_unit',3),(37,'you_have_in_your_account',3),(38,'aa_welcome',2),(39,'aa_1_for',2),(40,'aa_1_option',2),(41,'aa_2_for',2),(42,'aa_2_option',2),(43,'aa_3_for',2),(44,'aa_3_option',2),(45,'aa_4_for',2),(46,'aa_4_option',2),(47,'aa_5_for',2),(48,'aa_5_option',2),(49,'aa_6_for',2),(50,'aa_6_option',2),(51,'aa_7_for',2),(52,'aa_7_option',2),(53,'aa_8_for',2),(54,'aa_8_option',2),(55,'aa_9_for',2),(56,'aa_9_option',2),(57,'aa_0_for',2),(58,'aa_0_option',2),(59,'office_hours',2),(60,'push_connecting',5),(61,'enter_voucher_number',6),(62,'voucher_incorrect',6),(63,'error_please_try_later',6),(64,'credits_successfully_transferred',6),(65,'units',6),(66,'you_have_in_your_account',7),(67,'units',7),(68,'and',7),(69,'cents',7),(70,'queue_greeting',2),(71,'queue_full',2),(72,'queue_prefix',2),(73,'queue_suffix',2),(74,'queue_waiting_music',2),(75,'0',8),(76,'1',8),(77,'2',8),(78,'3',8),(79,'4',8),(80,'5',8),(81,'6',8),(82,'7',8),(83,'8',8),(84,'9',8),(85,'1-and',8),(86,'2-and',8),(87,'3-and',8),(88,'4-and',8),(89,'5-and',8),(90,'6-and',8),(91,'7-and',8),(92,'8-and',8),(93,'9-and',8),(94,'10',8),(95,'11',8),(96,'12',8),(97,'13',8),(98,'14',8),(99,'15',8),(100,'16',8),(101,'17',8),(102,'18',8),(103,'19',8),(104,'20',8),(105,'30',8),(106,'40',8),(107,'50',8),(108,'60',8),(109,'70',8),(110,'80',8),(111,'90',8),(112,'100',8),(113,'conference_greeting',9),(115,'conference_pin_wrong',9),(116,'conference_joined',9),(117,'conference_join',9),(118,'conference_leave',9),(119,'goodbye',9),(120,'conference_first',9),(121,'conference_pin',9),(122,'conference_waiting_music',9),(123,'conference_max_participants',9);
/*!40000 ALTER TABLE `voip_sound_handles` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_sound_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_sound_sets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL DEFAULT '1',
`contract_id` int(11) unsigned DEFAULT NULL,
`name` varchar(256) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`contract_default` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `vss_reseller_ref` (`reseller_id`),
KEY `contract_id_idx` (`contract_id`),
CONSTRAINT `vss_reseller_ref` FOREIGN KEY (`reseller_id`) REFERENCES `billing`.`resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_sound_sets` WRITE;
/*!40000 ALTER TABLE `voip_sound_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_sound_sets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_speed_dial`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_speed_dial` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`slot` varchar(64) NOT NULL,
`destination` varchar(192) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `subscriberid_slot_idx` (`subscriber_id`,`slot`),
CONSTRAINT `v_sd_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_speed_dial` WRITE;
/*!40000 ALTER TABLE `voip_speed_dial` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_speed_dial` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sd_crepl_trig AFTER INSERT ON voip_speed_dial
FOR EACH ROW BEGIN
DECLARE target_username varchar(64);
DECLARE target_domain varchar(64);
SELECT a.username, b.domain INTO target_username, target_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
INSERT INTO kamailio.speed_dial (username, domain, sd_username, sd_domain,
new_uri, fname, lname, description)
VALUES(target_username, target_domain,
NEW.slot, target_domain,
NEW.destination, '', '', '');
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sd_urepl_trig AFTER UPDATE ON voip_speed_dial
FOR EACH ROW BEGIN
DECLARE old_username varchar(127);
DECLARE old_domain varchar(127);
DECLARE new_username varchar(127);
DECLARE new_domain varchar(127);
SELECT a.username, b.domain INTO old_username, old_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
SELECT a.username, b.domain INTO new_username, new_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND b.id <=> a.domain_id;
UPDATE kamailio.speed_dial SET username = new_username, domain = new_domain,
sd_username = NEW.slot, sd_domain = new_domain,
new_uri = NEW.destination
WHERE username <=> old_username
AND domain <=> old_domain
AND sd_username <=> OLD.slot;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sd_drepl_trig BEFORE DELETE ON voip_speed_dial
FOR EACH ROW BEGIN
DECLARE old_username varchar(127);
DECLARE old_domain varchar(127);
SELECT a.username, b.domain INTO old_username, old_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND b.id <=> a.domain_id;
DELETE FROM kamailio.speed_dial WHERE username <=> old_username
AND domain <=> old_domain
AND sd_username <=> OLD.slot;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_subscriber_profile_attributes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_subscriber_profile_attributes` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`profile_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `prof_attr_idx` (`profile_id`,`attribute_id`),
KEY `attribute_id` (`attribute_id`),
KEY `profile_idx` (`profile_id`),
CONSTRAINT `voip_subscriber_profile_attributes_ibfk_1` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `voip_subscriber_profile_attributes_ibfk_2` FOREIGN KEY (`profile_id`) REFERENCES `voip_subscriber_profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_subscriber_profile_attributes` WRITE;
/*!40000 ALTER TABLE `voip_subscriber_profile_attributes` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_subscriber_profile_attributes` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_subscriber_profile_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_subscriber_profile_sets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `vsp_resname_idx` (`reseller_id`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_subscriber_profile_sets` WRITE;
/*!40000 ALTER TABLE `voip_subscriber_profile_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_subscriber_profile_sets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `voip_subscriber_profiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_subscriber_profiles` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`set_id` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`set_default` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `set_name_idx` (`set_id`,`name`),
CONSTRAINT `voip_subscriber_profile_sets_ibfk_1` FOREIGN KEY (`set_id`) REFERENCES `voip_subscriber_profile_sets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_subscriber_profiles` WRITE;
/*!40000 ALTER TABLE `voip_subscriber_profiles` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_subscriber_profiles` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_prof_crepl_trig AFTER INSERT ON voip_subscriber_profiles
FOR EACH ROW BEGIN
INSERT INTO voip_prof_preferences (profile_id, attribute_id, value)
SELECT NEW.id, p.id, pe.value
FROM voip_preferences p, voip_preferences_enum pe
WHERE p.id <=> preference_id AND p.prof_pref=1 AND pe.prof_pref=1 AND pe.default_val=1 AND pe.value IS NOT NULL;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_subscribers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_subscribers` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(127) NOT NULL,
`domain_id` int(11) unsigned NOT NULL,
`uuid` char(36) NOT NULL,
`password` varchar(40) DEFAULT NULL,
`admin` tinyint(1) NOT NULL DEFAULT '0',
`account_id` int(11) unsigned DEFAULT NULL,
`webusername` varchar(127) DEFAULT NULL,
`webpassword` varchar(40) DEFAULT NULL,
`is_pbx_pilot` tinyint(1) NOT NULL DEFAULT '0',
`is_pbx_group` tinyint(1) NOT NULL DEFAULT '0',
`pbx_hunt_policy` enum('serial','parallel','random','circular') DEFAULT NULL,
`pbx_hunt_timeout` int(4) unsigned DEFAULT NULL,
`pbx_extension` varchar(255) DEFAULT NULL,
`profile_set_id` int(11) unsigned DEFAULT NULL,
`profile_id` int(11) unsigned DEFAULT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `user_dom_idx` (`username`,`domain_id`),
UNIQUE KEY `uuid_idx` (`uuid`),
UNIQUE KEY `webuser_dom_idx` (`webusername`,`domain_id`),
KEY `accountid_idx` (`account_id`),
KEY `domainid_idx` (`domain_id`),
CONSTRAINT `v_s_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `voip_domains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_subscribers` WRITE;
/*!40000 ALTER TABLE `voip_subscribers` DISABLE KEYS */;
INSERT INTO `voip_subscribers` VALUES (3,'no_such_number',2,'9bcb88b6-541a-43da-8fdc-816f5557ff93','37d6b381bf72d2e30bfd1894ee733122',0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,'2015-06-28 23:09:27','2012-12-31 23:00:00'),(4,'nagios',2,'ac1697cf-6933-45ef-9abf-b1278054ded0','nagios4Sipwise!',0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,'2015-06-28 23:09:27','2012-12-31 23:00:00');
/*!40000 ALTER TABLE `voip_subscribers` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sub_crepl_trig AFTER INSERT ON voip_subscribers
FOR EACH ROW BEGIN
DECLARE subscriber_domain varchar(127);
SELECT domain INTO subscriber_domain FROM voip_domains where id = NEW.domain_id;
INSERT INTO kamailio.subscriber (username, domain, uuid, password, datetime_created, ha1, ha1b)
VALUES(NEW.username, subscriber_domain, NEW.uuid, NEW.password, '0',
MD5(CONCAT(NEW.username, ':', subscriber_domain, ':', NEW.password)),
MD5(CONCAT(NEW.username, '@', subscriber_domain, ':', subscriber_domain, ':', NEW.password)));
INSERT INTO voip_usr_preferences (subscriber_id, attribute_id, value)
SELECT NEW.id, p.id, pe.value
FROM voip_preferences p, voip_preferences_enum pe
WHERE p.id <=> preference_id AND p.usr_pref=1 AND pe.usr_pref=1 AND pe.default_val=1 AND pe.value IS NOT NULL;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sub_urepl_trig AFTER UPDATE ON voip_subscribers
FOR EACH ROW BEGIN
DECLARE old_subscriber_domain varchar(127);
DECLARE new_subscriber_domain varchar(127);
SELECT domain INTO old_subscriber_domain FROM voip_domains where id = OLD.domain_id;
SELECT domain INTO new_subscriber_domain FROM voip_domains where id = NEW.domain_id;
UPDATE kamailio.subscriber SET username = NEW.username, domain = new_subscriber_domain,
uuid = NEW.uuid, password = NEW.password,
ha1 = MD5(CONCAT(NEW.username, ':', new_subscriber_domain, ':', NEW.password)),
ha1b = MD5(CONCAT(NEW.username, '@', new_subscriber_domain, ':', new_subscriber_domain, ':', NEW.password))
WHERE username <=> OLD.username
AND domain <=> old_subscriber_domain;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_sub_drepl_trig BEFORE DELETE ON voip_subscribers
FOR EACH ROW BEGIN
DECLARE subscriber_domain varchar(127);
DECLARE os_subscriber_id int(10) UNSIGNED;
SELECT domain INTO subscriber_domain FROM voip_domains where id = OLD.domain_id;
SELECT id INTO os_subscriber_id FROM kamailio.subscriber
WHERE username <=> OLD.username AND domain <=> subscriber_domain;
DELETE FROM kamailio.subscriber WHERE username <=> OLD.username
AND domain <=> subscriber_domain;
DELETE FROM kamailio.voicemail_users WHERE customer_id <=> OLD.uuid;
DELETE FROM kamailio.usr_preferences WHERE username <=> OLD.username
AND domain <=> subscriber_domain;
DELETE FROM kamailio.dbaliases WHERE username <=> OLD.username
AND domain <=> subscriber_domain;
DELETE FROM kamailio.speed_dial WHERE username <=> OLD.username
AND domain <=> subscriber_domain;
DELETE FROM kamailio.fax_preferences WHERE subscriber_id <=> os_subscriber_id;
DELETE FROM kamailio.fax_destinations WHERE subscriber_id <=> os_subscriber_id;
DELETE FROM kamailio.trusted WHERE tag <=> OLD.uuid;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_trusted_sources`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_trusted_sources` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(10) unsigned NOT NULL,
`src_ip` varchar(50) NOT NULL,
`protocol` varchar(4) NOT NULL,
`from_pattern` varchar(64) DEFAULT NULL,
`uuid` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `peer_idx` (`src_ip`),
KEY `subscriber_id_ref` (`subscriber_id`),
CONSTRAINT `subscriber_id_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_trusted_sources` WRITE;
/*!40000 ALTER TABLE `voip_trusted_sources` DISABLE KEYS */;
/*!40000 ALTER TABLE `voip_trusted_sources` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER trusted_sources_insert AFTER INSERT ON voip_trusted_sources
FOR EACH ROW
INSERT INTO kamailio.trusted (src_ip, proto, from_pattern, tag)
VALUES (NEW.src_ip, NEW.protocol, NEW.from_pattern, NEW.uuid) */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER trusted_sources_update BEFORE UPDATE ON voip_trusted_sources
FOR EACH ROW
UPDATE kamailio.trusted SET
src_ip=NEW.src_ip, proto=NEW.protocol, from_pattern=NEW.from_pattern, tag=NEW.uuid
WHERE
src_ip <=> OLD.src_ip and proto <=> OLD.protocol and from_pattern <=> OLD.from_pattern and tag <=> OLD.uuid */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER trusted_sources_delete BEFORE DELETE ON voip_trusted_sources
FOR EACH ROW
DELETE FROM kamailio.trusted
WHERE src_ip <=> OLD.src_ip and proto <=> OLD.protocol and from_pattern <=> OLD.from_pattern and tag <=> OLD.uuid */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `voip_usr_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voip_usr_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`subscriber_id` int(11) unsigned NOT NULL,
`attribute_id` int(11) unsigned NOT NULL,
`value` varchar(128) NOT NULL,
`modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `subidattrid_idx` (`subscriber_id`,`attribute_id`),
KEY `subscriberid_idx` (`subscriber_id`),
KEY `attributeid_idx` (`attribute_id`),
CONSTRAINT `v_u_p_subscriberid_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_u_p_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `voip_usr_preferences` WRITE;
/*!40000 ALTER TABLE `voip_usr_preferences` DISABLE KEYS */;
INSERT INTO `voip_usr_preferences` VALUES (1,3,97,'serial','2015-06-28 23:09:26'),(2,4,97,'serial','2015-06-28 23:09:26');
/*!40000 ALTER TABLE `voip_usr_preferences` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_usrpref_crepl_trig AFTER INSERT ON voip_usr_preferences
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE subscriber_uuid char(36);
DECLARE attribute_name varchar(31);
DECLARE attribute_type tinyint(3);
SELECT a.username, b.domain, a.uuid INTO subscriber_username, subscriber_domain, subscriber_uuid
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND a.domain_id <=> b.id;
SELECT attribute, type INTO attribute_name, attribute_type
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
INSERT INTO kamailio.usr_preferences (uuid, username, domain, attribute, type, value)
VALUES(subscriber_uuid, subscriber_username, subscriber_domain,
attribute_name, attribute_type, NEW.value);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_usrpref_urepl_trig AFTER UPDATE ON voip_usr_preferences
FOR EACH ROW BEGIN
DECLARE old_subscriber_username varchar(127);
DECLARE new_subscriber_username varchar(127);
DECLARE old_subscriber_domain varchar(127);
DECLARE new_subscriber_domain varchar(127);
DECLARE old_attribute_name varchar(31);
DECLARE new_attribute_name varchar(31);
SELECT a.username, b.domain INTO old_subscriber_username, old_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND a.domain_id <=> b.id;
SELECT a.username, b.domain INTO new_subscriber_username, new_subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> NEW.subscriber_id
AND a.domain_id <=> b.id;
SELECT attribute INTO old_attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
SELECT attribute INTO new_attribute_name
FROM voip_preferences
WHERE id <=> NEW.attribute_id;
UPDATE kamailio.usr_preferences SET username = new_subscriber_username, domain = new_subscriber_domain,
attribute = new_attribute_name, value = NEW.value
WHERE username <=> old_subscriber_username
AND domain <=> old_subscriber_domain
AND attribute <=> old_attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = '' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`sipwise`@`localhost`*/ /*!50003 TRIGGER voip_usrpref_drepl_trig BEFORE DELETE ON voip_usr_preferences
FOR EACH ROW BEGIN
DECLARE subscriber_username varchar(127);
DECLARE subscriber_domain varchar(127);
DECLARE attribute_name varchar(31);
SELECT a.username, b.domain INTO subscriber_username, subscriber_domain
FROM voip_subscribers a, voip_domains b
WHERE a.id <=> OLD.subscriber_id
AND a.domain_id <=> b.id;
SELECT attribute INTO attribute_name
FROM voip_preferences
WHERE id <=> OLD.attribute_id;
DELETE FROM kamailio.usr_preferences WHERE username <=> subscriber_username
AND domain <=> subscriber_domain
AND attribute <=> attribute_name
AND value <=> OLD.value;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
DROP TABLE IF EXISTS `xmlgroups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xmlgroups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
PRIMARY KEY (`id`),
KEY `gname` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `xmlgroups` WRITE;
/*!40000 ALTER TABLE `xmlgroups` DISABLE KEYS */;
INSERT INTO `xmlgroups` VALUES (5,'appserver'),(4,'loadbalancer'),(3,'presence'),(1,'proxy'),(6,'proxy-ng'),(2,'registrar'),(7,'xmpp');
/*!40000 ALTER TABLE `xmlgroups` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `xmlhostgroups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xmlhostgroups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(11) unsigned NOT NULL,
`host_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `gidx` (`group_id`),
KEY `xhg_hostid_ref` (`host_id`),
CONSTRAINT `xhg_groupid_ref` FOREIGN KEY (`group_id`) REFERENCES `xmlgroups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `xhg_hostid_ref` FOREIGN KEY (`host_id`) REFERENCES `xmlhosts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `xmlhostgroups` WRITE;
/*!40000 ALTER TABLE `xmlhostgroups` DISABLE KEYS */;
INSERT INTO `xmlhostgroups` VALUES (1,1,1),(2,5,2),(3,6,3),(4,4,4),(5,7,5);
/*!40000 ALTER TABLE `xmlhostgroups` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `xmlhosts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xmlhosts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(15) NOT NULL,
`port` int(5) unsigned NOT NULL,
`path` varchar(64) NOT NULL DEFAULT '/',
`sip_port` int(5) unsigned DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `xmlhosts` WRITE;
/*!40000 ALTER TABLE `xmlhosts` DISABLE KEYS */;
INSERT INTO `xmlhosts` VALUES (1,'127.0.0.1',8000,'/RPC2',5062,'Kamailio'),(2,'127.0.0.1',8090,'/',NULL,'Sems'),(3,'127.0.0.1',5062,'/',NULL,'Kamailio-SR'),(4,'127.0.0.1',5060,'/',NULL,'Loadbalancer'),(5,'127.0.0.1',5582,'/',NULL,'Prosody');
/*!40000 ALTER TABLE `xmlhosts` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `xmlqueue`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xmlqueue` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`target` varchar(255) NOT NULL,
`body` text NOT NULL,
`ctime` int(10) unsigned NOT NULL,
`atime` int(10) unsigned NOT NULL,
`tries` int(10) unsigned NOT NULL,
`next_try` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `next_try` (`next_try`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `xmlqueue` WRITE;
/*!40000 ALTER TABLE `xmlqueue` DISABLE KEYS */;
/*!40000 ALTER TABLE `xmlqueue` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `sipstats`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `sipstats` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `sipstats`;
DROP TABLE IF EXISTS `mark`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mark` (
`name` varchar(255) NOT NULL,
`value` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mark` WRITE;
/*!40000 ALTER TABLE `mark` DISABLE KEYS */;
/*!40000 ALTER TABLE `mark` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `message_packets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `message_packets` (
`message` bigint(20) unsigned NOT NULL,
`packet` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`message`,`packet`),
KEY `packet` (`packet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (message)
(PARTITION p700000 VALUES LESS THAN (700000) ENGINE = InnoDB) */;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `message_packets` WRITE;
/*!40000 ALTER TABLE `message_packets` DISABLE KEYS */;
/*!40000 ALTER TABLE `message_packets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `messages` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` decimal(17,6) NOT NULL,
`protocol` enum('IPv4','IPv6') NOT NULL,
`transport` enum('UDP','TCP') NOT NULL,
`src_ip` varchar(39) NOT NULL,
`dst_ip` varchar(39) NOT NULL,
`src_port` smallint(5) unsigned NOT NULL,
`dst_port` smallint(5) unsigned NOT NULL,
`payload` blob NOT NULL,
`method` varchar(20) NOT NULL,
`cseq_method` varchar(16) NOT NULL,
`call_id` varchar(255) NOT NULL,
`request_uri` varchar(255) NOT NULL,
`from_uri` varchar(255) NOT NULL,
`caller_uuid` varchar(255) NOT NULL,
`callee_uuid` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `call_id_idx` (`call_id`),
KEY `caller_uuid_idx` (`caller_uuid`),
KEY `callee_uuid_idx` (`callee_uuid`),
KEY `timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (id)
(PARTITION p700000 VALUES LESS THAN (700000) ENGINE = InnoDB) */;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `packets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `packets` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` decimal(17,6) NOT NULL,
`src_mac` binary(6) NOT NULL,
`dst_mac` binary(6) NOT NULL,
`header` blob NOT NULL,
`payload` blob NOT NULL,
`trailer` blob NOT NULL,
PRIMARY KEY (`id`),
KEY `uniq` (`timestamp`,`src_mac`,`dst_mac`,`header`(80))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (id)
(PARTITION p700000 VALUES LESS THAN (700000) ENGINE = InnoDB) */;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `packets` WRITE;
/*!40000 ALTER TABLE `packets` DISABLE KEYS */;
/*!40000 ALTER TABLE `packets` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `statistics` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`timestamp` decimal(17,6) NOT NULL,
`req_count` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_register` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_invite` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_bye` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_ack` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_prack` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_cancel` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_update` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_options` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_publish` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_subscribe` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_notify` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_message` bigint(20) unsigned NOT NULL DEFAULT '0',
`req_other` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_count` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_18x` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_1xx` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_2xx` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_3xx` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_401` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_407` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_403` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_404` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_480` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_486` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_487` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_4xx` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_5xx` bigint(20) unsigned NOT NULL DEFAULT '0',
`res_6xx` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`,`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (floor(timestamp))
(PARTITION p_old VALUES LESS THAN (600) ENGINE = InnoDB) */;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `statistics` WRITE;
/*!40000 ALTER TABLE `statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `statistics` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `stats`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `stats` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `stats`;
DROP TABLE IF EXISTS `call_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `call_info` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sip_code` varchar(3) NOT NULL,
`period` datetime NOT NULL,
`amount` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `call_info_sip_code_period_idx` (`sip_code`,`period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `call_info` WRITE;
/*!40000 ALTER TABLE `call_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `call_info` ENABLE KEYS */;
UNLOCK TABLES;
/*!40000 DROP DATABASE IF EXISTS `syslog`*/;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `syslog` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `syslog`;
DROP TABLE IF EXISTS `SystemEvents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `SystemEvents` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8 INSERT_METHOD=FIRST UNION=(`se1`,`se2`,`se3`,`se4`,`se5`,`se6`,`se7`,`se8`,`se9`,`se10`,`se11`,`se12`,`se13`,`se14`,`se15`,`se16`,`se17`,`se18`,`se19`,`se20`,`se21`,`se22`,`se23`,`se24`,`se25`,`se26`,`se27`,`se28`);
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `se1`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se1` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se1` WRITE;
/*!40000 ALTER TABLE `se1` DISABLE KEYS */;
/*!40000 ALTER TABLE `se1` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se10`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se10` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se10` WRITE;
/*!40000 ALTER TABLE `se10` DISABLE KEYS */;
/*!40000 ALTER TABLE `se10` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se11`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se11` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se11` WRITE;
/*!40000 ALTER TABLE `se11` DISABLE KEYS */;
/*!40000 ALTER TABLE `se11` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se12`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se12` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se12` WRITE;
/*!40000 ALTER TABLE `se12` DISABLE KEYS */;
/*!40000 ALTER TABLE `se12` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se13`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se13` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se13` WRITE;
/*!40000 ALTER TABLE `se13` DISABLE KEYS */;
/*!40000 ALTER TABLE `se13` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se14`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se14` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se14` WRITE;
/*!40000 ALTER TABLE `se14` DISABLE KEYS */;
/*!40000 ALTER TABLE `se14` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se15`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se15` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se15` WRITE;
/*!40000 ALTER TABLE `se15` DISABLE KEYS */;
/*!40000 ALTER TABLE `se15` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se16`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se16` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se16` WRITE;
/*!40000 ALTER TABLE `se16` DISABLE KEYS */;
/*!40000 ALTER TABLE `se16` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se17`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se17` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se17` WRITE;
/*!40000 ALTER TABLE `se17` DISABLE KEYS */;
/*!40000 ALTER TABLE `se17` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se18`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se18` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se18` WRITE;
/*!40000 ALTER TABLE `se18` DISABLE KEYS */;
/*!40000 ALTER TABLE `se18` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se19`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se19` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se19` WRITE;
/*!40000 ALTER TABLE `se19` DISABLE KEYS */;
/*!40000 ALTER TABLE `se19` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se2` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se2` WRITE;
/*!40000 ALTER TABLE `se2` DISABLE KEYS */;
/*!40000 ALTER TABLE `se2` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se20`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se20` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se20` WRITE;
/*!40000 ALTER TABLE `se20` DISABLE KEYS */;
/*!40000 ALTER TABLE `se20` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se21`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se21` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se21` WRITE;
/*!40000 ALTER TABLE `se21` DISABLE KEYS */;
/*!40000 ALTER TABLE `se21` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se22`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se22` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se22` WRITE;
/*!40000 ALTER TABLE `se22` DISABLE KEYS */;
/*!40000 ALTER TABLE `se22` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se23`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se23` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se23` WRITE;
/*!40000 ALTER TABLE `se23` DISABLE KEYS */;
/*!40000 ALTER TABLE `se23` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se24`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se24` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se24` WRITE;
/*!40000 ALTER TABLE `se24` DISABLE KEYS */;
/*!40000 ALTER TABLE `se24` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se25`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se25` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se25` WRITE;
/*!40000 ALTER TABLE `se25` DISABLE KEYS */;
/*!40000 ALTER TABLE `se25` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se26`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se26` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se26` WRITE;
/*!40000 ALTER TABLE `se26` DISABLE KEYS */;
/*!40000 ALTER TABLE `se26` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se27`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se27` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se27` WRITE;
/*!40000 ALTER TABLE `se27` DISABLE KEYS */;
/*!40000 ALTER TABLE `se27` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se28`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se28` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se28` WRITE;
/*!40000 ALTER TABLE `se28` DISABLE KEYS */;
/*!40000 ALTER TABLE `se28` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se3`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se3` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se3` WRITE;
/*!40000 ALTER TABLE `se3` DISABLE KEYS */;
/*!40000 ALTER TABLE `se3` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se4`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se4` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se4` WRITE;
/*!40000 ALTER TABLE `se4` DISABLE KEYS */;
/*!40000 ALTER TABLE `se4` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se5`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se5` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se5` WRITE;
/*!40000 ALTER TABLE `se5` DISABLE KEYS */;
/*!40000 ALTER TABLE `se5` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se6`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se6` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se6` WRITE;
/*!40000 ALTER TABLE `se6` DISABLE KEYS */;
/*!40000 ALTER TABLE `se6` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se7`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se7` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se7` WRITE;
/*!40000 ALTER TABLE `se7` DISABLE KEYS */;
/*!40000 ALTER TABLE `se7` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se8`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se8` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se8` WRITE;
/*!40000 ALTER TABLE `se8` DISABLE KEYS */;
/*!40000 ALTER TABLE `se8` ENABLE KEYS */;
UNLOCK TABLES;
DROP TABLE IF EXISTS `se9`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `se9` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`CustomerID` bigint(20) DEFAULT NULL,
`ReceivedAt` datetime DEFAULT NULL,
`DeviceReportedTime` datetime DEFAULT NULL,
`Facility` smallint(6) DEFAULT NULL,
`Priority` smallint(6) DEFAULT NULL,
`FromHost` varchar(60) DEFAULT NULL,
`Message` text,
`NTSeverity` int(11) DEFAULT NULL,
`Importance` int(11) DEFAULT NULL,
`EventSource` varchar(60) DEFAULT NULL,
`EventUser` varchar(60) DEFAULT NULL,
`EventCategory` int(11) DEFAULT NULL,
`EventID` int(11) DEFAULT NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) DEFAULT NULL,
`CurrUsage` int(11) DEFAULT NULL,
`MinUsage` int(11) DEFAULT NULL,
`MaxUsage` int(11) DEFAULT NULL,
`InfoUnitID` int(11) DEFAULT NULL,
`SysLogTag` varchar(60) DEFAULT NULL,
`EventLogType` varchar(60) DEFAULT NULL,
`GenericFileName` varchar(60) DEFAULT NULL,
`SystemID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `se9` WRITE;
/*!40000 ALTER TABLE `se9` DISABLE KEYS */;
/*!40000 ALTER TABLE `se9` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!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 */;