From 1293c694417fe686ba86c967e9c6349c7e06eed1 Mon Sep 17 00:00:00 2001 From: Victor Seva <vseva@sipwise.com> Date: Mon, 24 May 2021 14:53:49 +0200 Subject: [PATCH] TT#91051 STIR related voip_preferences * added to the 'Internals' group * stir_pub_url: Public key needs to be accessible to others Change-Id: Icdb3c6ec774b396fe592d2e73a492ce06aa11418 --- db_scripts/diff/15678.down | 3 +++ db_scripts/diff/15678.up | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 db_scripts/diff/15678.down create mode 100644 db_scripts/diff/15678.up diff --git a/db_scripts/diff/15678.down b/db_scripts/diff/15678.down new file mode 100644 index 00000000..3aa4305e --- /dev/null +++ b/db_scripts/diff/15678.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute in ('stir_pub_url'); diff --git a/db_scripts/diff/15678.up b/db_scripts/diff/15678.up new file mode 100644 index 00000000..e6225f0a --- /dev/null +++ b/db_scripts/diff/15678.up @@ -0,0 +1,26 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name='Internals'; + +INSERT INTO voip_preferences SET + voip_preference_groups_id = @vpg_id, + attribute = "stir_pub_url", + label = "Public key HTTP URL", + type = 0, + max_occur = 1, + usr_pref = 0, + prof_pref = 0, + dom_pref = 1, + peer_pref = 0, + 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 = "RFC8224 Authenticated Identity Management in the Session Initiation Protocol"; + +commit;