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

5809 lines
358 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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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_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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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,
`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,
`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,
`carrier_cost` decimal(10,2) DEFAULT NULL,
`reseller_cost` decimal(10,2) DEFAULT NULL,
`customer_cost` decimal(10,2) DEFAULT NULL,
`carrier_free_time` int(10) unsigned DEFAULT NULL,
`reseller_free_time` int(10) unsigned DEFAULT NULL,
`customer_free_time` int(10) unsigned DEFAULT NULL,
`carrier_billing_fee_id` int(11) unsigned DEFAULT NULL,
`reseller_billing_fee_id` int(11) unsigned DEFAULT NULL,
`customer_billing_fee_id` int(11) unsigned DEFAULT NULL,
`carrier_billing_zone_id` int(11) unsigned DEFAULT NULL,
`reseller_billing_zone_id` int(11) unsigned DEFAULT NULL,
`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`)
) 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 `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',
`lawful_intercept` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `login_idx` (`login`),
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);
/*!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,
`destination` varchar(255) NOT NULL,
`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 `profdestype_idx` (`billing_profile_id`,`destination`,`type`),
KEY `profileid_idx` (`billing_profile_id`),
KEY `zoneid_idx` (`billing_zone_id`),
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=2 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,'.*','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.destination,
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, destination = NEW.destination, 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,
`destination` varchar(255) NOT NULL,
`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`),
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=2 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,1,1,1,'.*','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_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`),
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,NULL,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,
`currency` varchar(31) DEFAULT NULL,
`vat_rate` tinyint(3) unsigned DEFAULT NULL,
`vat_included` tinyint(1) NOT NULL DEFAULT '1',
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,0,0);
/*!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=2 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=2 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,
`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` int(6) 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,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
/*!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`),
KEY `contractid_idx` (`contract_id`),
KEY `invoiceid_idx` (`invoice_id`),
CONSTRAINT `cb_invoiceid_ref` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `c_b_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_balances` WRITE;
/*!40000 ALTER TABLE `contract_balances` DISABLE KEYS */;
/*!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_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,
`reseller_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,
PRIMARY KEY (`id`),
KEY `contactid_idx` (`contact_id`),
KEY `customerid_idx` (`customer_id`),
KEY `resellerid_idx` (`reseller_id`),
KEY `orderid_idx` (`order_id`),
KEY `externalid_idx` (`external_id`),
CONSTRAINT `co_contactid_ref` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `co_orderid_ref` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `co_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE 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,NULL,NULL,NULL,'active',NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL);
/*!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 `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,
`year` smallint(4) unsigned NOT NULL,
`month` tinyint(2) unsigned NOT NULL,
`serial` int(5) unsigned NOT NULL,
`data` blob,
PRIMARY KEY (`id`),
UNIQUE KEY `yms_idx` (`year`,`month`,`serial`)
) 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 `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_lnpproid_ref` FOREIGN KEY (`lnp_provider_id`) REFERENCES `lnp_providers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `c_l_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_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_contactid_ref` FOREIGN KEY (`delivery_contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_customerid_ref` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_invoiceid_ref` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `o_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 `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,
`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','voip','hardware','auxiliary') 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=4 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);
/*!40000 ALTER TABLE `products` 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',
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,
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;
/*!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_creditid_ref` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `p_orderid_ref` FOREIGN KEY (`order_id`) REFERENCES `orders` (`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,
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`),
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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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_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(2048) DEFAULT NULL,
`dst_leg` varchar(2048) 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 `active_watchers_pres` (`presentity_uri`),
KEY `updated_idx` (`updated`),
KEY `updated_winfo_idx` (`updated_winfo`,`presentity_uri`)
) ENGINE=MyISAM 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(48) 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 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `address` WRITE;
/*!40000 ALTER TABLE `address` DISABLE KEYS */;
/*!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 '2020-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`),
KEY `alias_idx` (`username`,`domain`,`contact`)
) ENGINE=MyISAM 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 `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 '',
PRIMARY KEY (`id`),
UNIQUE KEY `alias_idx` (`alias_username`,`alias_domain`),
KEY `target_idx` (`username`,`domain`)
) 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=MyISAM 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,4,'sip:127.0.0.1:5090',0,0,'','Fax2Mail servers');
/*!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=3 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');
/*!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=MyISAM 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=MyISAM 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(64) NOT 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_ip_addr_idx` (`lcr_id`,`ip_addr`),
UNIQUE KEY `lcr_id_gw_name_idx` (`lcr_id`,`gw_name`),
KEY `lcr_id_idx` (`lcr_id`)
) 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(128) DEFAULT NULL,
`expires` datetime NOT NULL DEFAULT '2020-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`),
KEY `account_contact_idx` (`username`,`domain`,`contact`)
) 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 `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,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`reg_id`),
KEY `subscriber_id` (`subscriber_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 `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=MyISAM 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 `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 `dialog1_idx` (`call_id`,`from_tag`,`to_tag`),
KEY `dialog2_idx` (`pres_id`,`pres_uri`),
KEY `tmp_dlg1_idx` (`call_id`,`from_tag`),
KEY `tmp_dlg2_idx` (`pres_id`,`pres_uri`,`call_id`,`from_tag`),
KEY `tmp_record1_idx` (`pres_id`),
KEY `tmp_record2_idx` (`pres_id`,`etag`),
KEY `expires_idx` (`expires`)
) ENGINE=MyISAM 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=MyISAM 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_delete` (`callid`,`to_tag`),
KEY `rls_watchers_update` (`watcher_username`,`watcher_domain`,`event`),
KEY `rls_watchers_expires` (`expires`),
KEY `updated_idx` (`updated`)
) ENGINE=MyISAM 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 `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=MyISAM 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','999b348d364077656050227d6e17c4ef','','4abc8a22764c2aad9e229624bfb88bc4','0d1394862941e98cafd81142bfbda3eb',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 `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 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `usr_preferences` WRITE;
/*!40000 ALTER TABLE `usr_preferences` DISABLE KEYS */;
/*!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'
) 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),('trusted',5),('dbaliases',1),('speed_dial',2),('usr_preferences',2),('subscriber',6),('dispatcher',3),('dialplan',1),('lcr_gw',2),('lcr_rule_target',1),('lcr_rule',2),('dialog_vars',1),('aliases',5),('htable',2),('address',5),('dialog',7),('domain',2),('domain_attrs',1),('location',5),('presentity',3),('active_watchers',11),('watchers',3),('xcap',4),('pua',7),('rls_presentity',1),('rls_watchers',3),('silo',7);
/*!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(31) 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=MyISAM 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=MyISAM 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 `cfg_schema`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cfg_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=38 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `cfg_schema` WRITE;
/*!40000 ALTER TABLE `cfg_schema` DISABLE KEYS */;
INSERT INTO `cfg_schema` VALUES (1,1,'','2012-12-09 04:08:43'),(2,2,'','2012-12-09 04:08:43'),(3,8374,'spce','2012-12-09 04:08:43'),(4,8411,'spce','2012-12-09 04:08:44'),(5,8615,'spce','2012-12-09 04:08:44'),(6,8708,'spce','2012-12-09 04:08:44'),(7,8871,'spce','2012-12-09 04:08:44'),(8,8873,'spce','2012-12-09 04:08:44'),(9,8886,'spce','2012-12-09 04:08:44'),(10,9084,'spce','2012-12-09 04:08:44'),(11,9119,'spce','2012-12-09 04:08:45'),(12,9259,'spce','2012-12-09 04:08:45'),(13,9562,'spce','2012-12-09 04:08:45'),(14,9564,'spce','2012-12-09 04:08:45'),(15,9658,'spce','2012-12-09 04:08:45'),(16,10088,'spce','2012-12-09 04:08:45'),(17,10226,'spce','2012-12-09 04:08:45'),(18,10233,'spce','2012-12-09 04:08:46'),(19,10432,'spce','2012-12-09 04:08:46'),(20,10443,'spce','2012-12-09 04:08:46'),(21,10472,'spce','2012-12-09 04:08:46'),(22,10534,'spce','2012-12-09 04:08:46'),(23,10699,'spce','2012-12-09 04:08:46'),(24,10700,'spce','2012-12-09 04:08:46'),(25,11260,'spce','2012-12-09 04:08:47'),(26,11263,'spce','2012-12-09 04:08:47'),(27,11372,'spce','2012-12-09 04:08:47'),(28,12029,'spce','2012-12-09 04:08:47'),(29,12037,'spce','2012-12-09 04:08:47'),(30,8874,'spce','2012-12-09 04:08:47'),(31,9830,'spce','2012-12-09 04:08:48'),(32,10468,'spce','2012-12-09 04:08:48'),(33,11316,'spce','2012-12-09 04:08:48'),(34,11814,'spce','2012-12-09 04:08:48'),(35,11379,'spce','2012-12-09 04:08:48'),(36,11380,'spce','2012-12-09 04:08:48'),(37,11395,'spce','2012-12-09 04:08:48');
/*!40000 ALTER TABLE `cfg_schema` ENABLE KEYS */;
UNLOCK TABLES;
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=174 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','2012-12-09 04:08:10'),(2,20,'spce','2012-12-09 04:08:10'),(3,30,'spce','2012-12-09 04:08:11'),(4,40,'spce','2012-12-09 04:08:11'),(5,50,'spce','2012-12-09 04:08:11'),(6,60,'spce','2012-12-09 04:08:11'),(7,70,'spce','2012-12-09 04:08:11'),(8,80,'spce','2012-12-09 04:08:12'),(9,3972,'spce','2012-12-09 04:08:12'),(10,3975,'spce','2012-12-09 04:08:12'),(11,4026,'spce','2012-12-09 04:08:12'),(12,4042,'spce','2012-12-09 04:08:12'),(13,4063,'spce','2012-12-09 04:08:12'),(14,4085,'spce','2012-12-09 04:08:13'),(15,4095,'spce','2012-12-09 04:08:13'),(16,4112,'spce','2012-12-09 04:08:13'),(17,4145,'spce','2012-12-09 04:08:13'),(18,4496,'spce','2012-12-09 04:08:13'),(19,4665,'spce','2012-12-09 04:08:13'),(20,4668,'spce','2012-12-09 04:08:14'),(21,4701,'spce','2012-12-09 04:08:14'),(22,4711,'spce','2012-12-09 04:08:14'),(23,4712,'spce','2012-12-09 04:08:14'),(24,4717,'spce','2012-12-09 04:08:14'),(25,4735,'spce','2012-12-09 04:08:14'),(26,4762,'spce','2012-12-09 04:08:15'),(27,4832,'spce','2012-12-09 04:08:15'),(28,4875,'spce','2012-12-09 04:08:15'),(29,4968,'spce','2012-12-09 04:08:15'),(30,4984,'spce','2012-12-09 04:08:15'),(31,5000,'spce','2012-12-09 04:08:15'),(32,5249,'spce','2012-12-09 04:08:15'),(33,5283,'spce','2012-12-09 04:08:16'),(34,5300,'spce','2012-12-09 04:08:16'),(35,5347,'spce','2012-12-09 04:08:16'),(36,5471,'spce','2012-12-09 04:08:16'),(37,5472,'spce','2012-12-09 04:08:16'),(38,5538,'spce','2012-12-09 04:08:16'),(39,5543,'spce','2012-12-09 04:08:17'),(40,5553,'spce','2012-12-09 04:08:17'),(41,5603,'spce','2012-12-09 04:08:17'),(42,5604,'spce','2012-12-09 04:08:17'),(43,5607,'spce','2012-12-09 04:08:17'),(44,5670,'spce','2012-12-09 04:08:17'),(45,5708,'spce','2012-12-09 04:08:18'),(46,5709,'spce','2012-12-09 04:08:18'),(47,5722,'spce','2012-12-09 04:08:19'),(48,5726,'spce','2012-12-09 04:08:19'),(49,5728,'spce','2012-12-09 04:08:19'),(50,5737,'spce','2012-12-09 04:08:19'),(51,5744,'spce','2012-12-09 04:08:19'),(52,5749,'spce','2012-12-09 04:08:19'),(53,5800,'spce','2012-12-09 04:08:20'),(54,5824,'spce','2012-12-09 04:08:20'),(55,5826,'spce','2012-12-09 04:08:20'),(56,5831,'spce','2012-12-09 04:08:20'),(57,5833,'spce','2012-12-09 04:08:20'),(58,5843,'spce','2012-12-09 04:08:20'),(59,5973,'spce','2012-12-09 04:08:21'),(60,6254,'spce','2012-12-09 04:08:21'),(61,6346,'spce','2012-12-09 04:08:21'),(62,6424,'spce','2012-12-09 04:08:21'),(63,6425,'spce','2012-12-09 04:08:26'),(64,6435,'spce','2012-12-09 04:08:26'),(65,6436,'spce','2012-12-09 04:08:26'),(66,6459,'spce','2012-12-09 04:08:27'),(67,6465,'spce','2012-12-09 04:08:27'),(68,6551,'spce','2012-12-09 04:08:27'),(69,6560,'spce','2012-12-09 04:08:27'),(70,6568,'spce','2012-12-09 04:08:27'),(71,6619,'spce','2012-12-09 04:08:27'),(72,6624,'spce','2012-12-09 04:08:27'),(73,6643,'spce','2012-12-09 04:08:28'),(74,6712,'spce','2012-12-09 04:08:28'),(75,6746,'spce','2012-12-09 04:08:28'),(76,7006,'spce','2012-12-09 04:08:28'),(77,7036,'spce','2012-12-09 04:08:28'),(78,7065,'spce','2012-12-09 04:08:28'),(79,7095,'spce','2012-12-09 04:08:29'),(80,7209,'spce','2012-12-09 04:08:29'),(81,7252,'spce','2012-12-09 04:08:29'),(82,7259,'spce','2012-12-09 04:08:29'),(83,7260,'spce','2012-12-09 04:08:29'),(84,7485,'spce','2012-12-09 04:08:29'),(85,7493,'spce','2012-12-09 04:08:29'),(86,7496,'spce','2012-12-09 04:08:30'),(87,7500,'spce','2012-12-09 04:08:30'),(88,7644,'spce','2012-12-09 04:08:30'),(89,7647,'spce','2012-12-09 04:08:30'),(90,7655,'spce','2012-12-09 04:08:30'),(91,7656,'spce','2012-12-09 04:08:30'),(92,7764,'spce','2012-12-09 04:08:30'),(93,7937,'spce','2012-12-09 04:08:31'),(94,7991,'spce','2012-12-09 04:08:31'),(95,8169,'spce','2012-12-09 04:08:31'),(96,8293,'spce','2012-12-09 04:08:31'),(97,8378,'spce','2012-12-09 04:08:31'),(98,8408,'spce','2012-12-09 04:08:31'),(99,8461,'spce','2012-12-09 04:08:32'),(100,8466,'spce','2012-12-09 04:08:32'),(101,8467,'spce','2012-12-09 04:08:32'),(102,8629,'spce','2012-12-09 04:08:32'),(103,8704,'spce','2012-12-09 04:08:32'),(104,8846,'spce','2012-12-09 04:08:32'),(105,8878,'spce','2012-12-09 04:08:33'),(106,8997,'spce','2012-12-09 04:08:33'),(107,9069,'spce','2012-12-09 04:08:33'),(108,9086,'spce','2012-12-09 04:08:33'),(109,9106,'spce','2012-12-09 04:08:33'),(110,9114,'spce','2012-12-09 04:08:33'),(111,9119,'spce','2012-12-09 04:08:33'),(112,9150,'spce','2012-12-09 04:08:34'),(113,9154,'spce','2012-12-09 04:08:34'),(114,9159,'spce','2012-12-09 04:08:34'),(115,9166,'spce','2012-12-09 04:08:34'),(116,9187,'spce','2012-12-09 04:08:34'),(117,9188,'spce','2012-12-09 04:08:34'),(118,9204,'spce','2012-12-09 04:08:35'),(119,9205,'spce','2012-12-09 04:08:35'),(120,9221,'spce','2012-12-09 04:08:35'),(121,9222,'spce','2012-12-09 04:08:35'),(122,9228,'spce','2012-12-09 04:08:35'),(123,9249,'spce','2012-12-09 04:08:36'),(124,9256,'spce','2012-12-09 04:08:36'),(125,9303,'spce','2012-12-09 04:08:36'),(126,9312,'spce','2012-12-09 04:08:36'),(127,9458,'spce','2012-12-09 04:08:36'),(128,9625,'spce','2012-12-09 04:08:36'),(129,9630,'spce','2012-12-09 04:08:36'),(130,9665,'spce','2012-12-09 04:08:37'),(131,9675,'spce','2012-12-09 04:08:37'),(132,9702,'spce','2012-12-09 04:08:37'),(133,9703,'spce','2012-12-09 04:08:37'),(134,9723,'spce','2012-12-09 04:08:37'),(135,9733,'spce','2012-12-09 04:08:37'),(136,9791,'spce','2012-12-09 04:08:37'),(137,9868,'spce','2012-12-09 04:08:38'),(138,10180,'spce','2012-12-09 04:08:38'),(139,10203,'spce','2012-12-09 04:08:38'),(140,10210,'spce','2012-12-09 04:08:38'),(141,10268,'spce','2012-12-09 04:08:38'),(142,10272,'spce','2012-12-09 04:08:38'),(143,10287,'spce','2012-12-09 04:08:39'),(144,10290,'spce','2012-12-09 04:08:39'),(145,10331,'spce','2012-12-09 04:08:39'),(146,10332,'spce','2012-12-09 04:08:39'),(147,10423,'spce','2012-12-09 04:08:39'),(148,10538,'spce','2012-12-09 04:08:39'),(149,10639,'spce','2012-12-09 04:08:39'),(150,10728,'spce','2012-12-09 04:08:40'),(151,10860,'spce','2012-12-09 04:08:40'),(152,10877,'spce','2012-12-09 04:08:40'),(153,10890,'spce','2012-12-09 04:08:40'),(154,10934,'spce','2012-12-09 04:08:40'),(155,10950,'spce','2012-12-09 04:08:40'),(156,10951,'spce','2012-12-09 04:08:41'),(157,11039,'spce','2012-12-09 04:08:41'),(158,11062,'spce','2012-12-09 04:08:41'),(159,11188,'spce','2012-12-09 04:08:41'),(160,11245,'spce','2012-12-09 04:08:41'),(161,11318,'spce','2012-12-09 04:08:41'),(162,11350,'spce','2012-12-09 04:08:41'),(163,11379,'spce','2012-12-09 04:08:42'),(164,11565,'spce','2012-12-09 04:08:42'),(165,11581,'spce','2012-12-09 04:08:42'),(166,11603,'spce','2012-12-09 04:08:42'),(167,11722,'spce','2012-12-09 04:08:42'),(168,11729,'spce','2012-12-09 04:08:42'),(169,11812,'spce','2012-12-09 04:08:43'),(170,11817,'spce','2012-12-09 04:08:43'),(171,11818,'spce','2012-12-09 04:08:43'),(172,11819,'spce','2012-12-09 04:08:43'),(173,12002,'spce','2012-12-09 04:08:43');
/*!40000 ALTER TABLE `db_schema` 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 `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=965 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','Das Passwort ist zu kurz, bitte verwenden Sie mindestens 6 Zeichen.'),(142,'Client.Voip.PassLength','en','The password is too short, please use 6 characters at least.'),(143,'Client.Voip.PassLength','es','La contraseña es demasiado corta. Por favor use una de al menos 6 caracteres.'),(144,'Client.Voip.PassLength','fr','Le mot de passe est trop court, utilisez au moins 6 caractères.'),(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','Invalid year.'),(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','Invalid month.'),(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','Invalid day of month.'),(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','Invalid day of week.'),(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','Invalid hour.'),(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','Invalid minute.'),(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','Beginning missing.'),(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','Beginning after End.'),(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','Setname can not be empty.'),(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älhlen Sie eine Zielmenge.'),(899,'Client.Syntax.MissingDestinationSet','es','Please choose a destination set.'),(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','Unknown protocol'),(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','Invalid enum'),(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','Unknown locklevel'),(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','Soundset deleted'),(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','Soundset still mapped'),(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','Soundset does not exist '),(925,'Client.Syntax.MissingSoundFile','en','Soundfile missing '),(926,'Client.Syntax.MissingSoundFile','de','Soundfile fehlt '),(927,'Client.Syntax.MissingSoundFile','es','Soundfile missing '),(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','Invalid E.164 Number'),(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','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].'),(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','Invalid sip username'),(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','This webuser is already in use.'),(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','Soundfile already exists'),(949,'Server.System.WaveTranscodeFailed','en','Failed to transcode sound file'),(950,'Server.System.WaveTranscodeFailed','de','Transkodieren der Sounddatei fehlgeschlagen'),(951,'Server.System.WaveTranscodeFailed','es','Failed to transcode sound file'),(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','Invalid file type'),(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','This peering rule already exists.'),(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','Subscriber does not exist'),(964,'Client.Voip.NoSuchSubscriber','fr','Subscriber does not exist');
/*!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 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 */;
/*!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 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 */;
/*!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_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,
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)
VALUES(NEW.username, dbalias_domain, target_username, target_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_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
WHERE alias_username = OLD.username
AND alias_domain = old_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 */ ;
/*!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_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_d_p_domainid_ref` FOREIGN KEY (`domain_id`) REFERENCES `voip_domains` (`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 `voip_dom_preferences` WRITE;
/*!40000 ALTER TABLE `voip_dom_preferences` DISABLE KEYS */;
INSERT INTO `voip_dom_preferences` VALUES (1,2,62,'no','2012-12-09 04:08:33'),(2,2,66,'UPDATE_FALLBACK_INVITE','2012-12-09 04:08:33');
/*!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_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_lb` tinyint(1) NOT NULL DEFAULT '0',
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
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 */;;
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
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;
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 lcr_id = 1
AND group_id = OLD.group_id
AND ip_addr = OLD.ip;
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_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_p_p_peerhostid_ref` FOREIGN KEY (`peer_host_id`) REFERENCES `voip_peer_hosts` (`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,
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
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 */;;
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
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;
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_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,
`attribute` varchar(31) NOT NULL,
`type` tinyint(3) NOT NULL DEFAULT '0',
`max_occur` tinyint(3) unsigned NOT NULL,
`usr_pref` tinyint(1) NOT NULL DEFAULT '0',
`dom_pref` tinyint(1) NOT NULL DEFAULT '0',
`peer_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',
`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`)
) ENGINE=InnoDB AUTO_INCREMENT=91 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,'lock',0,1,1,0,0,'2012-12-09 04:08:14',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,'block_in_mode',1,1,1,0,0,'2012-12-09 04:08:14',0,'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,'block_in_list',0,0,1,0,0,'2012-12-09 04:08:39',0,'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,'block_in_clir',1,1,1,0,0,'2012-12-09 04:08:14',0,'boolean',0,'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.'),(5,'block_out_mode',1,1,1,0,0,'2012-12-09 04:08:14',0,'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,'block_out_list',0,0,1,0,0,'2012-12-09 04:08:39',0,'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,'adm_block_in_mode',1,1,1,0,0,'2012-12-09 04:08:14',0,'boolean',0,'Same as \"block_in_mode\" but may only be set by administrators.'),(8,'adm_block_in_list',0,0,1,0,0,'2012-12-09 04:08:14',0,'string',0,'Same as \"block_in_list\" but may only be set by administrators and is applied prior to the user setting.'),(9,'adm_block_in_clir',1,1,1,0,0,'2012-12-09 04:08:14',0,'boolean',0,'Same as \"block_in_clir\" but may only be set by administrators and is applied prior to the user setting.'),(10,'adm_block_out_mode',1,1,1,0,0,'2012-12-09 04:08:14',0,'boolean',0,'Same as \"block_out_mode\" but may only be set by administrators.'),(11,'adm_block_out_list',0,0,1,0,0,'2012-12-09 04:08:14',0,'string',0,'Same as \"block_out_list\" but may only be set by administrators and is applied prior to the user setting.'),(12,'cfu',1,0,1,0,0,'2012-12-09 04:08:29',1,'int',1,'The id pointing to the \"Call Forward Unconditional\" entry in the voip_cf_mappings table'),(13,'cfb',1,0,1,0,0,'2012-12-09 04:08:29',1,'int',1,'The id pointing to the \"Call Forward Busy\" entry in the voip_cf_mappings table'),(14,'cfna',1,0,1,0,0,'2012-12-09 04:08:29',1,'int',1,'The id pointing to the \"Call Forward Unavailable\" entry in the voip_cf_mappings table'),(15,'cft',1,0,1,0,0,'2012-12-09 04:08:29',1,'int',1,'The id pointing to the \"Call Forward Timeout\" entry in the voip_cf_mappings table'),(16,'ringtimeout',1,1,1,0,0,'2012-12-09 04:08:14',0,'int',0,'Specifies how many seconds the system should wait before redirecting the call if \"cft\" is set.'),(17,'cli',0,1,1,0,0,'2012-12-09 04:08:39',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,'clir',1,1,1,0,0,'2012-12-09 04:08:14',0,'boolean',0,'\"Calling line identification restriction\" - if set to true, the CLI is not displayed on outgoing calls.'),(19,'cc',0,1,1,0,0,'2012-12-09 04:08:14',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,'ac',0,1,1,0,0,'2012-12-09 04:08:14',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,'emergency_prefix',0,1,1,0,0,'2012-12-09 04:08:31',0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(23,'ncos_id',1,1,1,0,0,'2012-12-09 04:08:14',1,'int',0,NULL),(24,'adm_ncos_id',1,1,1,0,0,'2012-12-09 04:08:14',1,'int',0,NULL),(29,'ncos',0,1,1,0,0,'2012-12-09 04:08:14',-1,'string',0,'Specifies the NCOS level that applies to the user.'),(30,'adm_ncos',0,1,1,0,0,'2012-12-09 04:08:14',-1,'string',0,'Same as \"ncos\", but may only be set by administrators and is applied prior to the user setting.'),(31,'block_out_override_pin',0,1,1,0,0,'2012-12-09 04:08:14',0,'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,'adm_block_out_override_pin',0,1,1,0,0,'2012-12-09 04:08:14',0,'string',0,'Same as \"block_out_override_pin\" but additionally disables the administrative block list and NCOS level.'),(33,'peer_auth_user',0,1,1,0,1,'2012-12-09 04:08:15',0,'string',0,'A username used for authentication against the peer host.'),(34,'peer_auth_pass',0,1,1,0,1,'2012-12-09 04:08:15',0,'string',0,'A password used for authentication against the peer host.'),(35,'unauth_inbound_calls',1,1,0,1,0,'2012-12-09 04:08:15',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,'peer_auth_realm',0,1,1,0,1,'2012-12-09 04:08:17',0,'string',0,'A realm (hostname) used to identify and for authentication against a peer host.'),(38,'always_use_rtpproxy',1,1,1,1,1,'2012-12-09 04:08:17',0,'boolean',0,'Force rtp relay for this peer/domain/user.'),(39,'never_use_rtpproxy',1,1,1,1,1,'2012-12-09 04:08:17',0,'boolean',0,'Do not use rtp relay for this peer/domain/user. Rtp will be relayed if other participants have always_use_rtpproxy preference enabled.'),(40,'peer_auth_register',1,1,1,1,1,'2012-12-09 04:08:17',0,'boolean',0,'Specifies whether registration at the peer host is desired.'),(41,'concurrent_max',1,1,1,1,1,'2012-12-09 04:08:17',0,'int',0,'Maximum number of concurrent sessions (calls) for a subscriber or peer.'),(42,'concurrent_max_out',1,1,1,1,1,'2012-12-09 04:08:17',0,'int',0,'Maximum number of concurrent outgoing sessions (calls) coming from a subscriber or going to a peer.'),(43,'allowed_clis',0,0,1,0,0,'2012-12-09 04:08:17',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.'),(44,'force_outbound_calls_to_peer',1,1,1,1,1,'2012-12-09 04:08:30',0,'boolean',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!'),(45,'account_id',1,1,1,0,0,'2012-12-09 04:08:19',1,'int',0,NULL),(46,'ext_contract_id',0,1,1,0,0,'2012-12-09 04:08:19',1,'string',0,NULL),(47,'ext_subscriber_id',0,1,1,0,0,'2012-12-09 04:08:19',1,'string',0,NULL),(48,'find_subscriber_by_uuid',1,1,0,0,1,'2012-12-09 04:08:35',0,'boolean',0,'For incoming calls from this peer, find the destination subscriber also using its auth_username used for outbound registration.'),(50,'rewrite_rule_set',1,1,1,1,1,'2012-12-09 04:08:20',-1,'int',0,'Specifies the list of caller and callee rewrite rules which should be applied for incoming and outgoing calls.'),(51,'rewrite_caller_in_dpid',1,1,1,1,1,'2012-12-09 04:08:20',1,'int',0,NULL),(52,'rewrite_callee_in_dpid',1,1,1,1,1,'2012-12-09 04:08:20',1,'int',0,NULL),(53,'rewrite_caller_out_dpid',1,1,1,1,1,'2012-12-09 04:08:20',1,'int',0,NULL),(54,'rewrite_callee_out_dpid',1,1,1,1,1,'2012-12-09 04:08:20',1,'int',0,NULL),(55,'e164_to_ruri',1,1,1,0,0,'2012-12-09 04:08:21',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,'user_cli',0,1,1,0,0,'2012-12-09 04:08:39',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,'prepaid',1,1,1,0,0,'2012-12-09 04:08:27',1,'boolean',0,NULL),(58,'always_use_ipv4_for_rtpproxy',1,1,1,1,1,'2012-12-09 04:08:28',0,'boolean',0,'Always force the IPv4 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv6_for_rtpproxy.'),(59,'always_use_ipv6_for_rtpproxy',1,1,1,1,1,'2012-12-09 04:08:28',0,'boolean',0,'Always force the IPv6 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv4_for_rtpproxy.'),(60,'force_inbound_calls_to_peer',1,1,1,1,0,'2012-12-09 04:08:29',0,'boolean',0,'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.'),(61,'emergency_suffix',0,1,1,0,0,'2012-12-09 04:08:31',0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(62,'sst_enable',0,1,1,1,1,'2012-12-09 04:08:32',0,'enum',0,'Enable SIP Session Timers.'),(63,'sst_expires',1,1,1,1,1,'2012-12-09 04:08:32',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,'sst_min_timer',1,1,1,1,1,'2012-12-09 04:08:32',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,'sst_max_timer',1,1,1,1,1,'2012-12-09 04:08:32',0,'int',0,'Sets upper limit on accepted Min-SE value in in SBC.'),(66,'sst_refresh_method',0,1,1,1,1,'2012-12-09 04:08:32',0,'enum',0,'SIP Session Timers refresh method.'),(67,'sound_set',1,1,1,1,0,'2012-12-09 04:08:33',0,'int',0,'Soundset'),(68,'reject_emergency',1,1,1,1,0,'2012-12-09 04:08:35',0,'boolean',0,'Reject emergency calls from this user or domain.'),(69,'emergency_cli',0,1,1,0,0,'2012-12-09 04:08:39',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,'outbound_socket',0,1,1,1,1,'0000-00-00 00:00:00',0,'enum',0,'Outbound socket to be used for SIP communication to this entity'),(71,'inbound_upn',0,1,1,1,1,'0000-00-00 00:00:00',0,'enum',0,'The SIP header field to fetch the user-provided-number from for inbound calls'),(72,'inbound_npn',0,1,0,0,1,'0000-00-00 00:00:00',0,'enum',0,'The SIP header field to fetch the network-provided-number from for inbound calls'),(73,'outbound_from_user',0,1,1,1,1,'2012-12-09 04:08:37',0,'enum',0,'The content to put into the From username for outbound calls from the platform to the subscriber'),(74,'outbound_from_display',0,1,1,1,1,'2012-12-09 04:08:37',0,'enum',0,'The content to put into the From display-name for outbound calls from the platform to the subscriber'),(75,'outbound_pai_user',0,1,1,1,1,'2012-12-09 04:08:37',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,'outbound_ppi_user',0,1,1,1,1,'2012-12-09 04:08:37',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,'mobile_push_enable',1,1,1,1,0,'2012-12-09 04:08:37',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,'extension_in_npn',1,1,1,1,0,'2012-12-09 04:08:38',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,'concurrent_max_per_account',1,1,1,1,0,'2012-12-09 04:08:39',0,'int',0,'Maximum number of concurrent sessions (calls) for subscribers within the same account'),(80,'concurrent_max_out_per_account',1,1,1,1,0,'2012-12-09 04:08:39',0,'int',0,'Maximum number of concurrent outgoing sessions (calls) for subscribers within the same account'),(82,'inbound_uprn',0,1,1,1,1,'0000-00-00 00:00:00',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.'),(83,'outbound_diversion',0,1,1,1,1,'0000-00-00 00:00:00',0,'enum',0,'The content to put into the Diversion header for outbound calls (use \"None\" to not set header at all)'),(84,'allowed_ips_grp',1,0,1,0,0,'2012-12-09 04:08:41',0,'string',0,'Group of addresses and/or IP nets allowed access.'),(85,'man_allowed_ips_grp',1,0,1,0,0,'2012-12-09 04:08:41',0,'string',0,'Group of addresses and/or IP nets allowed access.'),(86,'allowed_ips',1,0,1,0,0,'2012-12-09 04:08:41',0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(87,'man_allowed_ips',1,0,1,0,0,'2012-12-09 04:08:41',0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(88,'ignore_allowed_ips',1,1,1,0,0,'2012-12-09 04:08:41',0,'boolean',0,'Ignore preferences \"allowed_ips\" and \"man_allowed_ips\".'),(89,'no_nat_sipping',1,1,1,1,0,'2012-12-09 04:08:42',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)'),(90,'ip_header',0,1,1,1,1,'2012-12-09 04:08:43',0,'string',0,'The SIP header to take the IP address for logging it into CDRs.');
/*!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;
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;
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',
`dom_pref` tinyint(1) DEFAULT '0',
`peer_pref` tinyint(1) DEFAULT '0',
`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=118 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,NULL),(9,62,'no','no',1,0,0,NULL),(10,62,'no','no',0,1,0,1),(11,62,'no','no',0,0,1,1),(12,62,'yes','yes',1,1,1,NULL),(13,66,'use domain default',NULL,1,0,0,NULL),(14,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',1,0,0,NULL),(15,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',0,1,0,1),(16,66,'UPDATE_FALLBACK_INVITE','UPDATE_FALLBACK_INVITE',0,0,1,1),(17,66,'UPDATE','UPDATE',1,1,1,NULL),(18,66,'INVITE','INVITE',1,1,1,NULL),(19,70,'default',NULL,1,1,1,1),(20,71,'From-Username',NULL,0,1,1,1),(21,71,'From-Displayname','from_display',1,1,1,0),(22,71,'P-Asserted-Identity','pai_user',1,1,1,0),(23,71,'P-Preferred-Identity','ppi_user',1,1,1,0),(24,71,'Remote-Party-ID','rpid_user',1,1,1,0),(27,72,'From-Username',NULL,0,0,1,1),(28,72,'From-Displayname','from_display',0,0,1,0),(29,72,'P-Asserted-Identity','pai_user',0,0,1,0),(30,72,'P-Preferred-Identity','ppi_user',0,0,1,0),(31,72,'Remote-Party-ID','rpid_user',0,0,1,0),(34,73,'Network-Provided-Number','npn',1,1,1,0),(35,73,'User-Provided-Number','upn',0,1,1,1),(36,73,'Authentication-User','auth_user',1,1,1,0),(37,73,'Received Display-name','rcv_display',1,1,1,0),(41,74,'None',NULL,0,1,1,1),(42,74,'Network-Provided-Number','npn',1,1,1,0),(43,74,'User-Provided-Number','upn',1,1,1,0),(44,74,'Authentication-User','auth_user',1,1,1,0),(45,74,'Received Display-name','rcv_display',1,1,1,0),(48,75,'None',NULL,0,1,1,0),(49,75,'Network-Provided-Number','npn',0,1,1,1),(50,75,'User-Provided-Number','upn',1,1,1,0),(51,75,'Authentication-User','auth_user',1,1,1,0),(52,75,'Received Display-name','rcv_display',1,1,1,0),(55,76,'None',NULL,0,1,1,1),(56,76,'Network-Provided-Number','npn',1,1,1,0),(57,76,'User-Provided-Number','upn',1,1,1,0),(58,76,'Authentication-User','auth_user',1,1,1,0),(59,76,'Received Display-name','rcv_display',1,1,1,0),(62,71,'use domain default',NULL,1,0,0,0),(63,71,'From-Username','from_user',1,0,0,0),(65,73,'use domain default',NULL,1,0,0,0),(68,74,'use domain default',NULL,1,0,0,0),(69,74,'None','none',1,0,0,0),(71,75,'use domain default',NULL,1,0,0,0),(72,75,'None','none',1,0,0,0),(74,76,'use domain default',NULL,1,0,0,0),(75,76,'None','none',1,0,0,0),(77,75,'Network-Provided-Number ','npn',1,0,0,0),(78,73,'User-Provided-Number','upn',1,0,0,0),(79,82,'None','none',1,1,1,0),(80,82,'Forwarder\'s NPN',NULL,0,1,0,1),(81,82,'Forwarder\'s NPN','npn',1,0,0,0),(82,82,'use domain default',NULL,1,0,0,0),(83,82,'Forwarder\'s NPN / Received Diversion','npn_diversion',1,1,0,0),(84,82,'Received Diversion','diversion',1,1,1,0),(86,83,'None',NULL,0,1,1,1),(87,83,'None','none',1,0,0,0),(88,83,'use domain default',NULL,1,0,0,0),(89,83,'UPRN','uprn',1,1,1,0),(93,73,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(94,73,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(95,73,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(96,73,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(100,74,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(101,74,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(102,74,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(103,74,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(107,75,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(108,75,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(109,75,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(110,75,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(114,76,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(115,76,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(116,76,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(117,76,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0);
/*!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;
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;
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,
`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`)
) 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;
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;
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;
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;
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 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',
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;
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 */;;
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;
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;
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_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,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 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'),(2,'block_out'),(3,'block_ncos'),(4,'block_override_pin_wrong'),(5,'locked_in'),(6,'locked_out'),(7,'max_calls_in'),(8,'max_calls_out'),(9,'max_calls_peer'),(10,'unauth_caller_ip'),(11,'relaying_denied'),(12,'invalid_speeddial'),(13,'cf_loop'),(14,'callee_offline'),(15,'callee_busy'),(16,'callee_unknown'),(17,'callee_tmp_unavailable'),(18,'peering_unavailable'),(19,'voicebox_unavailable'),(20,'music_on_hold'),(21,'emergency_unsupported'),(22,'no_credit'),(23,'and'),(24,'busy_ringback_tone'),(25,'calling_card_not_found'),(26,'connecting'),(27,'could_not_connect'),(28,'credits_successfully_transfered'),(29,'declined_ringback_tone'),(30,'dollar'),(31,'enter_callingcard_number_to_transfer'),(32,'enter_callingcard_number'),(33,'enter_destination_number'),(34,'error_please_try_later'),(35,'euro_cents'),(36,'euro_unit');
/*!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,
`name` varchar(256) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) 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_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,
`autoconf_displayname` varchar(255) DEFAULT NULL,
`autoconf_group_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','999b348d364077656050227d6e17c4ef',0,NULL,NULL,NULL,NULL,NULL,'2012-12-09 04:08:21','0000-00-00 00:00:00'),(4,'nagios',2,'ac1697cf-6933-45ef-9abf-b1278054ded0','nagios4Sipwise!',0,NULL,NULL,NULL,NULL,NULL,'2012-12-09 04:08:21','0000-00-00 00: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;
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 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 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_attributeid_ref` FOREIGN KEY (`attribute_id`) REFERENCES `voip_preferences` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `v_u_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_usr_preferences` WRITE;
/*!40000 ALTER TABLE `voip_usr_preferences` DISABLE KEYS */;
/*!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=7 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');
/*!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=5 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);
/*!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=5 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');
/*!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 (1355026722) 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 `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 */;