From aa9c23f009dfe1c85169e949eea8fda325990bbe Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 23 Sep 2020 15:44:19 +0200 Subject: [PATCH] TT#93552 Introduce new 'pbx_extension' option in outbound_to_user Change-Id: Ia1bbf67c755593a82a9a509513a5dd6aa7dc6e3e (cherry picked from commit 7a02fe6b8325a940efe109491991c3f1a0bc9f99) (cherry picked from commit 98ad8ef322252eda7ddb04fad3fa9c23826a73e8) --- db_scripts/diff/15619.down | 12 ++++++++++++ db_scripts/diff/15619.up | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 db_scripts/diff/15619.down create mode 100644 db_scripts/diff/15619.up diff --git a/db_scripts/diff/15619.down b/db_scripts/diff/15619.down new file mode 100644 index 00000000..1b23a71c --- /dev/null +++ b/db_scripts/diff/15619.down @@ -0,0 +1,12 @@ +USE provisioning; +SET autocommit=0; + + +SELECT id INTO @vpid FROM voip_preferences + WHERE attribute = 'outbound_to_user'; + +DELETE FROM voip_preferences_enum + WHERE preference_id=@vpid and value = 'pbx_extension'; + + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15619.up b/db_scripts/diff/15619.up new file mode 100644 index 00000000..791b5167 --- /dev/null +++ b/db_scripts/diff/15619.up @@ -0,0 +1,15 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpid FROM voip_preferences + WHERE attribute = 'outbound_to_user'; + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref, dev_pref, devprof_pref, default_val) +VALUES ( + @vpid, 'intra-PBX extension OR Called user', + 'pbx_extension', + 1, 0, 1, 1, 0, 0, 0, 0, NULL +); + +COMMIT; \ No newline at end of file