SET AUTOCOMMIT=0;
USE provisioning;
INSERT INTO `provisioning`.`voip_preference_groups` (`name`) VALUES ('Custom Settings');
SELECT LAST_INSERT_ID() INTO @custom_id;

INSERT INTO `provisioning`.voip_preferences 
  (voip_preference_groups_id, attribute, type, usr_pref, dom_pref, peer_pref, label,
   internal, data_type, max_occur, description)
VALUES
(@custom_id, 'custom_caps', 1, 0, 0, 1, 'Max CAPS',
   0, 'string', 1, 'QB custom setting: Max CAPS for this GW.');
COMMIT;

