From 87531e27f400ff860d523cfcfa1f3d397c519a4e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 9 Oct 2020 14:47:31 -0400 Subject: [PATCH] TT#92250 add single-codec option Change-Id: Ibe9ec7ce5827b7ac08c515a502fa75421b50a9a0 --- db_scripts/diff/15628.down | 3 +++ db_scripts/diff/15628.up | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 db_scripts/diff/15628.down create mode 100644 db_scripts/diff/15628.up diff --git a/db_scripts/diff/15628.down b/db_scripts/diff/15628.down new file mode 100644 index 00000000..7b820506 --- /dev/null +++ b/db_scripts/diff/15628.down @@ -0,0 +1,3 @@ +use provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'single_codec'; diff --git a/db_scripts/diff/15628.up b/db_scripts/diff/15628.up new file mode 100644 index 00000000..0f33e4c5 --- /dev/null +++ b/db_scripts/diff/15628.up @@ -0,0 +1,29 @@ +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 = "single_codec", + label = "Single-codec answers", + 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 = "Restrict every answer to just the first preferred codec."; + + +COMMIT;