From f0cc980fd1986dee9fc55ed13f382934e2deb2eb Mon Sep 17 00:00:00 2001 From: kthiry Date: Mon, 29 Sep 2025 10:59:40 +0200 Subject: [PATCH] MT#63594 Update log_debug preferences Move the 'log_debug' preference in the 'Internals' group. Hide the 'log_debug' preference on domain and profile level, Withdraw the usage of this preference on subscriber and customer level. Change-Id: Id62962aa9b69d330ecaf43f78292e4934f4d6e1f --- db_scripts/diff/15871.up | 10 +++++----- schema/provisioning.sql | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/db_scripts/diff/15871.up b/db_scripts/diff/15871.up index 2a10d092..6a2d0f66 100644 --- a/db_scripts/diff/15871.up +++ b/db_scripts/diff/15871.up @@ -1,7 +1,7 @@ use provisioning; set autocommit=0; -SET @group_id = (SELECT id FROM voip_preference_groups WHERE name = 'Cloud PBX' LIMIT 1); +SET @group_id = (SELECT id FROM voip_preference_groups WHERE name = 'Internals' LIMIT 1); INSERT INTO voip_preferences SET voip_preference_groups_id = @group_id, @@ -10,8 +10,8 @@ label = 'Debug log level', type = 1, max_occur = 1, usr_pref = 1, -prof_pref = 1, -dom_pref = 1, +prof_pref = 0, +dom_pref = 0, peer_pref = 1, contract_pref = 0, contract_location_pref = 0, @@ -20,12 +20,12 @@ devprof_pref = 0, fielddev_pref = 0, modify_timestamp = now(), internal = 0, -expose_to_customer = 1, +expose_to_customer = 0, data_type = 'boolean', read_only = 0, description = 'Enable scoped SIP debug logging for subscriber, domain, or peer. When enabled, all log levels for dialogs in this scope are promoted to be recorded regardless of the global proxy log setting. The default is disabled.', dynamic = 0, reseller_pref = 0, -expose_to_subscriber = 1; +expose_to_subscriber = 0; COMMIT; \ No newline at end of file diff --git a/schema/provisioning.sql b/schema/provisioning.sql index 58fa99c3..33a35ace 100644 --- a/schema/provisioning.sql +++ b/schema/provisioning.sql @@ -4162,7 +4162,7 @@ INSERT INTO `voip_preferences` VALUES (408,3,'otp_secret','OTP Secret',0,1,1,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); -INSERT INTO `voip_preferences` VALUES (412,9,'log_debug','Debug log level',1,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'Enable scoped SIP debug logging for subscriber, domain, or peer. When enabled, all log levels for dialogs in this scope are promoted to be recorded regardless of the global proxy log setting. The default is disabled.',0,0,1); +INSERT INTO `voip_preferences` VALUES (412,8,'log_debug','Debug log level',1,1,1,0,0,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'Enable scoped SIP debug logging for subscriber, domain, or peer. When enabled, all log levels for dialogs in this scope are promoted to be recorded regardless of the global proxy log setting. The default is disabled.',0,0,0); 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);