From 452cdcc8399dcf76431de6755078d8d11aa7735f Mon Sep 17 00:00:00 2001 From: Alessio Garzi Date: Fri, 21 Jan 2022 08:59:57 +0100 Subject: [PATCH] TT#109104 new peer preference 'allow_lm_forward_loop' By default calls that come from a peer group and are looped back to the same peer group due to a subscriber location mappings 'forward' entry are blocked to avoid loop creation. This preference allows to override the default behavior and permit the loop over the same peering group. It has to be used with caution and activated only if necessary. Change-Id: I5040204805c3b2a740250cec11a8e9914333f10b --- db_scripts/diff/15715.down | 3 +++ db_scripts/diff/15715.up | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 db_scripts/diff/15715.down create mode 100644 db_scripts/diff/15715.up diff --git a/db_scripts/diff/15715.down b/db_scripts/diff/15715.down new file mode 100644 index 00000000..83645bb5 --- /dev/null +++ b/db_scripts/diff/15715.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'allow_lm_forward_loop' ; \ No newline at end of file diff --git a/db_scripts/diff/15715.up b/db_scripts/diff/15715.up new file mode 100644 index 00000000..97bb435a --- /dev/null +++ b/db_scripts/diff/15715.up @@ -0,0 +1,25 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Internals'; + +INSERT INTO voip_preferences SET + voip_preference_groups_id = @pgid, + attribute = "allow_lm_forward_loop", + label = "Allow loop to same peering group for location mapping 'forward'" , + type = 1, + max_occur = 1, + usr_pref = 0, + prof_pref = 0, + dom_pref = 0, + peer_pref = 1, + contract_pref = 0, + contract_location_pref = 0, + modify_timestamp = now(), + internal = 0, + expose_to_customer = 0, + data_type = "boolean", + read_only = 0, + description = "By default calls that come from a peer group and are looped back to the same peer group due to a subscriber location mappings 'forward' entry are blocked to avoid loop creation. This preference allows to override the default behavior and permit the loop over the same peering group. It has to be used with caution and activated only if necessary."; + +COMMIT; \ No newline at end of file