From eabd9942a8b3f6d4e5f5b1405f91f621369eb01c Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Tue, 11 May 2021 18:19:27 +0200 Subject: [PATCH] TT#120551 Create new early_media soundset section Move the under the new section the announce handles: * announce_before_call_setup * announce_before_cf * announce_before_recording * announce_to_callee' Change-Id: I698dd74a5b8c7f94253bf1763ebb533a41f0ba07 --- db_scripts/diff/15676.down | 8 ++++++++ db_scripts/diff/15676.up | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 db_scripts/diff/15676.down create mode 100644 db_scripts/diff/15676.up diff --git a/db_scripts/diff/15676.down b/db_scripts/diff/15676.down new file mode 100644 index 00000000..63d00f72 --- /dev/null +++ b/db_scripts/diff/15676.down @@ -0,0 +1,8 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @rej_id FROM voip_sound_groups WHERE name = 'early_rejects'; +UPDATE voip_sound_handles SET group_id = @rej_id WHERE name IN ('announce_before_call_setup', 'announce_before_cf', 'announce_before_recording', 'announce_to_callee'); +DELETE FROM voip_sound_groups WHERE name = 'early_media'; + +commit; \ No newline at end of file diff --git a/db_scripts/diff/15676.up b/db_scripts/diff/15676.up new file mode 100644 index 00000000..2c686a00 --- /dev/null +++ b/db_scripts/diff/15676.up @@ -0,0 +1,8 @@ +USE provisioning; +SET autocommit=0; + +INSERT INTO voip_sound_groups (name) VALUES ('early_media'); +SELECT id INTO @rej_id FROM voip_sound_groups WHERE name = 'early_media'; +UPDATE voip_sound_handles SET group_id = @rej_id WHERE name IN ('announce_before_call_setup', 'announce_before_cf', 'announce_before_recording', 'announce_to_callee'); + +commit; \ No newline at end of file