From 92accbd4a59a59bd05f9be724a11d5d25aab30be Mon Sep 17 00:00:00 2001 From: Jenkins Git User Date: Tue, 27 Aug 2013 06:17:33 +0200 Subject: [PATCH] db-schema dump: snapshot 2013-08-27 06:17:32 +0200 --- schema/dump.db | 512 ++++++++++++++++++++++++------------------------- 1 file changed, 256 insertions(+), 256 deletions(-) diff --git a/schema/dump.db b/schema/dump.db index 8fbd5d40..2935e538 100644 --- a/schema/dump.db +++ b/schema/dump.db @@ -302,7 +302,7 @@ DELIMITER ;; 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; + 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, @@ -330,7 +330,7 @@ DELIMITER ;; 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; + 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, @@ -342,7 +342,7 @@ DELIMITER ;; 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; + WHERE bf_id <=> OLD.id; END */;; DELIMITER ; @@ -539,7 +539,7 @@ DELIMITER ;; 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; + WHERE bz_id <=> OLD.id; END */;; DELIMITER ; @@ -597,7 +597,7 @@ CREATE TABLE `contacts` ( LOCK TABLES `contacts` WRITE; /*!40000 ALTER TABLE `contacts` DISABLE KEYS */; -INSERT INTO `contacts` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-customer@default.invalid',0,'2013-08-26 09:03:15','0000-00-00 00:00:00',NULL); +INSERT INTO `contacts` VALUES (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'default-customer@default.invalid',0,'2013-08-27 04:14:59','0000-00-00 00:00:00',NULL); /*!40000 ALTER TABLE `contacts` ENABLE KEYS */; UNLOCK TABLES; DROP TABLE IF EXISTS `contract_balances`; @@ -714,7 +714,7 @@ CREATE TABLE `contracts` ( LOCK TABLES `contracts` WRITE; /*!40000 ALTER TABLE `contracts` DISABLE KEYS */; -INSERT INTO `contracts` VALUES (1,NULL,1,NULL,'active',NULL,'2013-08-26 09:03:15','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL); +INSERT INTO `contracts` VALUES (1,NULL,1,NULL,'active',NULL,'2013-08-27 04:14:59','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`; @@ -1650,12 +1650,12 @@ CREATE TABLE `dom_preferences` ( PRIMARY KEY (`id`), KEY `ua_idx` (`uuid`,`attribute`), KEY `uda_idx` (`username`,`domain`,`attribute`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; LOCK TABLES `dom_preferences` WRITE; /*!40000 ALTER TABLE `dom_preferences` DISABLE KEYS */; -INSERT INTO `dom_preferences` VALUES (1,'','0','voip.sipwise.local','sst_enable',0,'no','1900-01-01 00:00:01'),(2,'','0','voip.sipwise.local','sst_refresh_method',0,'UPDATE_FALLBACK_INVITE','1900-01-01 00:00:01'),(3,'','0','voip.sipwise.local','use_rtpproxy',0,'ice_strip_candidates','1900-01-01 00:00:01'),(4,'','0','voip.sipwise.local','srtp_transcoding',0,'transparent','1900-01-01 00:00:01'),(5,'','0','voip.sipwise.local','rtcp_feedback',0,'transparent','1900-01-01 00:00:01'); +INSERT INTO `dom_preferences` VALUES (1,'','0','voip.sipwise.local','sst_enable',0,'no','1900-01-01 00:00:01'),(2,'','0','voip.sipwise.local','sst_refresh_method',0,'UPDATE_FALLBACK_INVITE','1900-01-01 00:00:01'),(3,'','0','voip.sipwise.local','use_rtpproxy',0,'ice_strip_candidates','1900-01-01 00:00:01'),(4,'','0','voip.sipwise.local','srtp_transcoding',0,'transparent','1900-01-01 00:00:01'),(5,'','0','voip.sipwise.local','rtcp_feedback',0,'transparent','1900-01-01 00:00:01'),(6,'','0','voip.sipwise.local','ua_header_mode',0,'strip','1900-01-01 00:00:01'); /*!40000 ALTER TABLE `dom_preferences` ENABLE KEYS */; UNLOCK TABLES; DROP TABLE IF EXISTS `domain`; @@ -2191,7 +2191,7 @@ CREATE TABLE `subscriber` ( LOCK TABLES `subscriber` WRITE; /*!40000 ALTER TABLE `subscriber` DISABLE KEYS */; -INSERT INTO `subscriber` VALUES (1,'no_such_number','voip.sipwise.local','94ed8cf233963ec364135ccf5a42caf0','','d1011a599757d6739b52bf36f9f07d83','a86ebf443a723fa715684e4029837634',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'); +INSERT INTO `subscriber` VALUES (1,'no_such_number','voip.sipwise.local','d6dec4141c820d92f2696c09659824b1','','c7b486ec75fed51622c43772cda3f88b','550fee8d79fc9fefdbf12731507d0d2a',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`; @@ -2522,7 +2522,7 @@ CREATE TABLE `cfg_schema` ( LOCK TABLES `cfg_schema` WRITE; /*!40000 ALTER TABLE `cfg_schema` DISABLE KEYS */; -INSERT INTO `cfg_schema` VALUES (1,1,'','2013-08-26 09:03:17'),(2,2,'','2013-08-26 09:03:18'),(3,8374,'spce','2013-08-26 09:03:18'),(4,8411,'spce','2013-08-26 09:03:18'),(5,8615,'spce','2013-08-26 09:03:18'),(6,8708,'spce','2013-08-26 09:03:19'),(7,8871,'spce','2013-08-26 09:03:19'),(8,8873,'spce','2013-08-26 09:03:19'),(9,8886,'spce','2013-08-26 09:03:19'),(10,9084,'spce','2013-08-26 09:03:20'),(11,9119,'spce','2013-08-26 09:03:20'),(12,9259,'spce','2013-08-26 09:03:20'),(13,9562,'spce','2013-08-26 09:03:20'),(14,9564,'spce','2013-08-26 09:03:21'),(15,9658,'spce','2013-08-26 09:03:21'),(16,10088,'spce','2013-08-26 09:03:21'),(17,10226,'spce','2013-08-26 09:03:21'),(18,10233,'spce','2013-08-26 09:03:22'),(19,10432,'spce','2013-08-26 09:03:22'),(20,10443,'spce','2013-08-26 09:03:22'),(21,10472,'spce','2013-08-26 09:03:23'),(22,10534,'spce','2013-08-26 09:03:23'),(23,10699,'spce','2013-08-26 09:03:23'),(24,10700,'spce','2013-08-26 09:03:23'),(25,11260,'spce','2013-08-26 09:03:24'),(26,11263,'spce','2013-08-26 09:03:24'),(27,11372,'spce','2013-08-26 09:03:24'),(28,12029,'spce','2013-08-26 09:03:24'),(29,12037,'spce','2013-08-26 09:03:25'),(30,12091,'spce','2013-08-26 09:03:25'),(31,12134,'spce','2013-08-26 09:03:25'),(32,12395,'spce','2013-08-26 09:03:25'),(33,12419,'spce','2013-08-26 09:03:26'),(34,12599,'spce','2013-08-26 09:03:26'),(35,12623,'spce','2013-08-26 09:03:26'),(36,12664,'spce','2013-08-26 09:03:26'),(37,12692,'spce','2013-08-26 09:03:27'),(38,12815,'spce','2013-08-26 09:03:27'),(39,12915,'spce','2013-08-26 09:03:27'),(40,13214,'spce','2013-08-26 09:03:27'),(41,13293,'spce','2013-08-26 09:03:28'),(42,13659,'spce','2013-08-26 09:03:28'),(43,15000,'spce','2013-08-26 09:03:28'),(44,15002,'spce','2013-08-26 09:03:29'),(45,15003,'spce','2013-08-26 09:03:29'),(46,15004,'spce','2013-08-26 09:03:29'),(47,15005,'spce','2013-08-26 09:03:29'),(48,15007,'spce','2013-08-26 09:03:30'),(49,8874,'spce','2013-08-26 09:03:30'),(50,9830,'spce','2013-08-26 09:03:30'),(51,10468,'spce','2013-08-26 09:03:30'),(52,11316,'spce','2013-08-26 09:03:31'),(53,11814,'spce','2013-08-26 09:03:31'),(54,12385,'spce','2013-08-26 09:03:31'),(55,13287,'spce','2013-08-26 09:03:31'),(56,13614,'spce','2013-08-26 09:03:32'),(57,13809,'spce','2013-08-26 09:03:32'),(58,11379,'spce','2013-08-26 09:03:32'),(59,11380,'spce','2013-08-26 09:03:32'),(60,11395,'spce','2013-08-26 09:03:33'); +INSERT INTO `cfg_schema` VALUES (1,1,'','2013-08-27 04:15:03'),(2,2,'','2013-08-27 04:15:03'),(3,8374,'spce','2013-08-27 04:15:03'),(4,8411,'spce','2013-08-27 04:15:03'),(5,8615,'spce','2013-08-27 04:15:04'),(6,8708,'spce','2013-08-27 04:15:04'),(7,8871,'spce','2013-08-27 04:15:04'),(8,8873,'spce','2013-08-27 04:15:04'),(9,8886,'spce','2013-08-27 04:15:05'),(10,9084,'spce','2013-08-27 04:15:05'),(11,9119,'spce','2013-08-27 04:15:05'),(12,9259,'spce','2013-08-27 04:15:05'),(13,9562,'spce','2013-08-27 04:15:06'),(14,9564,'spce','2013-08-27 04:15:06'),(15,9658,'spce','2013-08-27 04:15:06'),(16,10088,'spce','2013-08-27 04:15:07'),(17,10226,'spce','2013-08-27 04:15:07'),(18,10233,'spce','2013-08-27 04:15:07'),(19,10432,'spce','2013-08-27 04:15:07'),(20,10443,'spce','2013-08-27 04:15:08'),(21,10472,'spce','2013-08-27 04:15:08'),(22,10534,'spce','2013-08-27 04:15:08'),(23,10699,'spce','2013-08-27 04:15:08'),(24,10700,'spce','2013-08-27 04:15:09'),(25,11260,'spce','2013-08-27 04:15:09'),(26,11263,'spce','2013-08-27 04:15:09'),(27,11372,'spce','2013-08-27 04:15:09'),(28,12029,'spce','2013-08-27 04:15:10'),(29,12037,'spce','2013-08-27 04:15:10'),(30,12091,'spce','2013-08-27 04:15:10'),(31,12134,'spce','2013-08-27 04:15:11'),(32,12395,'spce','2013-08-27 04:15:11'),(33,12419,'spce','2013-08-27 04:15:11'),(34,12599,'spce','2013-08-27 04:15:11'),(35,12623,'spce','2013-08-27 04:15:12'),(36,12664,'spce','2013-08-27 04:15:12'),(37,12692,'spce','2013-08-27 04:15:12'),(38,12815,'spce','2013-08-27 04:15:12'),(39,12915,'spce','2013-08-27 04:15:13'),(40,13214,'spce','2013-08-27 04:15:13'),(41,13293,'spce','2013-08-27 04:15:13'),(42,13659,'spce','2013-08-27 04:15:13'),(43,15000,'spce','2013-08-27 04:15:14'),(44,15002,'spce','2013-08-27 04:15:14'),(45,15003,'spce','2013-08-27 04:15:14'),(46,15004,'spce','2013-08-27 04:15:14'),(47,15005,'spce','2013-08-27 04:15:15'),(48,15007,'spce','2013-08-27 04:15:15'),(49,8874,'spce','2013-08-27 04:15:15'),(50,9830,'spce','2013-08-27 04:15:15'),(51,10468,'spce','2013-08-27 04:15:16'),(52,11316,'spce','2013-08-27 04:15:16'),(53,11814,'spce','2013-08-27 04:15:16'),(54,12385,'spce','2013-08-27 04:15:16'),(55,13287,'spce','2013-08-27 04:15:17'),(56,13614,'spce','2013-08-27 04:15:17'),(57,13809,'spce','2013-08-27 04:15:17'),(58,11379,'spce','2013-08-27 04:15:17'),(59,11380,'spce','2013-08-27 04:15:18'),(60,11395,'spce','2013-08-27 04:15:18'); /*!40000 ALTER TABLE `cfg_schema` ENABLE KEYS */; UNLOCK TABLES; DROP TABLE IF EXISTS `db_schema`; @@ -2535,12 +2535,12 @@ CREATE TABLE `db_schema` ( `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=220 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=222 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','2013-08-26 09:02:13'),(2,20,'spce','2013-08-26 09:02:14'),(3,30,'spce','2013-08-26 09:02:14'),(4,40,'spce','2013-08-26 09:02:15'),(5,50,'spce','2013-08-26 09:02:15'),(6,60,'spce','2013-08-26 09:02:15'),(7,70,'spce','2013-08-26 09:02:15'),(8,80,'spce','2013-08-26 09:02:16'),(9,3972,'spce','2013-08-26 09:02:16'),(10,3975,'spce','2013-08-26 09:02:16'),(11,4026,'spce','2013-08-26 09:02:16'),(12,4042,'spce','2013-08-26 09:02:17'),(13,4063,'spce','2013-08-26 09:02:17'),(14,4085,'spce','2013-08-26 09:02:17'),(15,4095,'spce','2013-08-26 09:02:18'),(16,4112,'spce','2013-08-26 09:02:18'),(17,4145,'spce','2013-08-26 09:02:18'),(18,4496,'spce','2013-08-26 09:02:18'),(19,4665,'spce','2013-08-26 09:02:19'),(20,4668,'spce','2013-08-26 09:02:19'),(21,4701,'spce','2013-08-26 09:02:19'),(22,4711,'spce','2013-08-26 09:02:19'),(23,4712,'spce','2013-08-26 09:02:20'),(24,4717,'spce','2013-08-26 09:02:20'),(25,4735,'spce','2013-08-26 09:02:20'),(26,4762,'spce','2013-08-26 09:02:21'),(27,4832,'spce','2013-08-26 09:02:21'),(28,4875,'spce','2013-08-26 09:02:21'),(29,4968,'spce','2013-08-26 09:02:21'),(30,4984,'spce','2013-08-26 09:02:22'),(31,5000,'spce','2013-08-26 09:02:22'),(32,5249,'spce','2013-08-26 09:02:22'),(33,5283,'spce','2013-08-26 09:02:22'),(34,5300,'spce','2013-08-26 09:02:23'),(35,5347,'spce','2013-08-26 09:02:23'),(36,5471,'spce','2013-08-26 09:02:23'),(37,5472,'spce','2013-08-26 09:02:24'),(38,5538,'spce','2013-08-26 09:02:24'),(39,5543,'spce','2013-08-26 09:02:24'),(40,5553,'spce','2013-08-26 09:02:25'),(41,5603,'spce','2013-08-26 09:02:25'),(42,5604,'spce','2013-08-26 09:02:25'),(43,5607,'spce','2013-08-26 09:02:25'),(44,5670,'spce','2013-08-26 09:02:26'),(45,5708,'spce','2013-08-26 09:02:26'),(46,5709,'spce','2013-08-26 09:02:26'),(47,5722,'spce','2013-08-26 09:02:27'),(48,5726,'spce','2013-08-26 09:02:27'),(49,5728,'spce','2013-08-26 09:02:27'),(50,5737,'spce','2013-08-26 09:02:27'),(51,5744,'spce','2013-08-26 09:02:28'),(52,5749,'spce','2013-08-26 09:02:28'),(53,5800,'spce','2013-08-26 09:02:28'),(54,5824,'spce','2013-08-26 09:02:29'),(55,5826,'spce','2013-08-26 09:02:29'),(56,5831,'spce','2013-08-26 09:02:29'),(57,5833,'spce','2013-08-26 09:02:29'),(58,5843,'spce','2013-08-26 09:02:30'),(59,5973,'spce','2013-08-26 09:02:30'),(60,6254,'spce','2013-08-26 09:02:30'),(61,6346,'spce','2013-08-26 09:02:30'),(62,6424,'spce','2013-08-26 09:02:31'),(63,6425,'spce','2013-08-26 09:02:34'),(64,6435,'spce','2013-08-26 09:02:34'),(65,6436,'spce','2013-08-26 09:02:35'),(66,6459,'spce','2013-08-26 09:02:35'),(67,6465,'spce','2013-08-26 09:02:35'),(68,6551,'spce','2013-08-26 09:02:35'),(69,6560,'spce','2013-08-26 09:02:36'),(70,6568,'spce','2013-08-26 09:02:36'),(71,6619,'spce','2013-08-26 09:02:36'),(72,6624,'spce','2013-08-26 09:02:36'),(73,6643,'spce','2013-08-26 09:02:37'),(74,6712,'spce','2013-08-26 09:02:37'),(75,6746,'spce','2013-08-26 09:02:37'),(76,7006,'spce','2013-08-26 09:02:38'),(77,7036,'spce','2013-08-26 09:02:38'),(78,7065,'spce','2013-08-26 09:02:38'),(79,7095,'spce','2013-08-26 09:02:38'),(80,7209,'spce','2013-08-26 09:02:39'),(81,7252,'spce','2013-08-26 09:02:39'),(82,7259,'spce','2013-08-26 09:02:39'),(83,7260,'spce','2013-08-26 09:02:39'),(84,7485,'spce','2013-08-26 09:02:40'),(85,7493,'spce','2013-08-26 09:02:40'),(86,7496,'spce','2013-08-26 09:02:40'),(87,7500,'spce','2013-08-26 09:02:40'),(88,7644,'spce','2013-08-26 09:02:41'),(89,7647,'spce','2013-08-26 09:02:41'),(90,7655,'spce','2013-08-26 09:02:41'),(91,7656,'spce','2013-08-26 09:02:41'),(92,7764,'spce','2013-08-26 09:02:42'),(93,7937,'spce','2013-08-26 09:02:42'),(94,7991,'spce','2013-08-26 09:02:42'),(95,8169,'spce','2013-08-26 09:02:43'),(96,8293,'spce','2013-08-26 09:02:43'),(97,8378,'spce','2013-08-26 09:02:43'),(98,8408,'spce','2013-08-26 09:02:43'),(99,8461,'spce','2013-08-26 09:02:44'),(100,8466,'spce','2013-08-26 09:02:44'),(101,8467,'spce','2013-08-26 09:02:44'),(102,8629,'spce','2013-08-26 09:02:44'),(103,8704,'spce','2013-08-26 09:02:45'),(104,8846,'spce','2013-08-26 09:02:45'),(105,8878,'spce','2013-08-26 09:02:45'),(106,8997,'spce','2013-08-26 09:02:46'),(107,9069,'spce','2013-08-26 09:02:46'),(108,9086,'spce','2013-08-26 09:02:46'),(109,9106,'spce','2013-08-26 09:02:46'),(110,9114,'spce','2013-08-26 09:02:47'),(111,9119,'spce','2013-08-26 09:02:47'),(112,9150,'spce','2013-08-26 09:02:47'),(113,9154,'spce','2013-08-26 09:02:47'),(114,9159,'spce','2013-08-26 09:02:48'),(115,9166,'spce','2013-08-26 09:02:48'),(116,9187,'spce','2013-08-26 09:02:48'),(117,9188,'spce','2013-08-26 09:02:48'),(118,9204,'spce','2013-08-26 09:02:49'),(119,9205,'spce','2013-08-26 09:02:50'),(120,9221,'spce','2013-08-26 09:02:50'),(121,9222,'spce','2013-08-26 09:02:50'),(122,9228,'spce','2013-08-26 09:02:51'),(123,9249,'spce','2013-08-26 09:02:51'),(124,9256,'spce','2013-08-26 09:02:51'),(125,9303,'spce','2013-08-26 09:02:51'),(126,9312,'spce','2013-08-26 09:02:52'),(127,9458,'spce','2013-08-26 09:02:52'),(128,9625,'spce','2013-08-26 09:02:52'),(129,9630,'spce','2013-08-26 09:02:53'),(130,9665,'spce','2013-08-26 09:02:53'),(131,9675,'spce','2013-08-26 09:02:53'),(132,9702,'spce','2013-08-26 09:02:53'),(133,9703,'spce','2013-08-26 09:02:54'),(134,9723,'spce','2013-08-26 09:02:54'),(135,9733,'spce','2013-08-26 09:02:54'),(136,9791,'spce','2013-08-26 09:02:54'),(137,9868,'spce','2013-08-26 09:02:55'),(138,10180,'spce','2013-08-26 09:02:55'),(139,10203,'spce','2013-08-26 09:02:55'),(140,10210,'spce','2013-08-26 09:02:56'),(141,10268,'spce','2013-08-26 09:02:56'),(142,10272,'spce','2013-08-26 09:02:56'),(143,10287,'spce','2013-08-26 09:02:56'),(144,10290,'spce','2013-08-26 09:02:57'),(145,10331,'spce','2013-08-26 09:02:57'),(146,10332,'spce','2013-08-26 09:02:57'),(147,10423,'spce','2013-08-26 09:02:57'),(148,10538,'spce','2013-08-26 09:02:58'),(149,10639,'spce','2013-08-26 09:02:58'),(150,10728,'spce','2013-08-26 09:02:58'),(151,10860,'spce','2013-08-26 09:02:58'),(152,10877,'spce','2013-08-26 09:02:59'),(153,10890,'spce','2013-08-26 09:02:59'),(154,10934,'spce','2013-08-26 09:02:59'),(155,10950,'spce','2013-08-26 09:02:59'),(156,10951,'spce','2013-08-26 09:03:00'),(157,11039,'spce','2013-08-26 09:03:00'),(158,11062,'spce','2013-08-26 09:03:00'),(159,11188,'spce','2013-08-26 09:03:00'),(160,11245,'spce','2013-08-26 09:03:01'),(161,11318,'spce','2013-08-26 09:03:01'),(162,11350,'spce','2013-08-26 09:03:01'),(163,11379,'spce','2013-08-26 09:03:01'),(164,11565,'spce','2013-08-26 09:03:02'),(165,11581,'spce','2013-08-26 09:03:02'),(166,11603,'spce','2013-08-26 09:03:02'),(167,11722,'spce','2013-08-26 09:03:03'),(168,11729,'spce','2013-08-26 09:03:03'),(169,11812,'spce','2013-08-26 09:03:03'),(170,11817,'spce','2013-08-26 09:03:03'),(171,11818,'spce','2013-08-26 09:03:04'),(172,11819,'spce','2013-08-26 09:03:04'),(173,12002,'spce','2013-08-26 09:03:04'),(174,12061,'spce','2013-08-26 09:03:04'),(175,12062,'spce','2013-08-26 09:03:05'),(176,12117,'spce','2013-08-26 09:03:05'),(177,12144,'spce','2013-08-26 09:03:05'),(178,12162,'spce','2013-08-26 09:03:06'),(179,12279,'spce','2013-08-26 09:03:06'),(180,12649,'spce','2013-08-26 09:03:06'),(181,12693,'spce','2013-08-26 09:03:07'),(182,12765,'spce','2013-08-26 09:03:07'),(183,13041,'spce','2013-08-26 09:03:07'),(184,13042,'spce','2013-08-26 09:03:08'),(185,13117,'spce','2013-08-26 09:03:08'),(186,13125,'spce','2013-08-26 09:03:08'),(187,13126,'spce','2013-08-26 09:03:08'),(188,13127,'spce','2013-08-26 09:03:09'),(189,13140,'spce','2013-08-26 09:03:09'),(190,13216,'spce','2013-08-26 09:03:09'),(191,13219,'spce','2013-08-26 09:03:09'),(192,13225,'spce','2013-08-26 09:03:10'),(193,13226,'spce','2013-08-26 09:03:10'),(194,13288,'spce','2013-08-26 09:03:10'),(195,13393,'spce','2013-08-26 09:03:10'),(196,13447,'spce','2013-08-26 09:03:11'),(197,13449,'spce','2013-08-26 09:03:11'),(198,13474,'spce','2013-08-26 09:03:11'),(199,13475,'spce','2013-08-26 09:03:11'),(200,13519,'spce','2013-08-26 09:03:12'),(201,13658,'spce','2013-08-26 09:03:12'),(202,13659,'spce','2013-08-26 09:03:13'),(203,13829,'spce','2013-08-26 09:03:13'),(204,13830,'spce','2013-08-26 09:03:13'),(205,13831,'spce','2013-08-26 09:03:13'),(206,13833,'spce','2013-08-26 09:03:14'),(207,13834,'spce','2013-08-26 09:03:14'),(208,13835,'spce','2013-08-26 09:03:14'),(209,13836,'spce','2013-08-26 09:03:14'),(210,13837,'spce','2013-08-26 09:03:15'),(211,13838,'spce','2013-08-26 09:03:15'),(212,13839,'spce','2013-08-26 09:03:15'),(213,13840,'spce','2013-08-26 09:03:16'),(214,13841,'spce','2013-08-26 09:03:16'),(215,15000,'spce','2013-08-26 09:03:16'),(216,15001,'spce','2013-08-26 09:03:16'),(217,15002,'spce','2013-08-26 09:03:17'),(218,15003,'spce','2013-08-26 09:03:17'),(219,15004,'spce','2013-08-26 09:03:17'); +INSERT INTO `db_schema` VALUES (1,10,'spce','2013-08-27 04:13:58'),(2,20,'spce','2013-08-27 04:13:58'),(3,30,'spce','2013-08-27 04:13:59'),(4,40,'spce','2013-08-27 04:13:59'),(5,50,'spce','2013-08-27 04:14:00'),(6,60,'spce','2013-08-27 04:14:00'),(7,70,'spce','2013-08-27 04:14:00'),(8,80,'spce','2013-08-27 04:14:00'),(9,3972,'spce','2013-08-27 04:14:01'),(10,3975,'spce','2013-08-27 04:14:01'),(11,4026,'spce','2013-08-27 04:14:01'),(12,4042,'spce','2013-08-27 04:14:02'),(13,4063,'spce','2013-08-27 04:14:02'),(14,4085,'spce','2013-08-27 04:14:02'),(15,4095,'spce','2013-08-27 04:14:02'),(16,4112,'spce','2013-08-27 04:14:03'),(17,4145,'spce','2013-08-27 04:14:03'),(18,4496,'spce','2013-08-27 04:14:03'),(19,4665,'spce','2013-08-27 04:14:03'),(20,4668,'spce','2013-08-27 04:14:04'),(21,4701,'spce','2013-08-27 04:14:04'),(22,4711,'spce','2013-08-27 04:14:04'),(23,4712,'spce','2013-08-27 04:14:05'),(24,4717,'spce','2013-08-27 04:14:05'),(25,4735,'spce','2013-08-27 04:14:05'),(26,4762,'spce','2013-08-27 04:14:05'),(27,4832,'spce','2013-08-27 04:14:06'),(28,4875,'spce','2013-08-27 04:14:06'),(29,4968,'spce','2013-08-27 04:14:06'),(30,4984,'spce','2013-08-27 04:14:06'),(31,5000,'spce','2013-08-27 04:14:07'),(32,5249,'spce','2013-08-27 04:14:07'),(33,5283,'spce','2013-08-27 04:14:07'),(34,5300,'spce','2013-08-27 04:14:08'),(35,5347,'spce','2013-08-27 04:14:08'),(36,5471,'spce','2013-08-27 04:14:08'),(37,5472,'spce','2013-08-27 04:14:08'),(38,5538,'spce','2013-08-27 04:14:09'),(39,5543,'spce','2013-08-27 04:14:09'),(40,5553,'spce','2013-08-27 04:14:09'),(41,5603,'spce','2013-08-27 04:14:10'),(42,5604,'spce','2013-08-27 04:14:10'),(43,5607,'spce','2013-08-27 04:14:10'),(44,5670,'spce','2013-08-27 04:14:10'),(45,5708,'spce','2013-08-27 04:14:11'),(46,5709,'spce','2013-08-27 04:14:11'),(47,5722,'spce','2013-08-27 04:14:11'),(48,5726,'spce','2013-08-27 04:14:12'),(49,5728,'spce','2013-08-27 04:14:12'),(50,5737,'spce','2013-08-27 04:14:12'),(51,5744,'spce','2013-08-27 04:14:12'),(52,5749,'spce','2013-08-27 04:14:13'),(53,5800,'spce','2013-08-27 04:14:13'),(54,5824,'spce','2013-08-27 04:14:13'),(55,5826,'spce','2013-08-27 04:14:14'),(56,5831,'spce','2013-08-27 04:14:14'),(57,5833,'spce','2013-08-27 04:14:14'),(58,5843,'spce','2013-08-27 04:14:14'),(59,5973,'spce','2013-08-27 04:14:15'),(60,6254,'spce','2013-08-27 04:14:15'),(61,6346,'spce','2013-08-27 04:14:15'),(62,6424,'spce','2013-08-27 04:14:16'),(63,6425,'spce','2013-08-27 04:14:19'),(64,6435,'spce','2013-08-27 04:14:19'),(65,6436,'spce','2013-08-27 04:14:19'),(66,6459,'spce','2013-08-27 04:14:19'),(67,6465,'spce','2013-08-27 04:14:20'),(68,6551,'spce','2013-08-27 04:14:20'),(69,6560,'spce','2013-08-27 04:14:20'),(70,6568,'spce','2013-08-27 04:14:20'),(71,6619,'spce','2013-08-27 04:14:21'),(72,6624,'spce','2013-08-27 04:14:21'),(73,6643,'spce','2013-08-27 04:14:21'),(74,6712,'spce','2013-08-27 04:14:22'),(75,6746,'spce','2013-08-27 04:14:22'),(76,7006,'spce','2013-08-27 04:14:22'),(77,7036,'spce','2013-08-27 04:14:22'),(78,7065,'spce','2013-08-27 04:14:23'),(79,7095,'spce','2013-08-27 04:14:23'),(80,7209,'spce','2013-08-27 04:14:23'),(81,7252,'spce','2013-08-27 04:14:23'),(82,7259,'spce','2013-08-27 04:14:24'),(83,7260,'spce','2013-08-27 04:14:24'),(84,7485,'spce','2013-08-27 04:14:24'),(85,7493,'spce','2013-08-27 04:14:24'),(86,7496,'spce','2013-08-27 04:14:25'),(87,7500,'spce','2013-08-27 04:14:25'),(88,7644,'spce','2013-08-27 04:14:25'),(89,7647,'spce','2013-08-27 04:14:25'),(90,7655,'spce','2013-08-27 04:14:26'),(91,7656,'spce','2013-08-27 04:14:26'),(92,7764,'spce','2013-08-27 04:14:26'),(93,7937,'spce','2013-08-27 04:14:26'),(94,7991,'spce','2013-08-27 04:14:27'),(95,8169,'spce','2013-08-27 04:14:27'),(96,8293,'spce','2013-08-27 04:14:27'),(97,8378,'spce','2013-08-27 04:14:28'),(98,8408,'spce','2013-08-27 04:14:28'),(99,8461,'spce','2013-08-27 04:14:28'),(100,8466,'spce','2013-08-27 04:14:28'),(101,8467,'spce','2013-08-27 04:14:29'),(102,8629,'spce','2013-08-27 04:14:29'),(103,8704,'spce','2013-08-27 04:14:29'),(104,8846,'spce','2013-08-27 04:14:29'),(105,8878,'spce','2013-08-27 04:14:30'),(106,8997,'spce','2013-08-27 04:14:30'),(107,9069,'spce','2013-08-27 04:14:30'),(108,9086,'spce','2013-08-27 04:14:31'),(109,9106,'spce','2013-08-27 04:14:31'),(110,9114,'spce','2013-08-27 04:14:31'),(111,9119,'spce','2013-08-27 04:14:31'),(112,9150,'spce','2013-08-27 04:14:32'),(113,9154,'spce','2013-08-27 04:14:32'),(114,9159,'spce','2013-08-27 04:14:32'),(115,9166,'spce','2013-08-27 04:14:32'),(116,9187,'spce','2013-08-27 04:14:33'),(117,9188,'spce','2013-08-27 04:14:33'),(118,9204,'spce','2013-08-27 04:14:33'),(119,9205,'spce','2013-08-27 04:14:34'),(120,9221,'spce','2013-08-27 04:14:35'),(121,9222,'spce','2013-08-27 04:14:35'),(122,9228,'spce','2013-08-27 04:14:35'),(123,9249,'spce','2013-08-27 04:14:35'),(124,9256,'spce','2013-08-27 04:14:36'),(125,9303,'spce','2013-08-27 04:14:36'),(126,9312,'spce','2013-08-27 04:14:36'),(127,9458,'spce','2013-08-27 04:14:36'),(128,9625,'spce','2013-08-27 04:14:37'),(129,9630,'spce','2013-08-27 04:14:37'),(130,9665,'spce','2013-08-27 04:14:37'),(131,9675,'spce','2013-08-27 04:14:38'),(132,9702,'spce','2013-08-27 04:14:38'),(133,9703,'spce','2013-08-27 04:14:38'),(134,9723,'spce','2013-08-27 04:14:38'),(135,9733,'spce','2013-08-27 04:14:39'),(136,9791,'spce','2013-08-27 04:14:39'),(137,9868,'spce','2013-08-27 04:14:39'),(138,10180,'spce','2013-08-27 04:14:39'),(139,10203,'spce','2013-08-27 04:14:40'),(140,10210,'spce','2013-08-27 04:14:40'),(141,10268,'spce','2013-08-27 04:14:40'),(142,10272,'spce','2013-08-27 04:14:41'),(143,10287,'spce','2013-08-27 04:14:41'),(144,10290,'spce','2013-08-27 04:14:41'),(145,10331,'spce','2013-08-27 04:14:41'),(146,10332,'spce','2013-08-27 04:14:42'),(147,10423,'spce','2013-08-27 04:14:42'),(148,10538,'spce','2013-08-27 04:14:42'),(149,10639,'spce','2013-08-27 04:14:42'),(150,10728,'spce','2013-08-27 04:14:43'),(151,10860,'spce','2013-08-27 04:14:43'),(152,10877,'spce','2013-08-27 04:14:43'),(153,10890,'spce','2013-08-27 04:14:43'),(154,10934,'spce','2013-08-27 04:14:44'),(155,10950,'spce','2013-08-27 04:14:44'),(156,10951,'spce','2013-08-27 04:14:44'),(157,11039,'spce','2013-08-27 04:14:44'),(158,11062,'spce','2013-08-27 04:14:45'),(159,11188,'spce','2013-08-27 04:14:45'),(160,11245,'spce','2013-08-27 04:14:45'),(161,11318,'spce','2013-08-27 04:14:45'),(162,11350,'spce','2013-08-27 04:14:46'),(163,11379,'spce','2013-08-27 04:14:46'),(164,11565,'spce','2013-08-27 04:14:46'),(165,11581,'spce','2013-08-27 04:14:46'),(166,11603,'spce','2013-08-27 04:14:47'),(167,11722,'spce','2013-08-27 04:14:47'),(168,11729,'spce','2013-08-27 04:14:47'),(169,11812,'spce','2013-08-27 04:14:48'),(170,11817,'spce','2013-08-27 04:14:48'),(171,11818,'spce','2013-08-27 04:14:48'),(172,11819,'spce','2013-08-27 04:14:48'),(173,12002,'spce','2013-08-27 04:14:49'),(174,12061,'spce','2013-08-27 04:14:49'),(175,12062,'spce','2013-08-27 04:14:49'),(176,12117,'spce','2013-08-27 04:14:49'),(177,12144,'spce','2013-08-27 04:14:50'),(178,12162,'spce','2013-08-27 04:14:50'),(179,12279,'spce','2013-08-27 04:14:51'),(180,12649,'spce','2013-08-27 04:14:51'),(181,12693,'spce','2013-08-27 04:14:51'),(182,12765,'spce','2013-08-27 04:14:51'),(183,13041,'spce','2013-08-27 04:14:52'),(184,13042,'spce','2013-08-27 04:14:52'),(185,13117,'spce','2013-08-27 04:14:52'),(186,13125,'spce','2013-08-27 04:14:52'),(187,13126,'spce','2013-08-27 04:14:53'),(188,13127,'spce','2013-08-27 04:14:53'),(189,13140,'spce','2013-08-27 04:14:53'),(190,13216,'spce','2013-08-27 04:14:53'),(191,13219,'spce','2013-08-27 04:14:54'),(192,13225,'spce','2013-08-27 04:14:54'),(193,13226,'spce','2013-08-27 04:14:54'),(194,13288,'spce','2013-08-27 04:14:55'),(195,13393,'spce','2013-08-27 04:14:55'),(196,13447,'spce','2013-08-27 04:14:55'),(197,13449,'spce','2013-08-27 04:14:55'),(198,13474,'spce','2013-08-27 04:14:56'),(199,13475,'spce','2013-08-27 04:14:56'),(200,13519,'spce','2013-08-27 04:14:56'),(201,13658,'spce','2013-08-27 04:14:56'),(202,13659,'spce','2013-08-27 04:14:57'),(203,13829,'spce','2013-08-27 04:14:57'),(204,13830,'spce','2013-08-27 04:14:58'),(205,13831,'spce','2013-08-27 04:14:58'),(206,13833,'spce','2013-08-27 04:14:58'),(207,13834,'spce','2013-08-27 04:14:58'),(208,13835,'spce','2013-08-27 04:14:59'),(209,13836,'spce','2013-08-27 04:14:59'),(210,13837,'spce','2013-08-27 04:14:59'),(211,13838,'spce','2013-08-27 04:14:59'),(212,13839,'spce','2013-08-27 04:15:00'),(213,13840,'spce','2013-08-27 04:15:00'),(214,13841,'spce','2013-08-27 04:15:00'),(215,15000,'spce','2013-08-27 04:15:01'),(216,15001,'spce','2013-08-27 04:15:01'),(217,15002,'spce','2013-08-27 04:15:01'),(218,15003,'spce','2013-08-27 04:15:01'),(219,15004,'spce','2013-08-27 04:15:02'),(220,15006,'spce','2013-08-27 04:15:02'),(221,15007,'spce','2013-08-27 04:15:02'); /*!40000 ALTER TABLE `db_schema` ENABLE KEYS */; UNLOCK TABLES; @@ -2642,7 +2642,7 @@ DELIMITER ;; 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; + WHERE id <=> OLD.id; END */;; DELIMITER ; @@ -2662,7 +2662,7 @@ 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; + DELETE FROM kamailio.address WHERE id <=> OLD.id; END */;; DELIMITER ; @@ -2855,8 +2855,8 @@ DELIMITER ;; 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; + 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); @@ -2886,13 +2886,13 @@ DELIMITER ;; 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; + 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; + WHERE alias_username <=> OLD.username + AND alias_domain <=> old_dbalias_domain; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -2914,8 +2914,8 @@ DELIMITER ;; 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; + DELETE FROM kamailio.dbaliases WHERE alias_username <=> OLD.username + AND alias_domain <=> dbalias_domain; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -2937,12 +2937,12 @@ CREATE TABLE `voip_dom_preferences` ( 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=6 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; LOCK TABLES `voip_dom_preferences` WRITE; /*!40000 ALTER TABLE `voip_dom_preferences` DISABLE KEYS */; -INSERT INTO `voip_dom_preferences` VALUES (1,2,62,'no','0000-00-00 00:00:00'),(2,2,66,'UPDATE_FALLBACK_INVITE','0000-00-00 00:00:00'),(3,2,90,'ice_strip_candidates','2013-08-26 09:03:07'),(4,2,95,'transparent','2013-08-26 09:03:14'),(5,2,96,'transparent','2013-08-26 09:03:14'); +INSERT INTO `voip_dom_preferences` VALUES (1,2,62,'no','0000-00-00 00:00:00'),(2,2,66,'UPDATE_FALLBACK_INVITE','0000-00-00 00:00:00'),(3,2,90,'ice_strip_candidates','2013-08-27 04:14:52'),(4,2,95,'transparent','2013-08-27 04:14:59'),(5,2,96,'transparent','2013-08-27 04:14:59'),(6,2,97,'strip','2013-08-27 04:15:02'); /*!40000 ALTER TABLE `voip_dom_preferences` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; @@ -2962,10 +2962,10 @@ DELIMITER ;; SELECT domain INTO domain_name FROM voip_domains - WHERE id = NEW.domain_id; + WHERE id <=> NEW.domain_id; SELECT attribute, type INTO attribute_name, attribute_type FROM voip_preferences - WHERE id = NEW.attribute_id; + WHERE id <=> NEW.attribute_id; INSERT INTO kamailio.dom_preferences (domain, attribute, type, value) VALUES(domain_name, attribute_name, attribute_type, NEW.value); @@ -2993,23 +2993,23 @@ DELIMITER ;; SELECT domain INTO old_domain_name FROM voip_domains - WHERE id = OLD.domain_id; + WHERE id <=> OLD.domain_id; SELECT domain INTO new_domain_name FROM voip_domains - WHERE id = NEW.domain_id; + WHERE id <=> NEW.domain_id; SELECT attribute INTO old_attribute_name FROM voip_preferences - WHERE id = OLD.attribute_id; + WHERE id <=> OLD.attribute_id; SELECT attribute INTO new_attribute_name FROM voip_preferences - WHERE id = NEW.attribute_id; + 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; + WHERE domain <=> old_domain_name + AND attribute <=> old_attribute_name + AND value <=> OLD.value; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -3032,14 +3032,14 @@ DELIMITER ;; SELECT domain INTO domain_name FROM voip_domains - WHERE id = OLD.domain_id; + WHERE id <=> OLD.domain_id; SELECT attribute INTO attribute_name FROM voip_preferences - WHERE id = OLD.attribute_id; + WHERE id <=> OLD.attribute_id; - DELETE FROM kamailio.dom_preferences WHERE domain = domain_name - AND attribute = attribute_name - AND value = OLD.value; + 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 */ ; @@ -3080,7 +3080,7 @@ FOR EACH ROW BEGIN 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; + 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 */ ; @@ -3099,13 +3099,13 @@ 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.domain WHERE domain <=> OLD.domain; - DELETE FROM kamailio.dom_preferences WHERE domain = OLD.domain; + DELETE FROM kamailio.dom_preferences WHERE domain <=> OLD.domain; - DELETE FROM provisioning.voip_subscribers WHERE domain_id = OLD.id; + DELETE FROM provisioning.voip_subscribers WHERE domain_id <=> OLD.id; END */;; DELIMITER ; @@ -3152,11 +3152,11 @@ DELIMITER ;; SELECT a.username, b.domain INTO subscriber_username, subscriber_domain FROM voip_subscribers a, voip_domains b - WHERE a.id = NEW.subscriber_id + 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; + WHERE username <=> subscriber_username AND domain <=> subscriber_domain; INSERT INTO kamailio.fax_destinations (subscriber_id, destination, filetype, cc, incoming, outgoing, status) @@ -3190,27 +3190,27 @@ DELIMITER ;; 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; + 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; + 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; + 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; + 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; + WHERE subscriber_id <=> old_os_subscriber_id + AND destination <=> OLD.destination; END */;; DELIMITER ; @@ -3235,14 +3235,14 @@ DELIMITER ;; 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; + 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; + 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; + DELETE FROM kamailio.fax_destinations WHERE subscriber_id <=> old_os_subscriber_id + AND destination <=> OLD.destination; END */;; DELIMITER ; @@ -3288,11 +3288,11 @@ DELIMITER ;; 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; + 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; + WHERE username <=> subscriber_username AND domain <=> subscriber_domain; INSERT INTO kamailio.fax_preferences (subscriber_id, password, name, active, send_status, send_copy) @@ -3325,25 +3325,25 @@ DELIMITER ;; 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; + 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; + 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; + 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; + 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; + WHERE subscriber_id <=> old_os_subscriber_id; END */;; DELIMITER ; @@ -3368,13 +3368,13 @@ DELIMITER ;; 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; + 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; + WHERE username <=> old_subscriber_username AND domain <=> old_subscriber_domain; - DELETE FROM kamailio.fax_preferences WHERE subscriber_id = old_os_subscriber_id; + DELETE FROM kamailio.fax_preferences WHERE subscriber_id <=> old_os_subscriber_id; END */;; DELIMITER ; @@ -3414,9 +3414,9 @@ DELIMITER ;; UPDATE kamailio.lcr_rule_target rt, kamailio.lcr_gw gw SET rt.priority = NEW.priority - WHERE gw.id = rt.gw_id + WHERE gw.id <=> rt.gw_id AND gw.lcr_id = 1 - AND gw.group_id = NEW.id; + AND gw.group_id <=> NEW.id; END */;; DELIMITER ; @@ -3436,8 +3436,8 @@ 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; + DELETE FROM kamailio.lcr_rule WHERE group_id <=> OLD.id; + DELETE FROM kamailio.lcr_gw WHERE group_id <=> OLD.id; END */;; DELIMITER ; @@ -3488,12 +3488,12 @@ DELIMITER ;; 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; + 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; + 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 */ ; @@ -3514,14 +3514,14 @@ DELIMITER ;; 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; + 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 + WHERE gw.id <=> rt.gw_id AND gw.lcr_id = 1 - AND gw.group_id = NEW.group_id - AND gw.ip_addr = NEW.ip; + AND gw.group_id <=> NEW.group_id + AND gw.ip_addr <=> NEW.ip; END */;; DELIMITER ; @@ -3543,8 +3543,8 @@ DELIMITER ;; DELETE FROM kamailio.lcr_gw WHERE lcr_id = 1 - AND group_id = OLD.group_id - AND ip_addr = OLD.ip; + AND group_id <=> OLD.group_id + AND ip_addr <=> OLD.ip; @@ -3591,7 +3591,7 @@ DELIMITER ;; (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; + WHERE id <=> NEW.attribute_id; END */;; DELIMITER ; @@ -3614,8 +3614,8 @@ DELIMITER ;; 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; + WHERE pp.id <=> OLD.id + AND vp.id <=> NEW.attribute_id; END */;; DELIMITER ; @@ -3636,7 +3636,7 @@ DELIMITER ;; FOR EACH ROW BEGIN DELETE FROM kamailio.peer_preferences - WHERE id = OLD.id; + WHERE id <=> OLD.id; END */;; DELIMITER ; @@ -3687,7 +3687,7 @@ DELIMITER ;; 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; + WHERE vph.group_id <=> NEW.group_id; END */;; DELIMITER ; @@ -3710,10 +3710,10 @@ DELIMITER ;; 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; + 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 ; @@ -3734,10 +3734,10 @@ DELIMITER ;; 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; + WHERE prefix <=> OLD.callee_prefix + AND request_uri <=> OLD.callee_pattern + AND from_uri <=> OLD.caller_pattern + AND group_id <=> OLD.group_id; @@ -3784,12 +3784,12 @@ CREATE TABLE `voip_preferences` ( UNIQUE KEY `attribute_idx` (`attribute`), KEY `vpgid_ref` (`voip_preference_groups_id`), CONSTRAINT `vpgid_ref` FOREIGN KEY (`voip_preference_groups_id`) REFERENCES `voip_preference_groups` (`id`) ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; LOCK TABLES `voip_preferences` WRITE; /*!40000 ALTER TABLE `voip_preferences` DISABLE KEYS */; -INSERT INTO `voip_preferences` VALUES (1,3,'lock',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',1,'See \"lock_voip_account_subscriber\" for a list of possible values. A lock value of \"none\" will not be returned to the caller. Read-only setting.'),(2,2,'block_in_mode',1,1,1,0,0,'2013-08-26 09:03:15',0,1,'boolean',0,'Specifies the operational mode of the incoming block list. If unset or set to a false value, it is a blacklist (accept all calls except from numbers listed in the block list), with a true value it is a whitelist (reject all calls except from numbers listed in the block list).'),(3,2,'block_in_list',0,0,1,0,0,'2013-08-26 09:03:15',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to call the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(4,2,'block_in_clir',1,1,1,0,0,'2013-08-26 09:03:15',0,1,'boolean',0,'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.'),(5,2,'block_out_mode',1,1,1,0,0,'2013-08-26 09:03:15',0,1,'boolean',0,'Specifies the operational mode of the outgoing block list. If unset or set to a false value, it is a blacklist (allow all calls except to numbers listed in the block list), with a true value it is a whitelist (deny all calls except to numbers listed in the block list).'),(6,2,'block_out_list',0,0,1,0,0,'2013-08-26 09:03:15',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to be called by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(7,2,'adm_block_in_mode',1,1,1,0,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Same as \"block_in_mode\" but may only be set by administrators.'),(8,2,'adm_block_in_list',0,0,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'Same as \"block_in_list\" but may only be set by administrators and is applied prior to the user setting.'),(9,2,'adm_block_in_clir',1,1,1,0,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Same as \"block_in_clir\" but may only be set by administrators and is applied prior to the user setting.'),(10,2,'adm_block_out_mode',1,1,1,0,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Same as \"block_out_mode\" but may only be set by administrators.'),(11,2,'adm_block_out_list',0,0,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'Same as \"block_out_list\" but may only be set by administrators and is applied prior to the user setting.'),(12,1,'cfu',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'int',1,'The id pointing to the \"Call Forward Unconditional\" entry in the voip_cf_mappings table'),(13,1,'cfb',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'int',1,'The id pointing to the \"Call Forward Busy\" entry in the voip_cf_mappings table'),(14,1,'cfna',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'int',1,'The id pointing to the \"Call Forward Unavailable\" entry in the voip_cf_mappings table'),(15,1,'cft',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'int',1,'The id pointing to the \"Call Forward Timeout\" entry in the voip_cf_mappings table'),(16,1,'ringtimeout',1,1,1,0,0,'2013-08-26 09:03:15',1,0,'int',0,'Specifies how many seconds the system should wait before redirecting the call if \"cft\" is set.'),(17,4,'cli',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"network-provided calling line identification\" - specifies the SIP username that is used for outgoing calls in the SIP \"From\" and \"P-Asserted-Identity\" headers (as user- and network-provided calling numbers). The content of the \"From\" header may be overridden by the \"user_cli\" preference and client (if allowed by the \"allowed_clis\" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.'),(18,4,'clir',1,1,1,0,0,'2013-08-26 09:03:15',0,1,'boolean',0,'\"Calling line identification restriction\" - if set to true, the CLI is not displayed on outgoing calls.'),(19,4,'cc',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'The country code that will be used for routing of dialed numbers without a country code. Defaults to the country code of the E.164 number if the subscriber has one.'),(20,4,'ac',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'The area code that will be used for routing of dialed numbers without an area code. Defaults to the area code of the E.164 number if the subscriber has one.'),(22,4,'emergency_prefix',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(23,2,'ncos_id',1,1,1,1,0,'2013-08-26 09:03:11',1,0,'int',0,NULL),(24,2,'adm_ncos_id',1,1,1,1,0,'2013-08-26 09:03:11',1,0,'int',0,NULL),(29,2,'ncos',0,1,1,1,0,'2013-08-26 09:03:15',-1,1,'string',0,'Specifies the NCOS level that applies to the user.'),(30,2,'adm_ncos',0,1,1,1,0,'2013-08-26 09:03:11',-1,0,'string',0,'Same as \"ncos\", but may only be set by administrators and is applied prior to the user setting.'),(31,2,'block_out_override_pin',0,1,1,0,0,'2013-08-26 09:03:15',0,1,'string',0,'A PIN code which may be used in a VSC to disable the outgoing user block list and NCOS level for a call.'),(32,2,'adm_block_out_override_pin',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'Same as \"block_out_override_pin\" but additionally disables the administrative block list and NCOS level.'),(33,6,'peer_auth_user',0,1,1,0,1,'2013-08-26 09:03:11',0,0,'string',0,'A username used for authentication against the peer host.'),(34,6,'peer_auth_pass',0,1,1,0,1,'2013-08-26 09:03:11',0,0,'string',0,'A password used for authentication against the peer host.'),(35,3,'unauth_inbound_calls',1,1,0,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.'),(36,6,'peer_auth_realm',0,1,1,0,1,'2013-08-26 09:03:11',0,0,'string',0,'A realm (hostname) used to identify and for authentication against a peer host.'),(40,6,'peer_auth_register',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'boolean',0,'Specifies whether registration at the peer host is desired.'),(41,3,'concurrent_max',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'int',0,'Maximum number of concurrent sessions (calls) for a subscriber or peer.'),(42,3,'concurrent_max_out',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'int',0,'Maximum number of concurrent outgoing sessions (calls) coming from a subscriber or going to a peer.'),(43,3,'allowed_clis',0,0,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.'),(44,8,'force_outbound_calls_to_peer',1,1,1,1,1,'2013-08-26 09:03:11',0,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,8,'account_id',1,1,1,0,0,'2013-08-26 09:03:11',1,0,'int',0,NULL),(46,8,'ext_contract_id',0,1,1,0,0,'2013-08-26 09:03:11',1,0,'string',0,NULL),(47,8,'ext_subscriber_id',0,1,1,0,0,'2013-08-26 09:03:11',1,0,'string',0,NULL),(48,6,'find_subscriber_by_uuid',1,1,0,0,1,'2013-08-26 09:03:11',0,0,'boolean',0,'For incoming calls from this peer, find the destination subscriber also using its auth_username used for outbound registration.'),(50,4,'rewrite_rule_set',1,1,1,1,1,'2013-08-26 09:03:11',-1,0,'int',0,'Specifies the list of caller and callee rewrite rules which should be applied for incoming and outgoing calls.'),(51,4,'rewrite_caller_in_dpid',1,1,1,1,1,'2013-08-26 09:03:11',1,0,'int',0,NULL),(52,4,'rewrite_callee_in_dpid',1,1,1,1,1,'2013-08-26 09:03:11',1,0,'int',0,NULL),(53,4,'rewrite_caller_out_dpid',1,1,1,1,1,'2013-08-26 09:03:11',1,0,'int',0,NULL),(54,4,'rewrite_callee_out_dpid',1,1,1,1,1,'2013-08-26 09:03:11',1,0,'int',0,NULL),(55,4,'e164_to_ruri',1,1,1,0,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Send the E164 number instead of SIP AOR as request username when sending INVITE to the subscriber. If a 404 is received the SIP AOR is sent as request URI as fallback.'),(56,4,'user_cli',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"user-provided calling line identification\" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP \"From\" header (as user-provided calling number) if a client sends a CLI which is not allowed by \"allowed_clis\" or if \"allowed_clis\" is not set.'),(57,8,'prepaid',1,1,1,0,0,'2013-08-26 09:03:11',1,0,'boolean',0,NULL),(60,8,'force_inbound_calls_to_peer',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.'),(61,4,'emergency_suffix',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(62,7,'sst_enable',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'Enable SIP Session Timers.'),(63,7,'sst_expires',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'int',0,'SIP Session Timers refresh interval (seconds). Should be always greater than min_timer preference. SBC will make refresh at the half of this interval.'),(64,7,'sst_min_timer',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'int',0,'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.'),(65,7,'sst_max_timer',1,1,1,1,1,'2013-08-26 09:03:11',0,0,'int',0,'Sets upper limit on accepted Min-SE value in in SBC.'),(66,7,'sst_refresh_method',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'SIP Session Timers refresh method.'),(67,5,'sound_set',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'int',0,'Soundset'),(68,3,'reject_emergency',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Reject emergency calls from this user or domain.'),(69,4,'emergency_cli',0,1,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). Emergency CLI which can be used in rewrite rules as substitution value.'),(70,8,'outbound_socket',0,1,0,0,1,'2013-08-26 09:03:11',0,0,'enum',0,'Outbound socket to be used for SIP communication to this entity'),(71,4,'inbound_upn',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The SIP header field to fetch the user-provided-number from for inbound calls'),(72,4,'inbound_npn',0,1,0,0,1,'2013-08-26 09:03:11',0,0,'enum',0,'The SIP header field to fetch the network-provided-number from for inbound calls'),(73,4,'outbound_from_user',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The content to put into the From username for outbound calls from the platform to the subscriber'),(74,4,'outbound_from_display',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The content to put into the From display-name for outbound calls from the platform to the subscriber'),(75,4,'outbound_pai_user',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The content to put into the P-Asserted-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(76,4,'outbound_ppi_user',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The content to put into the P-Preferred-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(77,8,'mobile_push_enable',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.'),(78,4,'extension_in_npn',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).'),(79,3,'concurrent_max_per_account',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'int',0,'Maximum number of concurrent sessions (calls) for subscribers within the same account'),(80,3,'concurrent_max_out_per_account',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'int',0,'Maximum number of concurrent outgoing sessions (calls) for subscribers within the same account'),(81,4,'inbound_uprn',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'Specifies the way to obtain the User-Provided Redirecting CLI. Possible options are use NPN of forwarding subscriber or respect inbound Diversion header. Same validation rules as for UPN apply to UPRN. NGCP does not stack UPRNs up if the call is forwarded several times.'),(82,4,'outbound_diversion',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'The content to put into the Diversion header for outbound calls (use \"None\" to not set header at all)'),(83,3,'allowed_ips_grp',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(84,3,'man_allowed_ips_grp',1,0,1,0,0,'2013-08-26 09:03:11',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(85,3,'allowed_ips',1,0,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(86,3,'man_allowed_ips',1,0,1,0,0,'2013-08-26 09:03:11',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(87,3,'ignore_allowed_ips',1,1,1,0,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Ignore preferences \"allowed_ips\" and \"man_allowed_ips\".'),(88,5,'no_nat_sipping',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Don\'t do NAT ping for domain/user. Use with caution: this only makes sense on the access network which does not need pings (e.g. CDMA)'),(89,8,'ip_header',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'string',0,'The SIP header to take the IP address for logging it into CDRs.'),(90,5,'use_rtpproxy',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'Set RTP relay mode for this peer/domain/user'),(91,5,'ipv46_for_rtpproxy',0,1,1,1,1,'2013-08-26 09:03:11',0,0,'enum',0,'Choose the logic of IPv4/IPv6 autodetection for the RTP relay'),(92,3,'allow_out_foreign_domain',1,1,1,1,0,'2013-08-26 09:03:11',0,0,'boolean',0,'Allow outbound calls of local subscribers to foreign domains'),(93,8,'mobile_push_expiry',1,1,1,1,0,'0000-00-00 00:00:00',0,0,'int',0,'The expiry interval of sent push request. Client is expected to register within this time, otherwise he should treat the request as outdated and ignore.'),(94,8,'cloud_pbx',1,1,1,1,0,'0000-00-00 00:00:00',0,0,'boolean',0,'Send the calls from/to the subscribers through the cloud pbx module.'),(95,5,'srtp_transcoding',0,1,1,1,1,'2013-08-26 09:03:14',0,0,'enum',0,'Choose the logic for RTP/SRTP transcoding (SAVP profile) for the RTP relay'),(96,5,'rtcp_feedback',0,1,1,1,1,'2013-08-26 09:03:14',0,0,'enum',0,'Choose the logic for local RTCP feedback (AVPF profile) for the RTP relay'); +INSERT INTO `voip_preferences` VALUES (1,3,'lock',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',1,'See \"lock_voip_account_subscriber\" for a list of possible values. A lock value of \"none\" will not be returned to the caller. Read-only setting.'),(2,2,'block_in_mode',1,1,1,0,0,'2013-08-27 04:14:59',0,1,'boolean',0,'Specifies the operational mode of the incoming block list. If unset or set to a false value, it is a blacklist (accept all calls except from numbers listed in the block list), with a true value it is a whitelist (reject all calls except from numbers listed in the block list).'),(3,2,'block_in_list',0,0,1,0,0,'2013-08-27 04:14:59',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to call the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(4,2,'block_in_clir',1,1,1,0,0,'2013-08-27 04:14:59',0,1,'boolean',0,'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.'),(5,2,'block_out_mode',1,1,1,0,0,'2013-08-27 04:14:59',0,1,'boolean',0,'Specifies the operational mode of the outgoing block list. If unset or set to a false value, it is a blacklist (allow all calls except to numbers listed in the block list), with a true value it is a whitelist (deny all calls except to numbers listed in the block list).'),(6,2,'block_out_list',0,0,1,0,0,'2013-08-27 04:14:59',0,1,'string',0,'Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\") that are (not) allowed to be called by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.'),(7,2,'adm_block_in_mode',1,1,1,0,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Same as \"block_in_mode\" but may only be set by administrators.'),(8,2,'adm_block_in_list',0,0,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'Same as \"block_in_list\" but may only be set by administrators and is applied prior to the user setting.'),(9,2,'adm_block_in_clir',1,1,1,0,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Same as \"block_in_clir\" but may only be set by administrators and is applied prior to the user setting.'),(10,2,'adm_block_out_mode',1,1,1,0,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Same as \"block_out_mode\" but may only be set by administrators.'),(11,2,'adm_block_out_list',0,0,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'Same as \"block_out_list\" but may only be set by administrators and is applied prior to the user setting.'),(12,1,'cfu',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'int',1,'The id pointing to the \"Call Forward Unconditional\" entry in the voip_cf_mappings table'),(13,1,'cfb',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'int',1,'The id pointing to the \"Call Forward Busy\" entry in the voip_cf_mappings table'),(14,1,'cfna',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'int',1,'The id pointing to the \"Call Forward Unavailable\" entry in the voip_cf_mappings table'),(15,1,'cft',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'int',1,'The id pointing to the \"Call Forward Timeout\" entry in the voip_cf_mappings table'),(16,1,'ringtimeout',1,1,1,0,0,'2013-08-27 04:14:59',1,0,'int',0,'Specifies how many seconds the system should wait before redirecting the call if \"cft\" is set.'),(17,4,'cli',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"network-provided calling line identification\" - specifies the SIP username that is used for outgoing calls in the SIP \"From\" and \"P-Asserted-Identity\" headers (as user- and network-provided calling numbers). The content of the \"From\" header may be overridden by the \"user_cli\" preference and client (if allowed by the \"allowed_clis\" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.'),(18,4,'clir',1,1,1,0,0,'2013-08-27 04:14:59',0,1,'boolean',0,'\"Calling line identification restriction\" - if set to true, the CLI is not displayed on outgoing calls.'),(19,4,'cc',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'The country code that will be used for routing of dialed numbers without a country code. Defaults to the country code of the E.164 number if the subscriber has one.'),(20,4,'ac',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'The area code that will be used for routing of dialed numbers without an area code. Defaults to the area code of the E.164 number if the subscriber has one.'),(22,4,'emergency_prefix',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(23,2,'ncos_id',1,1,1,1,0,'2013-08-27 04:14:56',1,0,'int',0,NULL),(24,2,'adm_ncos_id',1,1,1,1,0,'2013-08-27 04:14:56',1,0,'int',0,NULL),(29,2,'ncos',0,1,1,1,0,'2013-08-27 04:14:59',-1,1,'string',0,'Specifies the NCOS level that applies to the user.'),(30,2,'adm_ncos',0,1,1,1,0,'2013-08-27 04:14:56',-1,0,'string',0,'Same as \"ncos\", but may only be set by administrators and is applied prior to the user setting.'),(31,2,'block_out_override_pin',0,1,1,0,0,'2013-08-27 04:14:59',0,1,'string',0,'A PIN code which may be used in a VSC to disable the outgoing user block list and NCOS level for a call.'),(32,2,'adm_block_out_override_pin',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'Same as \"block_out_override_pin\" but additionally disables the administrative block list and NCOS level.'),(33,6,'peer_auth_user',0,1,1,0,1,'2013-08-27 04:14:56',0,0,'string',0,'A username used for authentication against the peer host.'),(34,6,'peer_auth_pass',0,1,1,0,1,'2013-08-27 04:14:56',0,0,'string',0,'A password used for authentication against the peer host.'),(35,3,'unauth_inbound_calls',1,1,0,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.'),(36,6,'peer_auth_realm',0,1,1,0,1,'2013-08-27 04:14:56',0,0,'string',0,'A realm (hostname) used to identify and for authentication against a peer host.'),(40,6,'peer_auth_register',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'boolean',0,'Specifies whether registration at the peer host is desired.'),(41,3,'concurrent_max',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'int',0,'Maximum number of concurrent sessions (calls) for a subscriber or peer.'),(42,3,'concurrent_max_out',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'int',0,'Maximum number of concurrent outgoing sessions (calls) coming from a subscriber or going to a peer.'),(43,3,'allowed_clis',0,0,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. \"*\", \"?\" and \"[x-y]\" with \"x\" and \"y\" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.'),(44,8,'force_outbound_calls_to_peer',1,1,1,1,1,'2013-08-27 04:14:56',0,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,8,'account_id',1,1,1,0,0,'2013-08-27 04:14:56',1,0,'int',0,NULL),(46,8,'ext_contract_id',0,1,1,0,0,'2013-08-27 04:14:56',1,0,'string',0,NULL),(47,8,'ext_subscriber_id',0,1,1,0,0,'2013-08-27 04:14:56',1,0,'string',0,NULL),(48,6,'find_subscriber_by_uuid',1,1,0,0,1,'2013-08-27 04:14:56',0,0,'boolean',0,'For incoming calls from this peer, find the destination subscriber also using its auth_username used for outbound registration.'),(50,4,'rewrite_rule_set',1,1,1,1,1,'2013-08-27 04:14:56',-1,0,'int',0,'Specifies the list of caller and callee rewrite rules which should be applied for incoming and outgoing calls.'),(51,4,'rewrite_caller_in_dpid',1,1,1,1,1,'2013-08-27 04:14:56',1,0,'int',0,NULL),(52,4,'rewrite_callee_in_dpid',1,1,1,1,1,'2013-08-27 04:14:56',1,0,'int',0,NULL),(53,4,'rewrite_caller_out_dpid',1,1,1,1,1,'2013-08-27 04:14:56',1,0,'int',0,NULL),(54,4,'rewrite_callee_out_dpid',1,1,1,1,1,'2013-08-27 04:14:56',1,0,'int',0,NULL),(55,4,'e164_to_ruri',1,1,1,0,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Send the E164 number instead of SIP AOR as request username when sending INVITE to the subscriber. If a 404 is received the SIP AOR is sent as request URI as fallback.'),(56,4,'user_cli',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). \"user-provided calling line identification\" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP \"From\" header (as user-provided calling number) if a client sends a CLI which is not allowed by \"allowed_clis\" or if \"allowed_clis\" is not set.'),(57,8,'prepaid',1,1,1,0,0,'2013-08-27 04:14:56',1,0,'boolean',0,NULL),(60,8,'force_inbound_calls_to_peer',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.'),(61,4,'emergency_suffix',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'A numeric string intended to be used in rewrite rules for emergency numbers.'),(62,7,'sst_enable',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'Enable SIP Session Timers.'),(63,7,'sst_expires',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'int',0,'SIP Session Timers refresh interval (seconds). Should be always greater than min_timer preference. SBC will make refresh at the half of this interval.'),(64,7,'sst_min_timer',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'int',0,'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.'),(65,7,'sst_max_timer',1,1,1,1,1,'2013-08-27 04:14:56',0,0,'int',0,'Sets upper limit on accepted Min-SE value in in SBC.'),(66,7,'sst_refresh_method',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'SIP Session Timers refresh method.'),(67,5,'sound_set',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'int',0,'Soundset'),(68,3,'reject_emergency',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Reject emergency calls from this user or domain.'),(69,4,'emergency_cli',0,1,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'SIP username (the localpart of the whole SIP URI, eg., \"user\" of SIP URI \"user@example.com\"). Emergency CLI which can be used in rewrite rules as substitution value.'),(70,8,'outbound_socket',0,1,0,0,1,'2013-08-27 04:14:56',0,0,'enum',0,'Outbound socket to be used for SIP communication to this entity'),(71,4,'inbound_upn',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The SIP header field to fetch the user-provided-number from for inbound calls'),(72,4,'inbound_npn',0,1,0,0,1,'2013-08-27 04:14:56',0,0,'enum',0,'The SIP header field to fetch the network-provided-number from for inbound calls'),(73,4,'outbound_from_user',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The content to put into the From username for outbound calls from the platform to the subscriber'),(74,4,'outbound_from_display',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The content to put into the From display-name for outbound calls from the platform to the subscriber'),(75,4,'outbound_pai_user',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The content to put into the P-Asserted-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(76,4,'outbound_ppi_user',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The content to put into the P-Preferred-Identity username for outbound calls from the platform to the subscriber (use \"None\" to not set header at all)'),(77,8,'mobile_push_enable',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.'),(78,4,'extension_in_npn',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).'),(79,3,'concurrent_max_per_account',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'int',0,'Maximum number of concurrent sessions (calls) for subscribers within the same account'),(80,3,'concurrent_max_out_per_account',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'int',0,'Maximum number of concurrent outgoing sessions (calls) for subscribers within the same account'),(81,4,'inbound_uprn',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'Specifies the way to obtain the User-Provided Redirecting CLI. Possible options are use NPN of forwarding subscriber or respect inbound Diversion header. Same validation rules as for UPN apply to UPRN. NGCP does not stack UPRNs up if the call is forwarded several times.'),(82,4,'outbound_diversion',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'The content to put into the Diversion header for outbound calls (use \"None\" to not set header at all)'),(83,3,'allowed_ips_grp',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(84,3,'man_allowed_ips_grp',1,0,1,0,0,'2013-08-27 04:14:56',1,0,'string',0,'Group of addresses and/or IP nets allowed access.'),(85,3,'allowed_ips',1,0,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(86,3,'man_allowed_ips',1,0,1,0,0,'2013-08-27 04:14:56',0,0,'string',0,'Allow access from the given list of IP addresses and/or IP nets.'),(87,3,'ignore_allowed_ips',1,1,1,0,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Ignore preferences \"allowed_ips\" and \"man_allowed_ips\".'),(88,5,'no_nat_sipping',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Don\'t do NAT ping for domain/user. Use with caution: this only makes sense on the access network which does not need pings (e.g. CDMA)'),(89,8,'ip_header',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'string',0,'The SIP header to take the IP address for logging it into CDRs.'),(90,5,'use_rtpproxy',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'Set RTP relay mode for this peer/domain/user'),(91,5,'ipv46_for_rtpproxy',0,1,1,1,1,'2013-08-27 04:14:56',0,0,'enum',0,'Choose the logic of IPv4/IPv6 autodetection for the RTP relay'),(92,3,'allow_out_foreign_domain',1,1,1,1,0,'2013-08-27 04:14:56',0,0,'boolean',0,'Allow outbound calls of local subscribers to foreign domains'),(93,8,'mobile_push_expiry',1,1,1,1,0,'0000-00-00 00:00:00',0,0,'int',0,'The expiry interval of sent push request. Client is expected to register within this time, otherwise he should treat the request as outdated and ignore.'),(94,8,'cloud_pbx',1,1,1,1,0,'0000-00-00 00:00:00',0,0,'boolean',0,'Send the calls from/to the subscribers through the cloud pbx module.'),(95,5,'srtp_transcoding',0,1,1,1,1,'2013-08-27 04:14:59',0,0,'enum',0,'Choose the logic for RTP/SRTP transcoding (SAVP profile) for the RTP relay'),(96,5,'rtcp_feedback',0,1,1,1,1,'2013-08-27 04:14:59',0,0,'enum',0,'Choose the logic for local RTCP feedback (AVPF profile) for the RTP relay'),(97,8,'ua_header_mode',0,1,1,1,1,'0000-00-00 00:00:00',0,0,'enum',0,'User-Agent header passing mode.'),(98,8,'ua_header_replace',0,1,1,1,1,'0000-00-00 00:00:00',0,0,'string',0,'The string to be used as a User-Agent header replacement if ua_header_mode is set to \"replace\".'); /*!40000 ALTER TABLE `voip_preferences` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; @@ -3807,13 +3807,13 @@ DELIMITER ;; IF OLD.attribute != NEW.attribute THEN UPDATE kamailio.usr_preferences SET attribute = NEW.attribute - WHERE attribute = OLD.attribute; + WHERE attribute <=> OLD.attribute; UPDATE kamailio.dom_preferences SET attribute = NEW.attribute - WHERE attribute = OLD.attribute; + WHERE attribute <=> OLD.attribute; UPDATE kamailio.peer_preferences SET attribute = NEW.attribute - WHERE attribute = OLD.attribute; + WHERE attribute <=> OLD.attribute; END IF; END */;; @@ -3836,9 +3836,9 @@ DELIMITER ;; - DELETE FROM voip_usr_preferences WHERE attribute_id = OLD.id; - DELETE FROM voip_dom_preferences WHERE attribute_id = OLD.id; - DELETE FROM voip_peer_preferences WHERE attribute_id = OLD.id; + DELETE FROM voip_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 ; @@ -3861,12 +3861,12 @@ CREATE TABLE `voip_preferences_enum` ( 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=105 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=109 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),(25,72,'From-Username',NULL,0,0,1,1),(26,72,'From-Displayname','from_display',0,0,1,0),(27,72,'P-Asserted-Identity','pai_user',0,0,1,0),(28,72,'P-Preferred-Identity','ppi_user',0,0,1,0),(29,72,'Remote-Party-ID','rpid_user',0,0,1,0),(30,73,'Network-Provided-Number','npn',1,1,1,0),(31,73,'User-Provided-Number','upn',0,1,1,1),(32,73,'Authentication-User','auth_user',1,1,1,0),(33,73,'Received Display-name','rcv_display',1,1,1,0),(34,74,'None',NULL,0,1,1,1),(35,74,'Network-Provided-Number','npn',1,1,1,0),(36,74,'User-Provided-Number','upn',1,1,1,0),(37,74,'Authentication-User','auth_user',1,1,1,0),(38,74,'Received Display-name','rcv_display',1,1,1,0),(39,75,'None',NULL,0,1,1,0),(40,75,'Network-Provided-Number','npn',0,1,1,1),(41,75,'User-Provided-Number','upn',1,1,1,0),(42,75,'Authentication-User','auth_user',1,1,1,0),(43,75,'Received Display-name','rcv_display',1,1,1,0),(44,76,'None',NULL,0,1,1,1),(45,76,'Network-Provided-Number','npn',1,1,1,0),(46,76,'User-Provided-Number','upn',1,1,1,0),(47,76,'Authentication-User','auth_user',1,1,1,0),(48,76,'Received Display-name','rcv_display',1,1,1,0),(49,71,'use domain default',NULL,1,0,0,0),(50,71,'From-Username','from_user',1,0,0,0),(51,73,'use domain default',NULL,1,0,0,0),(53,74,'use domain default',NULL,1,0,0,0),(54,74,'None','none',1,0,0,0),(55,75,'use domain default',NULL,1,0,0,0),(56,75,'None','none',1,0,0,0),(57,76,'use domain default',NULL,1,0,0,0),(58,76,'None','none',1,0,0,0),(59,75,'Network-Provided-Number ','npn',1,0,0,0),(60,73,'User-Provided-Number','upn',1,0,0,0),(61,81,'None','none',1,1,1,0),(62,81,'Forwarder\'s NPN',NULL,0,1,0,1),(63,81,'Forwarder\'s NPN','npn',1,0,0,0),(64,81,'use domain default',NULL,1,0,0,0),(65,81,'Forwarder\'s NPN / Received Diversion','npn_diversion',1,1,0,0),(66,81,'Received Diversion','diversion',1,1,1,0),(67,82,'None',NULL,0,1,1,1),(68,82,'None','none',1,0,0,0),(69,82,'use domain default',NULL,1,0,0,0),(70,82,'UPRN','uprn',1,1,1,0),(71,73,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(72,73,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(73,73,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(74,73,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(75,74,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(76,74,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(77,74,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(78,74,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(79,75,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(80,75,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(81,75,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(82,75,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(83,76,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(84,76,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(85,76,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(86,76,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(87,90,'Always with plain SDP',NULL,1,0,0,1),(88,90,'Always with plain SDP','ice_strip_candidates',0,1,1,1),(89,90,'Always with rtpproxy as additional ICE candidate','ice_add_candidates',1,1,1,0),(90,90,'Always with rtpproxy as only ICE candidate','ice_replace_candidates',1,1,1,0),(91,90,'Never','never',1,1,1,0),(92,91,'Auto-detect',NULL,1,1,1,1),(93,91,'Force IPv4','force_ipv4',1,1,1,0),(94,91,'Force IPv6','force_ipv6',1,1,1,0),(95,95,'use domain default',NULL,1,0,0,1),(96,95,'Transparent','transparent',1,0,0,0),(97,95,'Transparent','transparent',0,1,1,1),(98,95,'Force RTP','force_rtp',1,1,1,0),(99,95,'Prefer SRTP','force_srtp',1,1,1,0),(100,96,'use domain default',NULL,1,0,0,1),(101,96,'Transparent','transparent',1,0,0,0),(102,96,'Transparent','transparent',0,1,1,1),(103,96,'Force AVP','force_avp',1,1,1,0),(104,96,'Prefer AVPF','force_avpf',1,1,1,0); +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),(25,72,'From-Username',NULL,0,0,1,1),(26,72,'From-Displayname','from_display',0,0,1,0),(27,72,'P-Asserted-Identity','pai_user',0,0,1,0),(28,72,'P-Preferred-Identity','ppi_user',0,0,1,0),(29,72,'Remote-Party-ID','rpid_user',0,0,1,0),(30,73,'Network-Provided-Number','npn',1,1,1,0),(31,73,'User-Provided-Number','upn',0,1,1,1),(32,73,'Authentication-User','auth_user',1,1,1,0),(33,73,'Received Display-name','rcv_display',1,1,1,0),(34,74,'None',NULL,0,1,1,1),(35,74,'Network-Provided-Number','npn',1,1,1,0),(36,74,'User-Provided-Number','upn',1,1,1,0),(37,74,'Authentication-User','auth_user',1,1,1,0),(38,74,'Received Display-name','rcv_display',1,1,1,0),(39,75,'None',NULL,0,1,1,0),(40,75,'Network-Provided-Number','npn',0,1,1,1),(41,75,'User-Provided-Number','upn',1,1,1,0),(42,75,'Authentication-User','auth_user',1,1,1,0),(43,75,'Received Display-name','rcv_display',1,1,1,0),(44,76,'None',NULL,0,1,1,1),(45,76,'Network-Provided-Number','npn',1,1,1,0),(46,76,'User-Provided-Number','upn',1,1,1,0),(47,76,'Authentication-User','auth_user',1,1,1,0),(48,76,'Received Display-name','rcv_display',1,1,1,0),(49,71,'use domain default',NULL,1,0,0,0),(50,71,'From-Username','from_user',1,0,0,0),(51,73,'use domain default',NULL,1,0,0,0),(53,74,'use domain default',NULL,1,0,0,0),(54,74,'None','none',1,0,0,0),(55,75,'use domain default',NULL,1,0,0,0),(56,75,'None','none',1,0,0,0),(57,76,'use domain default',NULL,1,0,0,0),(58,76,'None','none',1,0,0,0),(59,75,'Network-Provided-Number ','npn',1,0,0,0),(60,73,'User-Provided-Number','upn',1,0,0,0),(61,81,'None','none',1,1,1,0),(62,81,'Forwarder\'s NPN',NULL,0,1,0,1),(63,81,'Forwarder\'s NPN','npn',1,0,0,0),(64,81,'use domain default',NULL,1,0,0,0),(65,81,'Forwarder\'s NPN / Received Diversion','npn_diversion',1,1,0,0),(66,81,'Received Diversion','diversion',1,1,1,0),(67,82,'None',NULL,0,1,1,1),(68,82,'None','none',1,0,0,0),(69,82,'use domain default',NULL,1,0,0,0),(70,82,'UPRN','uprn',1,1,1,0),(71,73,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(72,73,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(73,73,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(74,73,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(75,74,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(76,74,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(77,74,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(78,74,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(79,75,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(80,75,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(81,75,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(82,75,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(83,76,'UPRN (if set) or Network-Provided-Number','uprn/npn',1,1,1,0),(84,76,'UPRN (if set) or User-Provided-Number','uprn/upn',1,1,1,0),(85,76,'UPRN (if set) or Authentication-User','uprn/auth_user',1,1,1,0),(86,76,'UPRN (if set) or Received Display-name','uprn/rcv_display',1,1,1,0),(87,90,'Always with plain SDP',NULL,1,0,0,1),(88,90,'Always with plain SDP','ice_strip_candidates',0,1,1,1),(89,90,'Always with rtpproxy as additional ICE candidate','ice_add_candidates',1,1,1,0),(90,90,'Always with rtpproxy as only ICE candidate','ice_replace_candidates',1,1,1,0),(91,90,'Never','never',1,1,1,0),(92,91,'Auto-detect',NULL,1,1,1,1),(93,91,'Force IPv4','force_ipv4',1,1,1,0),(94,91,'Force IPv6','force_ipv6',1,1,1,0),(95,95,'use domain default',NULL,1,0,0,1),(96,95,'Transparent','transparent',1,0,0,0),(97,95,'Transparent','transparent',0,1,1,1),(98,95,'Force RTP','force_rtp',1,1,1,0),(99,95,'Prefer SRTP','force_srtp',1,1,1,0),(100,96,'use domain default',NULL,1,0,0,1),(101,96,'Transparent','transparent',1,0,0,0),(102,96,'Transparent','transparent',0,1,1,1),(103,96,'Force AVP','force_avp',1,1,1,0),(104,96,'Prefer AVPF','force_avpf',1,1,1,0),(105,97,'Strip',NULL,1,0,0,1),(106,97,'Strip','strip',0,1,1,1),(107,97,'Pass-through','passthrough',1,1,1,0),(108,97,'Replace','replace',1,1,1,0); /*!40000 ALTER TABLE `voip_preferences_enum` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; @@ -3913,11 +3913,11 @@ 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; + 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; + 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; + WHERE attribute_id <=> NEW.preference_id AND value <=> OLD.value; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -4015,79 +4015,79 @@ DELIMITER ;; 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 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; + 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; + 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; + 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 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; + 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; + 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; + 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 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; + 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; + 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; + 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 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; + 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; + 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; + WHERE b.attribute <=> 'rewrite_callee_out_dpid' + AND a.attribute_id <=> b.id + AND a.value <=> OLD.callee_out_dpid; END IF; END */;; @@ -4109,62 +4109,62 @@ DELIMITER ;; 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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 ; @@ -4210,7 +4210,7 @@ DELIMITER ;; 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; + 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,''); @@ -4237,9 +4237,9 @@ DELIMITER ;; 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; + 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; + INTO new_set_id FROM voip_rewrite_rule_sets WHERE id <=> NEW.set_id; UPDATE kamailio.dialplan SET dpid = new_set_id, @@ -4247,11 +4247,11 @@ DELIMITER ;; 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; + 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 ; @@ -4274,14 +4274,14 @@ DELIMITER ;; 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; + 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; + 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 ; @@ -4410,8 +4410,8 @@ DELIMITER ;; 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; + 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) @@ -4442,19 +4442,19 @@ DELIMITER ;; 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; + 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; + 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; + WHERE username <=> old_username + AND domain <=> old_domain + AND sd_username <=> OLD.slot; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -4477,12 +4477,12 @@ DELIMITER ;; 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; + 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; + 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 */ ; @@ -4518,7 +4518,7 @@ CREATE TABLE `voip_subscribers` ( 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','94ed8cf233963ec364135ccf5a42caf0',0,NULL,NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'nagios',2,'ac1697cf-6933-45ef-9abf-b1278054ded0','nagios4Sipwise!',0,NULL,NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'); +INSERT INTO `voip_subscribers` VALUES (3,'no_such_number',2,'9bcb88b6-541a-43da-8fdc-816f5557ff93','d6dec4141c820d92f2696c09659824b1',0,NULL,NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'nagios',2,'ac1697cf-6933-45ef-9abf-b1278054ded0','nagios4Sipwise!',0,NULL,NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'); /*!40000 ALTER TABLE `voip_subscribers` ENABLE KEYS */; UNLOCK TABLES; /*!50003 SET @saved_cs_client = @@character_set_client */ ; @@ -4546,7 +4546,7 @@ FOR EACH ROW BEGIN 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; + 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 */ ; @@ -4574,8 +4574,8 @@ DELIMITER ;; 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; + WHERE username <=> OLD.username + AND domain <=> old_subscriber_domain; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -4598,26 +4598,26 @@ DELIMITER ;; 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; + WHERE username <=> OLD.username AND domain <=> subscriber_domain; - DELETE 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.voicemail_users WHERE customer_id <=> OLD.uuid; - DELETE FROM kamailio.usr_preferences WHERE username = OLD.username - AND domain = subscriber_domain; - DELETE FROM kamailio.dbaliases WHERE username = OLD.username - AND domain = subscriber_domain; - DELETE FROM kamailio.speed_dial WHERE username = OLD.username - AND domain = subscriber_domain; - DELETE FROM kamailio.fax_preferences WHERE subscriber_id = os_subscriber_id; - DELETE FROM kamailio.fax_destinations WHERE subscriber_id = os_subscriber_id; - DELETE FROM kamailio.trusted WHERE tag = OLD.uuid; + DELETE FROM kamailio.usr_preferences WHERE username <=> OLD.username + AND domain <=> subscriber_domain; + DELETE FROM kamailio.dbaliases WHERE username <=> OLD.username + AND domain <=> subscriber_domain; + DELETE FROM kamailio.speed_dial WHERE username <=> OLD.username + AND domain <=> subscriber_domain; + DELETE FROM kamailio.fax_preferences WHERE subscriber_id <=> os_subscriber_id; + DELETE FROM kamailio.fax_destinations WHERE subscriber_id <=> os_subscriber_id; + DELETE FROM kamailio.trusted WHERE tag <=> OLD.uuid; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; @@ -4677,7 +4677,7 @@ 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 */;; + 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 */ ; @@ -4695,7 +4695,7 @@ 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 */;; + 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 */ ; @@ -4742,11 +4742,11 @@ DELIMITER ;; 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; + 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; + WHERE id <=> NEW.attribute_id; INSERT INTO kamailio.usr_preferences (uuid, username, domain, attribute, type, value) VALUES(subscriber_uuid, subscriber_username, subscriber_domain, @@ -4777,25 +4777,25 @@ DELIMITER ;; 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; + 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; + 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; + WHERE id <=> OLD.attribute_id; SELECT attribute INTO new_attribute_name FROM voip_preferences - WHERE id = NEW.attribute_id; + 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; + 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 */ ; @@ -4819,16 +4819,16 @@ DELIMITER ;; 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; + 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; + 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; + 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 */ ;