MT#63594 call_log_level preference, update type

Set `type` to 0, accordingly to the enum values.

(cherry picked from commit f078414f8dc48b380d462363103ad5400999254a)
(cherry picked from commit 6b0e087a869c334d8da6e1fd182b2e830684780c)

Change-Id: Ic92956d33753b28d9bea7861f9b19f614869883c
mr14.1.1
Kéryl Thiry 2 months ago committed by Sipwise Jenkins Builder
parent 971e63051e
commit 51ba4b7f86

@ -0,0 +1,21 @@
USE provisioning;
SET autocommit=0;
SELECT id INTO @vp_id FROM voip_preferences
WHERE attribute = 'call_log_level';
UPDATE voip_preferences
SET type = 1
WHERE id = @vp_id;
use kamailio;
UPDATE usr_preferences
SET type = 1
WHERE attribute = 'call_log_level';
UPDATE peer_preferences
SET type = 1
WHERE attribute = 'call_log_level';
COMMIT;

@ -0,0 +1,21 @@
USE provisioning;
SET autocommit=0;
SELECT id INTO @vp_id FROM voip_preferences
WHERE attribute = 'call_log_level';
UPDATE voip_preferences
SET type = 0
WHERE id = @vp_id;
use kamailio;
UPDATE usr_preferences
SET type = 0
WHERE attribute = 'call_log_level';
UPDATE peer_preferences
SET type = 0
WHERE attribute = 'call_log_level';
COMMIT;

@ -1279,7 +1279,7 @@ set autocommit=0;
INSERT INTO `usr_preferences` VALUES (1,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','cloud_pbx_hunt_policy',0,'none','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (5,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','emergency_location_format',0,'cirpack','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (6,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','play_announce_before_recording',0,'never','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (8,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','call_log_level',1,'notice','1900-01-01 00:00:01');
INSERT INTO `usr_preferences` VALUES (8,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','call_log_level',0,'notice','1900-01-01 00:00:01');
commit;
set autocommit=0;
INSERT INTO `version` VALUES ('acc',5);

File diff suppressed because it is too large Load Diff

@ -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,8,'call_log_level','Debug log level',1,1,1,0,0,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'enum',0,'Define the log level verbosity preference for subscribers or peers. The level can be NOTICE, INFO or DEBUG.',0,0,0);
INSERT INTO `voip_preferences` VALUES (412,8,'call_log_level','Debug log level',0,1,1,0,0,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'enum',0,'Define the log level verbosity preference for subscribers or peers. The level can be NOTICE, INFO or DEBUG.',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);

Loading…
Cancel
Save