From add1a99ef960eebc68b5749baccf88815fd2fdcd Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Fri, 14 Dec 2018 15:31:55 +0100 Subject: [PATCH] TT#49063 Control Alert-Info header for distinctive ring Change-Id: Idfa8bbcbd3385f2ff431d1093c40959ec7a76c9f --- db_scripts/diff/15452.down | 5 +++++ db_scripts/diff/15452.up | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 db_scripts/diff/15452.down create mode 100644 db_scripts/diff/15452.up diff --git a/db_scripts/diff/15452.down b/db_scripts/diff/15452.down new file mode 100644 index 00000000..f7ac0080 --- /dev/null +++ b/db_scripts/diff/15452.down @@ -0,0 +1,5 @@ +USE provisioning; + +SELECT id INTO @vpid FROM voip_preferences WHERE attribute = 'alert_info_type'; +DELETE FROM voip_preferences_enum WHERE preference_id = @vpid; +DELETE FROM voip_preferences WHERE attribute IN ('alert_info_type', 'alert_info_url'); diff --git a/db_scripts/diff/15452.up b/db_scripts/diff/15452.up new file mode 100644 index 00000000..595db4ff --- /dev/null +++ b/db_scripts/diff/15452.up @@ -0,0 +1,33 @@ +USE provisioning; + +SELECT id INTO @vgid FROM voip_preference_groups WHERE name = 'Internals'; + +INSERT INTO voip_preferences VALUES ( + NULL, @vgid, 'alert_info_type', 'Alert-Info Type', + 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, + now(), 0, 0, 'enum', 0, + 'Whether to send a specific Alert-Info to the called party to control the ring tone', 0 +); +SELECT LAST_INSERT_ID() INTO @vpid; +INSERT INTO voip_preferences_enum VALUES ( + NULL, @vpid, 'default', NULL, + 1, 0, 1, 0, 0, 0, 0, 0, 0, + 1 +); +INSERT INTO voip_preferences_enum VALUES ( + NULL, @vpid, 'internal_external', 'internal_external', + 1, 0, 1, 0, 0, 0, 0, 0, 0, + 0 +); +INSERT INTO voip_preferences_enum VALUES ( + NULL, @vpid, 'url', 'url', + 1, 0, 1, 0, 0, 0, 0, 0, 0, + 0 +); + +INSERT INTO voip_preferences VALUES ( + NULL, @vgid, 'alert_info_url', 'Alert-Info URL', + 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, + now(), 0, 0, 'string', 0, + 'If the Alert-Info Type is set to "url", then specify a URL to a ring tone file (e.g. a WAV file) here', 0 +);