From 9f6c7dd1c4670d1d1b71d7e8761b9b4cb8ab7104 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 13 Nov 2019 16:29:38 +0100 Subject: [PATCH] TT#70327 Add 'stop_forking_code_lists' subscriber's preference It contains a list of SIP codes that is matched with the response code received in reply from the subscriber's contacts in case of call failure. In case of match, the forking based on Q value is stopped and the code is transparently signaled back to the caller, whereas also an announcement can be played if configured in the existing sound set. Response codes 600, 603, 604, 606 are implicitly included in the list. Change-Id: Iec6ccad25aa59130ecd5c9add2e83c1341ff49eb --- db_scripts/diff/15566.down | 6 ++++++ db_scripts/diff/15566.up | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 db_scripts/diff/15566.down create mode 100644 db_scripts/diff/15566.up diff --git a/db_scripts/diff/15566.down b/db_scripts/diff/15566.down new file mode 100644 index 00000000..6ded843d --- /dev/null +++ b/db_scripts/diff/15566.down @@ -0,0 +1,6 @@ +USE provisioning; +set autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = "stop_forking_code_lists"; + +commit; \ No newline at end of file diff --git a/db_scripts/diff/15566.up b/db_scripts/diff/15566.up new file mode 100644 index 00000000..6dcd5d6d --- /dev/null +++ b/db_scripts/diff/15566.up @@ -0,0 +1,25 @@ +use provisioning; +set autocommit=0; + +insert into voip_preferences + set +voip_preference_groups_id = (select id from voip_preference_groups where name="Internals"), +attribute = "stop_forking_code_lists", +label = "List of response codes for which the forking is stopped", +type = 0, +max_occur = 0, +usr_pref = 1, +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 = "int", +read_only = 0, +description = "Contains a list of SIP codes that is matched with the response code received in reply from the subscriber's contacts in case of call failure. In case of match, the forking based on Q value is stopped and the code is transparently signaled back to the caller, whereas also an announcement can be played if configured in the existing sound set. Response codes 600, 603, 604, 606 are implicitly included in the list."; + +commit; \ No newline at end of file