From ed3bd640dbd79ea086d4bdc4d18ec540ec707e29 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 29 Dec 2020 14:33:50 -0500 Subject: [PATCH] TT#100602 add flags for ICE-lite support Change-Id: I96b429ef33e4db93e0d4394fb1dea78a3b13ffcb --- db_scripts/diff/15648.down | 3 +++ db_scripts/diff/15648.up | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 db_scripts/diff/15648.down create mode 100644 db_scripts/diff/15648.up diff --git a/db_scripts/diff/15648.down b/db_scripts/diff/15648.down new file mode 100644 index 00000000..c7558006 --- /dev/null +++ b/db_scripts/diff/15648.down @@ -0,0 +1,3 @@ +use provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'ICE_lite'; diff --git a/db_scripts/diff/15648.up b/db_scripts/diff/15648.up new file mode 100644 index 00000000..953d166a --- /dev/null +++ b/db_scripts/diff/15648.up @@ -0,0 +1,28 @@ +USE provisioning; +SET autocommit=0; + + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'NAT and Media Flow Control'; + +INSERT INTO voip_preferences SET + voip_preference_groups_id = @pgid, + attribute = "ICE_lite", + label = "Restrict ICE support to ICE-lite", + type = 0, + max_occur = 1, + usr_pref = 1, + prof_pref = 1, + dom_pref = 1, + peer_pref = 1, + contract_pref = 0, + contract_location_pref = 0, + dev_pref = 0, + devprof_pref = 0, + internal = 0, + expose_to_customer = 0, + data_type = "boolean", + read_only = 0, + description = "When ICE support is enabled towards this peer, act as an ICE agent that supports only ICE-lite instead of full ICE."; + + +COMMIT;