mirror of https://github.com/sipwise/db-schema.git
parent
6b96c44a2e
commit
f3804fe133
@ -0,0 +1,9 @@
|
||||
USE provisioning;
|
||||
|
||||
DELETE FROM voip_preferences WHERE attribute = 'force_strict_number_match';
|
||||
|
||||
SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'Number Manipulations';
|
||||
SELECT id INTO @new_vpgid FROM voip_preference_groups WHERE name = 'Call Blockings';
|
||||
|
||||
UPDATE voip_preferences SET voip_preference_groups_id=@new_vpgid WHERE attribute='clir_intrapbx'
|
||||
AND voip_preference_groups_id=@vpgid;
|
||||
@ -0,0 +1,18 @@
|
||||
USE provisioning;
|
||||
set autocommit = 0;
|
||||
|
||||
SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'Number Manipulations';
|
||||
|
||||
INSERT INTO voip_preferences VALUES
|
||||
(NULL, @vpgid, 'force_strict_number_match', 'Strict Number Matching', 1, 1, 1, 1, 0, 0, now(), 0, 1,
|
||||
'boolean', 0, '"Strict Number Matching" - if set to true the dialed number must match subscriber exactly. Dialing arbitrary extension behind subscriber number is not allowed.'
|
||||
);
|
||||
|
||||
-- move clir_intrapbx from the Call Blockings to Number Manipulations group
|
||||
|
||||
SELECT id INTO @old_vpgid FROM voip_preference_groups WHERE name = 'Call Blockings';
|
||||
|
||||
UPDATE voip_preferences SET voip_preference_groups_id=@vpgid WHERE attribute='clir_intrapbx'
|
||||
AND voip_preference_groups_id=@old_vpgid;
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue