From ae91ea8ee72ca58aced71acdc05b6983b0f79d4c Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 15 Mar 2016 17:14:15 +0100 Subject: [PATCH] MT#16777 Add caller lnp lookup peer pref This is used to enable an LNP lookup for calls from peers using the network-provided calling party number. Useful to write the source_lnp_prefix for a specific number block into CDRs. Change-Id: Ie2a60c6c62d06b688b38db45dba5843735c8981c --- db_scripts/diff/15228.down | 3 +++ db_scripts/diff/15228.up | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 db_scripts/diff/15228.down create mode 100644 db_scripts/diff/15228.up diff --git a/db_scripts/diff/15228.down b/db_scripts/diff/15228.down new file mode 100644 index 00000000..742dd542 --- /dev/null +++ b/db_scripts/diff/15228.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'caller_lnp_lookup'; diff --git a/db_scripts/diff/15228.up b/db_scripts/diff/15228.up new file mode 100644 index 00000000..bc8fda5a --- /dev/null +++ b/db_scripts/diff/15228.up @@ -0,0 +1,18 @@ +SET AUTOCOMMIT=0; + +USE provisioning; + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Internals'; + +INSERT INTO voip_preferences + (voip_preference_groups_id, attribute, label, type, max_occur, + usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, + modify_timestamp, internal, expose_to_customer, data_type, read_only, + description) + VALUES + (@pgid, 'caller_lnp_lookup', 'Default LNP prefix', 1, 1, + 0, 0, 0, 1, 0, + now(), 0, 0, 'boolean', 0, + 'If enabled, an LNP lookup is performed for calls from this peer using the network-provided calling party number. The resulting LNP prefix is written to CDRs as source_lnp_prefix.'); + +COMMIT;