From c5440946b9074c50e26d005e21fa633b17e02c57 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Mon, 1 Apr 2019 11:14:10 +0200 Subject: [PATCH] TT#55151 add allowed_ips_header preference * allowed_ips_header preference provides with a SIP header name to take the IP address from for "allowed_clis" ipauth check Change-Id: I23790881c35534a82993e9afd645a754fb5723c0 --- db_scripts/diff/15522.down | 5 +++++ db_scripts/diff/15522.up | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 db_scripts/diff/15522.down create mode 100644 db_scripts/diff/15522.up diff --git a/db_scripts/diff/15522.down b/db_scripts/diff/15522.down new file mode 100644 index 00000000..1490649b --- /dev/null +++ b/db_scripts/diff/15522.down @@ -0,0 +1,5 @@ +use provisioning; + +delete from voip_preferences where attribute = "allowed_ips_header"; + +commit; diff --git a/db_scripts/diff/15522.up b/db_scripts/diff/15522.up new file mode 100644 index 00000000..57a189d0 --- /dev/null +++ b/db_scripts/diff/15522.up @@ -0,0 +1,27 @@ +use provisioning; + +SELECT id into @vpg_id FROM voip_preference_groups where name = 'Access Restrictions'; + +INSERT INTO voip_preferences + SET +voip_preference_groups_id = @vpg_id, +attribute = 'allowed_ips_header', +label = 'IP header to use for "allowed_ips" check', +type = 0, +max_occur = 1, +usr_pref = 1, +prof_pref = 0, +dom_pref = 1, +peer_pref = 0, +contract_pref = 1, +contract_location_pref = 0, +dev_pref = 0, +devprof_pref = 0, +internal = 0, +expose_to_customer = 0, +data_type = 'string', +read_only = 0, +description = 'Use IP address for "allowed_ips" check from a header name provided in this preference'; + +commit; +