mirror of https://github.com/sipwise/db-schema.git
In the process of improvement and optimization of the whole soundset structure, it is fundamental to make the contract soundset behaving exactly like the system soundsets. Due to that now all the announcements are exposed to customers Change-Id: I5da9162ed544e69336e954d9257a180898157014mr11.3
parent
60978e5c31
commit
00a754e9c7
@ -0,0 +1,15 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
-- Set by default all the handles as NOT exposed to customer
|
||||
UPDATE voip_sound_handles SET expose_to_customer = 0;
|
||||
|
||||
-- Set to 1 only the handles belonging to groups that have to be exposed
|
||||
SELECT id INTO @pbxgid FROM voip_sound_groups WHERE name = 'pbx';
|
||||
SELECT id INTO @mohgid FROM voip_sound_groups WHERE name = 'music_on_hold';
|
||||
SELECT id INTO @diggid FROM voip_sound_groups WHERE name = 'digits';
|
||||
SELECT id INTO @anngid FROM voip_sound_groups WHERE name = 'custom_announcements';
|
||||
|
||||
UPDATE voip_sound_handles SET expose_to_customer = 1 WHERE group_id in (@pbxgid, @mohgid, @diggid, @anngid);
|
||||
|
||||
COMMIT;
|
@ -0,0 +1,6 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
UPDATE voip_sound_handles SET expose_to_customer = 1;
|
||||
|
||||
COMMIT;
|
Loading…
Reference in new issue