make sst_enable preference an enum

2.6
Andrew Pogrebennyk 14 years ago
parent 08e2dbcca9
commit 78a0dd8039

@ -1,7 +1,9 @@
DELETE FROM provisioning.voip_preferences_enum WHERE preference_id =
(SELECT id FROM provisioning.voip_preferences WHERE attribute = 'sst_enable');
DELETE FROM provisioning.voip_preferences_enum WHERE preference_id =
(SELECT id FROM provisioning.voip_preferences WHERE attribute = 'sst_refresh_method');
DELETE FROM provisioning.voip_preferences where attribute = 'sst_enable';
DELETE FROM provisioning.voip_preferences where attribute = 'sst_refresh_method';
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';

@ -1,7 +1,13 @@
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.');
VALUES('sst_enable', 0, 1, 1, 1, 'enum', 1, 'Enable SIP Session Timers.');
INSERT INTO voip_preferences_enum (preference_id, label, value)
VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_enable'), 'yes', 'yes');
INSERT INTO voip_preferences_enum (preference_id, label, value)
VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_enable'), 'no', 'no');
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)

Loading…
Cancel
Save