From f64b93528f97c0246b9384058d8fd68f12f48624 Mon Sep 17 00:00:00 2001 From: Daniel Grotti Date: Thu, 14 Sep 2023 15:54:32 +0200 Subject: [PATCH] MT#58277 New preference sip_ping_notify and sip_ping_notify_codecs_list If preference 'sip_ping_notify' is set and the user fails to reply to the NGCP SIP ping (OPTIONS), the system will trigger a CSTA event if and only if the reply code matches the 'sip_ping_notify_codecs_list'. Reply codes 200, 403, 404, 405 and 486 are considered 'good' replies and will never trigger a CSTA notification. Change-Id: I9639fdd2abdfb6beeb935d3c4f32e3c32d43f947 --- db_scripts/diff/15781.down | 7 +++++ db_scripts/diff/15781.up | 54 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 db_scripts/diff/15781.down create mode 100644 db_scripts/diff/15781.up diff --git a/db_scripts/diff/15781.down b/db_scripts/diff/15781.down new file mode 100644 index 00000000..91e813d0 --- /dev/null +++ b/db_scripts/diff/15781.down @@ -0,0 +1,7 @@ +USE provisioning; +SET autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = 'sip_ping_notify'; +DELETE FROM voip_preferences WHERE attribute = 'sip_ping_notify_codecs_list'; + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15781.up b/db_scripts/diff/15781.up new file mode 100644 index 00000000..8bffc9e7 --- /dev/null +++ b/db_scripts/diff/15781.up @@ -0,0 +1,54 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpg_id FROM voip_preference_groups + WHERE name='NAT and Media Flow Control'; + +INSERT INTO voip_preferences + SET +voip_preference_groups_id = @vpg_id, +attribute = "sip_ping_notify", +label = "Enable CSTA notification", +type = 0, +max_occur = 1, +usr_pref = 1, +prof_pref = 1, +dom_pref = 0, +peer_pref = 0, +contract_pref = 0, +contract_location_pref = 0, +dev_pref = 0, +devprof_pref = 0, +fielddev_pref = 0, +internal = 0, +expose_to_customer = 0, +expose_to_subscriber = 0, +data_type = "boolean", +read_only = 0, +description = "When a user fails answering to our SIP ping, trigger a CSTA notification."; + +INSERT INTO voip_preferences + SET +voip_preference_groups_id = @vpg_id, +attribute = "sip_ping_notify_codecs_list", +label = "Reply code triggering notify", +type = 0, +max_occur = 0, +usr_pref = 1, +prof_pref = 1, +dom_pref = 0, +peer_pref = 0, +contract_pref = 0, +contract_location_pref = 0, +dev_pref = 0, +devprof_pref = 0, +fielddev_pref = 0, +internal = 0, +expose_to_customer = 0, +expose_to_subscriber = 0, +data_type = "int", +read_only = 0, +description = "Specify the list of SIP responses to the SIP ping that triggers a CSTA event notification. NOTE: the following reply codes will never trigger an event because they are considered positive answers: 200, 403, 404, 405, 486."; + + +COMMIT; \ No newline at end of file