diff --git a/db_scripts/diff/8704.down b/db_scripts/diff/8704.down new file mode 100644 index 00000000..253b358a --- /dev/null +++ b/db_scripts/diff/8704.down @@ -0,0 +1,6 @@ +DELETE FROM voip_preferences_enum WHERE preference_id = (SELECT id FROM voip_preferences WHERE attribute = 'sst_refresh_method'); +DELETE FROM provisioning.voip_preferences where attribute = 'sst_enable'; +DELETE FROM provisioning.voip_preferences where attribute = 'sst_expires'; +DELETE FROM provisioning.voip_preferences where attribute = 'sst_min_timer'; +DELETE FROM provisioning.voip_preferences where attribute = 'sst_max_timer'; +DELETE FROM provisioning.voip_preferences where attribute = 'sst_refresh_method'; diff --git a/db_scripts/diff/8704.up b/db_scripts/diff/8704.up new file mode 100644 index 00000000..cc8586bb --- /dev/null +++ b/db_scripts/diff/8704.up @@ -0,0 +1,19 @@ +USE provisioning + +INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) + VALUES('sst_enable', 1, 1, 1, 1, 'boolean', 1, 'Enable SIP Session Timers.'); +INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) + VALUES('sst_expires', 1, 1, 1, 1, 'int', 1, 'SIP Session Timers refresh interval (seconds). SBC will make refresh at the half of this interval.'); +INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) + VALUES('sst_min_timer', 1, 1, 1, 1, 'int', 1, 'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.'); +INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) + VALUES('sst_max_timer', 1, 1, 1, 1, 'int', 1, 'Set Max-SE value in SBC. This is also used to build 422 reply if remote Max-SE is greater than local Max-SE.'); +INSERT INTO voip_preferences (attribute, type, max_occur, usr_pref, dom_pref, peer_pref, internal, data_type, read_only, description) + VALUES('sst_refresh_method', 1, 1, 1, 1, 1, 0, 'enum', 0, 'SIP Session Timers refresh method.'); + +INSERT INTO voip_preferences_enum (preference_id, label, value) + VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_refresh_method'), 'UPDATE_FALLBACK_INVITE', 'UPDATE_FALLBACK_INVITE'); +INSERT INTO voip_preferences_enum (preference_id, label, value) + VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_refresh_method'), 'UPDATE', 'UPDATE'); +INSERT INTO voip_preferences_enum (preference_id, label, value) + VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_refresh_method'), 'INVITE', 'INVITE');