From b2e5dae1f828ce57d84f1f3aa57d57a00fc203e7 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 12 Mar 2018 15:10:31 +0100 Subject: [PATCH] TT#32827 Add 'divert_out_blocked' preference To be used to divert call to a given number if the outbound call is blocked due to block lists or NCOS. Change-Id: Id3acdfe38ef0a4ab211b96678cdf93fad12f85c7 --- db_scripts/diff/15390.down | 3 +++ db_scripts/diff/15390.up | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 db_scripts/diff/15390.down create mode 100644 db_scripts/diff/15390.up diff --git a/db_scripts/diff/15390.down b/db_scripts/diff/15390.down new file mode 100644 index 00000000..b6a169ad --- /dev/null +++ b/db_scripts/diff/15390.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'divert_block_out'; diff --git a/db_scripts/diff/15390.up b/db_scripts/diff/15390.up new file mode 100644 index 00000000..042cd313 --- /dev/null +++ b/db_scripts/diff/15390.up @@ -0,0 +1,16 @@ +USE provisioning; +INSERT INTO voip_preferences ( + voip_preference_groups_id, + attribute, label, type, max_occur, + usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, + contract_location_pref, dev_pref, devprof_pref, + modify_timestamp, internal, expose_to_customer, data_type, read_only, + description +) VALUES ( + (SELECT id FROM voip_preference_groups WHERE NAME = 'Call Blockings'), + 'divert_block_out', 'Divert Outgoing Blocked Calls', 0, 1, + 1, 0, 0, 0, 1, + 0, 0, 0, + now(), 0, 0, 'string', 0, + 'If set to a number, any outbound calls which are blocked due to outbound block lists or NCOS levels are diverted to the given number.' +);