From b84bd6e13b006f2dc8fb67cc84ee44b5e380620f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 6 Mar 2023 12:28:02 -0500 Subject: [PATCH] MT#56782 add option for mono Opus format If any user depends on the previous format for mono Opus, this makes it possible to preserve the old behaviour. Change-Id: Ib0587585278cf143046b1210e93c6f8230b81749 --- db_scripts/diff/15756.down | 6 ++++++ db_scripts/diff/15756.up | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 db_scripts/diff/15756.down create mode 100644 db_scripts/diff/15756.up diff --git a/db_scripts/diff/15756.down b/db_scripts/diff/15756.down new file mode 100644 index 00000000..0bab9048 --- /dev/null +++ b/db_scripts/diff/15756.down @@ -0,0 +1,6 @@ +use provisioning; +set autocommit=0; + +delete from voip_preferences where attribute = 'opus_legacy_mono'; + +commit; diff --git a/db_scripts/diff/15756.up b/db_scripts/diff/15756.up new file mode 100644 index 00000000..523b5e71 --- /dev/null +++ b/db_scripts/diff/15756.up @@ -0,0 +1,24 @@ +use provisioning; +set autocommit=0; + +insert into voip_preferences set + voip_preference_groups_id = (select id from voip_preference_groups where name="Media Codec Transcoding Options"), + attribute = "opus_legacy_mono", + label = "Legacy Opus mono format", + 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 = "Use legacy non-standard method to signal single-channel Opus. The default is the standards-compliant method of always advertising Opus as a two-channel format while hinting to mono usage as a format parameter."; + +commit;