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
mr12.0
Daniel Grotti 2 years ago
parent e985a1a238
commit f64b93528f

@ -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;

@ -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;
Loading…
Cancel
Save