SET autocommit=0;
USE provisioning;

SELECT id INTO @pref_id FROM provisioning.voip_preferences WHERE attribute = 'force_outbound_calls_to_peer';

UPDATE provisioning.voip_preferences_enum SET label='use domain defalut'
	WHERE preference_id=@pref_id AND value IS NULL AND label='use domain default';

COMMIT;
