I am trying to create an anonymous room with the smack libraries and I guess I don't know the magic settings to make this happen, here is the FormField I am submitting to the MultiUserChat room, can anyone provide insight into why this wouldn't work?
Form existingForm = chatRoom.getConfigurationForm();
Form submitForm = existingForm.createAnswerForm();
FormField formField = new FormField("muc#roomconfig_canAnyoneDiscoverJID");
formField.addValue("0");
submitForm.addField(formField);
chatRoom.sendConfigurationForm(submitForm);
Interestingly when I output all available fields from the existing form "canAnyoneDiscoverJID" is not in the list. The admin console of OpenFire does have check box for this though.
fieldVariable = muc#roomconfig_roomname
fieldVariable = muc#roomconfig_roomdesc
fieldVariable = muc#roomconfig_changesubject
fieldVariable = muc#roomconfig_maxusers
fieldVariable = muc#roomconfig_presencebroadcast
fieldVariable = muc#roomconfig_publicroom
fieldVariable = muc#roomconfig_persistentroom
fieldVariable = muc#roomconfig_moderatedroom
fieldVariable = muc#roomconfig_membersonly
fieldVariable = muc#roomconfig_allowinvites
fieldVariable = muc#roomconfig_passwordprotectedroom
fieldVariable = muc#roomconfig_roomsecret
fieldVariable = muc#roomconfig_whois
fieldVariable = muc#roomconfig_enablelogging
fieldVariable = x-muc#roomconfig_reservednick
fieldVariable = x-muc#roomconfig_canchangenick
fieldVariable = x-muc#roomconfig_registration
fieldVariable = muc#roomconfig_roomadmins
fieldVariable = muc#roomconfig_roomowners