From bff55432b60e05bf11e7e276ed3385b49a4dbce8 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Mon, 21 Jun 2021 16:45:54 +0200 Subject: [PATCH] TT#82409 Introducing new 'peer_auth_hf_user' peer/subscriber preference New peer/subscriber preference introduced: * 'peer_auth_hf_user' - gives a possibility to specifically define the 'username' parameter of the Authorization header. Change-Id: I295a4b548b95de5ca106281a71b6efa9c67d79d8 --- db_scripts/diff/15683.down | 3 +++ db_scripts/diff/15683.up | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 db_scripts/diff/15683.down create mode 100644 db_scripts/diff/15683.up diff --git a/db_scripts/diff/15683.down b/db_scripts/diff/15683.down new file mode 100644 index 00000000..2c2f9d2c --- /dev/null +++ b/db_scripts/diff/15683.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute in ('peer_auth_hf_user'); diff --git a/db_scripts/diff/15683.up b/db_scripts/diff/15683.up new file mode 100644 index 00000000..8fa66ea0 --- /dev/null +++ b/db_scripts/diff/15683.up @@ -0,0 +1,26 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Remote Authentication'; + +INSERT INTO voip_preferences SET + voip_preference_groups_id = @pgid, + attribute = "peer_auth_hf_user", + label = "Specific value for the Authorization username", + type = 0, + max_occur = 1, + usr_pref = 1, + prof_pref = 0, + dom_pref = 0, + peer_pref = 1, + contract_pref = 0, + contract_location_pref = 0, + dev_pref = 0, + devprof_pref = 0, + internal = 0, + expose_to_customer = 0, + data_type = "string", + read_only = 0, + description = "This value will be specifically used as the 'username' parameter in the Proxy-Authorization/Authorization header (an invitation/a registration session accordingly)" ; + +commit;