diff --git a/db_scripts/diff/15578.down b/db_scripts/diff/15578.down new file mode 100644 index 00000000..776e6f97 --- /dev/null +++ b/db_scripts/diff/15578.down @@ -0,0 +1,8 @@ +USE provisioning; +set autocommit=0; + +SELECT id INTO @pref_id FROM voip_preferences WHERE attribute = 'call_deflection'; +UPDATE voip_preferences SET description = 'Call Deflection allows a called endpoint to redirect the unanswered call to another destination during the call setup phase by sending 302 redirect message in ringing phase. Disabling the preference will make the platform ignore the redirect message.' where id = @vpid; +DELETE FROM voip_preferences_enum WHERE preference_id = @pref_id AND value = 'immediate'; + +commit; diff --git a/db_scripts/diff/15578.up b/db_scripts/diff/15578.up new file mode 100644 index 00000000..0efe5c81 --- /dev/null +++ b/db_scripts/diff/15578.up @@ -0,0 +1,13 @@ +USE provisioning; +set autocommit=0; + +SELECT id INTO @pref_id FROM voip_preferences WHERE attribute = 'call_deflection'; + +UPDATE voip_preferences SET description = 'Call Deflection allows a called endpoint to redirect the unanswered call to another destination during the call setup phase by sending 302 redirect message in ringing phase. Disabling the preference will make the platform ignore the redirect message. Setting Immediate the redirection will be immediately executed cancelling the other active brances.' where id = @pref_id; + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, default_val) +VALUES +(@pref_id, 'Enabled and Immediate', 'immediate', 1, 0, 1, 0, 0, 0); + +commit;