From 36c85115c536fe8d8e24caa7e1be0d23080ac5b9 Mon Sep 17 00:00:00 2001 From: Daniel Grotti Date: Mon, 23 Jan 2023 17:05:34 +0100 Subject: [PATCH] MT#56458 Add new preference 'colp_pstn' The preference, if set, will expose the PSTN number as COLP to the caller PBX user. Change-Id: Iff765a03421962616e41d33693b3f3382cda8b6e --- db_scripts/diff/15752.down | 6 ++++++ db_scripts/diff/15752.up | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 db_scripts/diff/15752.down create mode 100644 db_scripts/diff/15752.up diff --git a/db_scripts/diff/15752.down b/db_scripts/diff/15752.down new file mode 100644 index 00000000..c5e5e69f --- /dev/null +++ b/db_scripts/diff/15752.down @@ -0,0 +1,6 @@ +USE provisioning; +SET autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = 'colp_pstn'; + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15752.up b/db_scripts/diff/15752.up new file mode 100644 index 00000000..26c9e310 --- /dev/null +++ b/db_scripts/diff/15752.up @@ -0,0 +1,29 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpg_id FROM voip_preference_groups + WHERE name='Number Manipulations'; + +INSERT INTO voip_preferences + SET +voip_preference_groups_id = @vpg_id, +attribute = "colp_pstn", +label = "Show PSTN Destination to Caller", +type = 0, +max_occur = 1, +usr_pref = 1, +prof_pref = 1, +dom_pref = 1, +peer_pref = 0, +contract_pref = 0, +contract_location_pref = 0, +dev_pref = 0, +devprof_pref = 0, +fielddev_pref = 0, +internal = 0, +expose_to_customer = 1, +data_type = "boolean", +read_only = 0, +description = "When calling PSTN, show the destination number or user back to the calling party."; + +COMMIT; \ No newline at end of file