MT#63030 Add new 'colr' preference for subscribers

COLR = 'Connected line identification restriction'.
If set to true, the CLI is not displayed to the repmote
party on incoming calls.

Change-Id: I6e41534d8bc5d222f1d19dff1b809869ee9d951d
mr13.5
Marco Capetta 6 months ago committed by Sipwise Jenkins Builder
parent 40bf8fb473
commit 32b1c719e5

@ -0,0 +1,6 @@
USE provisioning;
SET autocommit = 0;
DELETE FROM voip_preferences WHERE attribute = "colr";
COMMIT;

@ -0,0 +1,30 @@
use provisioning;
set autocommit=0;
SELECT id INTO @vpg_id FROM voip_preference_groups
WHERE name='Number Manipulations';
INSERT INTO voip_preferences
SET
voip_preference_groups_id = @vpg_id,
attribute = "colr",
label = "Hide own number for inbound calls",
type = 1,
max_occur = 1,
usr_pref = 1,
prof_pref = 0,
dom_pref = 0,
peer_pref = 0,
contract_pref = 0,
contract_location_pref = 0,
dev_pref = 0,
devprof_pref = 0,
fielddev_pref = 0,
internal = 0,
expose_to_customer = 1,
expose_to_subscriber = 1,
data_type = "boolean",
read_only = 0,
description = "'Connected line identification restriction' - if set to true, the CLI is not displayed to the remote party on incoming calls.";
COMMIT;

@ -24,7 +24,7 @@ CREATE TABLE `db_schema` (
PRIMARY KEY (`id`),
UNIQUE KEY `rev_idx` (`revision`,`node`),
KEY `release_idx` (`release`)
) ENGINE=InnoDB AUTO_INCREMENT=911 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=912 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
@ -30961,6 +30961,7 @@ INSERT INTO `db_schema` VALUES (907,15862,'spce','1970-01-01 00:00:01','trunk');
INSERT INTO `db_schema` VALUES (908,15863,'spce','1970-01-01 00:00:01','trunk');
INSERT INTO `db_schema` VALUES (909,15864,'spce','1970-01-01 00:00:01','trunk');
INSERT INTO `db_schema` VALUES (910,15865,'spce','1970-01-01 00:00:01','trunk');
INSERT INTO `db_schema` VALUES (911,15866,'spce','1970-01-01 00:00:01','trunk');
commit;
set autocommit=0;
INSERT INTO `timezone` VALUES ('1','localtime','1970-01-01 00:00:01','1970-01-01 00:00:01',NULL);

@ -1194,7 +1194,7 @@ 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=411 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=412 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
@ -4160,6 +4160,7 @@ INSERT INTO `voip_preferences` VALUES (407,3,'enable_2fa','2-Factor Authenticati
INSERT INTO `voip_preferences` VALUES (408,3,'otp_secret','OTP Secret',0,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',1,0,'string',1,'Time-based One-Time-Password (TOTP) secret (RFC 6238).',0,0,0);
INSERT INTO `voip_preferences` VALUES (409,3,'show_otp_registration_info','Show OTP Registration Info',0,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',1,0,'boolean',1,'Show Time-based One-Time-Password (TOTP) secret and registration info for the next CSC logins.',0,0,0);
INSERT INTO `voip_preferences` VALUES (410,3,'dnd','Do Not Disturb (DND) mode',1,1,1,1,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'Enable Do Not Disturb (DND) mode. If activated the subscriber will not receive any call. The call forwards will not be taken into account.',0,0,1);
INSERT INTO `voip_preferences` VALUES (411,4,'colr','Hide own number for inbound calls',1,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'\'Connected line identification restriction\' - if set to true, the CLI is not displayed to the remote party on incoming calls.',0,0,1);
commit;
set autocommit=0;
INSERT INTO `voip_preferences_enum` VALUES (8,62,'use domain default',NULL,1,1,0,0,NULL,0,0,0,0,NULL,NULL);

Loading…
Cancel
Save