From 1910577a074b1e4f40614eaf5d2a418d1ed26567 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 9 Jan 2017 12:55:34 +0100 Subject: [PATCH] TT#6422 Introduce outbound diversion counter If set, force counter param in outbound diversion header to peer to the given value. Change-Id: Ifcb7a15112bfa8d6d7b7bfa748ddfaf6be35f879 --- db_scripts/diff/15312.down | 5 +++++ db_scripts/diff/15312.up | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 db_scripts/diff/15312.down create mode 100644 db_scripts/diff/15312.up diff --git a/db_scripts/diff/15312.down b/db_scripts/diff/15312.down new file mode 100644 index 00000000..05c6a6f9 --- /dev/null +++ b/db_scripts/diff/15312.down @@ -0,0 +1,5 @@ +SET AUTOCOMMIT=0; + +USE provisioning; +DELETE FROM voip_preferences WHERE attribute = 'outbound_diversion_counter'; +COMMIT; diff --git a/db_scripts/diff/15312.up b/db_scripts/diff/15312.up new file mode 100644 index 00000000..496b0092 --- /dev/null +++ b/db_scripts/diff/15312.up @@ -0,0 +1,18 @@ +SET AUTOCOMMIT=0; + +USE provisioning; + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Number Manipulations'; + +INSERT INTO voip_preferences + (voip_preference_groups_id, attribute, label, type, max_occur, + usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref, + modify_timestamp, internal, expose_to_customer, data_type, read_only, + description) + VALUES + (@pgid, 'outbound_diversion_counter', 'Force Diversion counter', 0, 1, + 0, 0, 0, 1, 0, 0, + now(), 0, 0, 'string', 0, + 'If set, the value given here is forced as counter parameter in the outbound Diversion header.'); + +COMMIT;