From a78d5dedfac8bd398fa0169ae05c9390d69e17db Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Mon, 19 Feb 2018 12:06:13 +0100 Subject: [PATCH] TT#33103 Add peer outbound_hostname_resolution preference If activated, the preference will force the system to resolve the hostname to find the proper destination IP. Change-Id: I05da4e2ed3e048a1fc7f85558dc0becc3246bb10 --- db_scripts/diff/15384.down | 3 +++ db_scripts/diff/15384.up | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 db_scripts/diff/15384.down create mode 100644 db_scripts/diff/15384.up diff --git a/db_scripts/diff/15384.down b/db_scripts/diff/15384.down new file mode 100644 index 00000000..a65ed076 --- /dev/null +++ b/db_scripts/diff/15384.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute='outbound_hostname_resolution'; diff --git a/db_scripts/diff/15384.up b/db_scripts/diff/15384.up new file mode 100644 index 00000000..8f24b862 --- /dev/null +++ b/db_scripts/diff/15384.up @@ -0,0 +1,16 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @grpid FROM voip_preference_groups WHERE name = 'Internals'; + +INSERT INTO voip_preferences( + id,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 + (NULL, @grpid, 'outbound_hostname_resolution', 'Hostname DNS resolution will be used instead of the Peer IP', 0, 1, + 0, 0, 0, 1, 0, 0, + now(), 0, 0, 'boolean', 0, 'Force the system to resolve the peer hostname using DNS to get the destination IP. If activated the peer IP configured in the systed is used for inbound calls only.' + ); + +COMMIT;