MT#63396 New 'phonebook' int pref, add 'conference_pin' as prof_pref

At the same time the 'conference_pin' preference has been
exposed to the profile preferences setting prof_pref = 1.

Both the changes are needed to be able to configure and
use them in the profile preference and tune what has to
be shown in the CSC panel.

Change-Id: I9f1c151100488b55f55250da08f653feb0e885f9
mr26.1
Marco Capetta 4 months ago committed by Sipwise Jenkins Builder
parent 75882c9f17
commit e18c11186d

@ -0,0 +1,14 @@
use provisioning;
set autocommit=0;
# Remove 'conference_pin' to profile preferences
UPDATE voip_preferences SET
prof_pref = 0
WHERE attribute = 'conference_pin';
# Remove new 'phonebook' internal preference
DELETE FROM voip_preferences
WHERE attribute = 'phonebook';
COMMIT;

@ -0,0 +1,38 @@
use provisioning;
set autocommit=0;
# Add 'conference_pin' to profile preferences
UPDATE voip_preferences SET
prof_pref = 1
WHERE attribute = 'conference_pin';
# Add new 'phonebook' internal preference
SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name = 'Internals';
INSERT INTO voip_preferences SET
voip_preference_groups_id = @vpg_id,
attribute = 'phonebook',
label = 'Phonebook',
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,
modify_timestamp = now(),
internal = 1,
expose_to_customer = 1,
data_type = 'boolean',
read_only = 0,
description = 'An internal flag for the phonebook pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.',
dynamic = 0,
reseller_pref = 0,
expose_to_subscriber = 1;
COMMIT;

@ -25,7 +25,7 @@ CREATE TABLE `db_schema` (
PRIMARY KEY (`id`),
UNIQUE KEY `rev_idx` (`revision`,`node`,`site_id`),
KEY `release_idx` (`release`)
) ENGINE=InnoDB AUTO_INCREMENT=926 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=927 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 */;
@ -30978,6 +30978,7 @@ INSERT INTO `db_schema` VALUES (922,15877,'spce','1970-01-01 00:00:01','trunk',1
INSERT INTO `db_schema` VALUES (923,15878,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (924,15879,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (925,15880,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (926,15881,'spce','1970-01-01 00:00:01','trunk',1);
COMMIT;
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;

@ -1197,7 +1197,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=416 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=417 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 */;
@ -3992,7 +3992,7 @@ INSERT INTO `voip_preferences` VALUES (138,9,'cloud_pbx_callqueue','PBX Call Que
INSERT INTO `voip_preferences` VALUES (139,8,'language','Language for voicemail and app server',0,1,1,1,1,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'enum',0,'Voice prompts language for voicemail, conference and application server.',0,0,1);
INSERT INTO `voip_preferences` VALUES (140,2,'adm_cf_ncos_id','Internal Administrative NCOS Level for Call Forward #',1,1,1,1,1,0,0,0,0,0,0,'1970-01-01 00:00:01',1,0,'int',0,NULL,0,0,0);
INSERT INTO `voip_preferences` VALUES (141,2,'adm_cf_ncos','Administrative NCOS Level For Call Forward',0,1,1,1,1,0,0,0,0,0,0,'1970-01-01 00:00:01',-1,0,'string',0,'Specifies the Administrative NCOS Level that applies for the Call Forward from the user.',0,0,0);
INSERT INTO `voip_preferences` VALUES (142,8,'conference_pin','PIN for access to pin-protected conference',0,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'string',0,'PIN for access to private conferencing service.',0,0,1);
INSERT INTO `voip_preferences` VALUES (142,8,'conference_pin','PIN for access to pin-protected conference',0,1,1,1,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'string',0,'PIN for access to private conferencing service.',0,0,1);
INSERT INTO `voip_preferences` VALUES (143,9,'max_queue_length','Call Queue length',0,1,1,1,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'string',0,'Maximum number of callers in a PBX Call Queue. By default 5',0,0,1);
INSERT INTO `voip_preferences` VALUES (144,9,'queue_wrap_up_time','Call Queue wrap-up time, sec',0,1,1,1,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'string',0,'Idle interval before connecting first caller in PBX Call Queue. By default it is 10 seconds',0,0,1);
INSERT INTO `voip_preferences` VALUES (145,5,'rtp_interface','RTP interface',0,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'enum',0,'Logical RTP interface to use for media packets',0,0,0);
@ -4240,6 +4240,7 @@ INSERT INTO `voip_preferences` VALUES (412,8,'call_log_level','Debug log level',
INSERT INTO `voip_preferences` VALUES (413,17,'allow_asymmetric_codecs','Allow asymmetric codecs in RTP streams',1,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'If enabled, rtpengine will accept mismatched RTP payload type numbers between SDP offer and answer, allowing codec matching by name rather than payload type.',0,0,0);
INSERT INTO `voip_preferences` VALUES (414,19,'connect_on_ported','Connect to the final destination using ported number',1,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'In case of successful lookup in the lnp table for a call to a non-local ported number, send the outgoing call to the ported number (used only for lnp local_qor type).',0,0,0);
INSERT INTO `voip_preferences` VALUES (415,19,'ported_n1_to_ruri','Substitute the CLI with the original number (N1)',1,1,1,1,1,0,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'If the caller subscriber is ported and the CLI ported number (N2) matches the allowed_cli list, then substitute the CLI with the original number (N1) (used only for lnp local_qor type).',0,0,0);
INSERT INTO `voip_preferences` VALUES (416,8,'phonebook','Phonebook',1,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',1,1,'boolean',0,'An internal flag for the phonebook pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.',0,0,1);
COMMIT;
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;

Loading…
Cancel
Save