From 4930188c6d5d650502d9426d1ca4afa1b8a9b926 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Tue, 8 May 2018 11:31:22 +0200 Subject: [PATCH] TT#32926 Add lcr_peer_cf in usr and dom voip preferences Change-Id: I5a5da5cfdd38e0f5a30862e07a9001441ec41a67 --- db_scripts/diff/15401.down | 3 +++ db_scripts/diff/15401.up | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 db_scripts/diff/15401.down create mode 100644 db_scripts/diff/15401.up diff --git a/db_scripts/diff/15401.down b/db_scripts/diff/15401.down new file mode 100644 index 00000000..da2eed0e --- /dev/null +++ b/db_scripts/diff/15401.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'lcr_peer_cf'; diff --git a/db_scripts/diff/15401.up b/db_scripts/diff/15401.up new file mode 100644 index 00000000..31ea5578 --- /dev/null +++ b/db_scripts/diff/15401.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 = 'Internals'), + 'lcr_peer_cf', 'Peer selection based on forwarder number', 1, 1, + 1, 1, 1, 0, 0, + 0, 0, 0, + now(), 0, 0, 'boolean', 0, + 'If set and a CF to an outbound number is configured on the subscriber, the selection of the outbound peer is done using the forwarder as caller number.' +);