MT#8275 Add reject_vsc usr/dom pref and sound

This allows to reject any VSC coming from the subscriber, disabling
the possibility to provision subscriber features on the system.

Change-Id: I5cceb70875467a8252ce588ddc90d4c2fbd3c8de
changes/11/7111/3
Andreas Granig 9 years ago
parent b98de2b0e3
commit 8ce3fbe8ce

@ -0,0 +1,3 @@
USE provisioning;
DELETE FROM voip_preferences WHERE attribute = 'reject_vsc';

@ -0,0 +1,19 @@
use provisioning;
set autocommit=0;
SELECT id into @vpg_id FROM voip_preference_groups where name = 'Access Restrictions';
INSERT INTO voip_preferences
(voip_preference_groups_id, attribute, label, type, max_occur,
usr_pref, prof_pref, dom_pref, peer_pref, contract_pref,
modify_timestamp, internal, expose_to_customer, data_type, read_only,
description
)
VALUES
(@vpg_id, 'reject_vsc', "Reject Vertical Service Codes sent by subscriber", 1, 1,
1, 0, 1, 0, 0,
NOW(), 0, 0, 'boolean', 0,
'If enabled, any vertical service codes, e.g. *99*1234, are rejected by the system to disable the possibility of provisioning features via phones .'
);
commit;

@ -0,0 +1,3 @@
use provisioning
DELETE FROM voip_sound_handles WHERE name = 'reject_vsc';

@ -0,0 +1,4 @@
USE provisioning
SELECT id INTO @rej_id FROM voip_sound_groups WHERE name = 'early_rejects';
INSERT INTO voip_sound_handles (name,group_id) VALUES ('reject_vsc', @rej_id);
Loading…
Cancel
Save