From f541f37a22c5fc6ef016b988c3238eaf51c56de8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 19 Dec 2018 10:24:52 -0500 Subject: [PATCH] TT#49045 add prefs to leave media direction attrs unchanged Change-Id: I85e804d10a672a42feeb03db5babd8b990d3a429 --- db_scripts/diff/15453.down | 6 ++++++ db_scripts/diff/15453.up | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 db_scripts/diff/15453.down create mode 100644 db_scripts/diff/15453.up diff --git a/db_scripts/diff/15453.down b/db_scripts/diff/15453.down new file mode 100644 index 00000000..92196b4a --- /dev/null +++ b/db_scripts/diff/15453.down @@ -0,0 +1,6 @@ +USE provisioning; +set autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = "original_sendrecv"; + +commit; diff --git a/db_scripts/diff/15453.up b/db_scripts/diff/15453.up new file mode 100644 index 00000000..a4d5b942 --- /dev/null +++ b/db_scripts/diff/15453.up @@ -0,0 +1,25 @@ +use provisioning; +set autocommit=0; + +insert into voip_preferences + set +voip_preference_groups_id = (select id from voip_preference_groups where name="NAT and Media Flow Control"), +attribute = "original_sendrecv", +label = "Leave media direction attributes in SDP unchanged", +type = 1, +max_occur = 1, +usr_pref = 1, +prof_pref = 0, +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 = "If enabled, the media direction attributes (sendrecv, sendonly, recvonly, inactive) from the original SDP will remain unchanged as they were received"; + +commit;