powered by Jive Software

MultiUserChat (with anonymous conn) support InvitationRejectionListener?

It is possible to login anonymously, create a MUC, and invite a registered user. But I’'m having problem if that registered user rejects the MUC invitation, as the reject notification packet is not going to the MUC which was created using an anonymous login.

Is it possible to receive the invitation decline (Reject) packet if we use anonymous connection to create a MUC?

I’'m using Openfire 3.3.0, and Smack 3.0.4.

Here is the code I’'m using:

ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration(“domain”);

connectionConfiguration.setSecurityMode(ConnectionConfiguration.SecurityMode.req uired);


XMPPConnection conn = new XMPPConnection(connectionConfiguration);



final MultiUserChat muc = new MultiUserChat(conn, “myroom@conference.domain”);


muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

muc.addInvitationRejectionListener(new InvitationRejectionListener() {

public void invitationDeclined(String invitee, String reason) {

System.out.println("Recived a rejected invitation from user: " + invitee + ", room: " + muc.getRoom());




muc.invite(“mozammel@domain”, “none”);


muc.destroy(“The room has almost no activity…”, null);

Message was edited by: mozammel

Message was edited by: mozammel