From a8d9c27a4384130abaf7d70145415788161c82af Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Mon, 14 Jul 2025 15:37:40 +0200 Subject: [PATCH] MT#63033 Add new 'callee_dnd' early_reject announcement handle The new handle contains the announcement that will be played to the calleer when the callee has the preference 'dnd' activated. Change-Id: Id3201e9d2ae6ecb56fd858558d0a20d790306033 --- db_scripts/diff/15865.down | 6 ++++++ db_scripts/diff/15865.up | 8 ++++++++ schema/ngcp.sql | 3 ++- schema/provisioning.sql | 5 +++-- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 db_scripts/diff/15865.down create mode 100644 db_scripts/diff/15865.up diff --git a/db_scripts/diff/15865.down b/db_scripts/diff/15865.down new file mode 100644 index 00000000..b24422b6 --- /dev/null +++ b/db_scripts/diff/15865.down @@ -0,0 +1,6 @@ +USE provisioning; +SET autocommit=0; + +DELETE FROM voip_sound_handles WHERE name = 'callee_dnd'; + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15865.up b/db_scripts/diff/15865.up new file mode 100644 index 00000000..f1fcc5bf --- /dev/null +++ b/db_scripts/diff/15865.up @@ -0,0 +1,8 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @sgid FROM voip_sound_groups WHERE name = 'early_rejects'; + +INSERT INTO voip_sound_handles (name, group_id, expose_to_customer) VALUES ('callee_dnd', @sgid, 1); + +COMMIT; \ No newline at end of file diff --git a/schema/ngcp.sql b/schema/ngcp.sql index 9ff5fdc9..7f5c230e 100644 --- a/schema/ngcp.sql +++ b/schema/ngcp.sql @@ -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=910 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +) ENGINE=InnoDB AUTO_INCREMENT=911 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 */; @@ -30960,6 +30960,7 @@ INSERT INTO `db_schema` VALUES (906,15859,'spce','1970-01-01 00:00:01','trunk'); 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'); commit; set autocommit=0; INSERT INTO `timezone` VALUES ('1','localtime','1970-01-01 00:00:01','1970-01-01 00:00:01',NULL); diff --git a/schema/provisioning.sql b/schema/provisioning.sql index b4af8de0..0f6c3464 100644 --- a/schema/provisioning.sql +++ b/schema/provisioning.sql @@ -1342,7 +1342,7 @@ CREATE TABLE `voip_sound_handles` ( PRIMARY KEY (`id`), KEY `v_s_h_group_ref` (`group_id`), CONSTRAINT `v_s_h_group_ref` FOREIGN KEY (`group_id`) REFERENCES `voip_sound_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +) ENGINE=InnoDB AUTO_INCREMENT=154 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 */; @@ -4159,7 +4159,7 @@ INSERT INTO `voip_preferences` VALUES (406,9,'aa_wrongkey_repetition','Auto-Atte INSERT INTO `voip_preferences` VALUES (407,3,'enable_2fa','2-Factor Authentication (2FA)',0,1,1,1,1,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'Enable Time-based One-Time-Password (TOTP) Multifactor Authentication for Subscriber CSC logins.',0,0,1); 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.',0,0,1); +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); 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); @@ -4714,6 +4714,7 @@ INSERT INTO `voip_sound_handles` VALUES (149,'recent_call_deleted',12,1); INSERT INTO `voip_sound_handles` VALUES (150,'ringback_tone',13,1); INSERT INTO `voip_sound_handles` VALUES (151,'aa_timeout',2,1); INSERT INTO `voip_sound_handles` VALUES (152,'aa_default',2,1); +INSERT INTO `voip_sound_handles` VALUES (153,'callee_dnd',1,1); commit; set autocommit=0; commit;