0

我正在 c#.net 中使用 agsxmpp 开发聊天应用程序,目前我设法在 openfire 服务器上创建了持久房间,其条目显示在 openfire 服务器中。但问题是我无法在 openfire mysql 数据库中获得相同的房间条目直到,我在 openfire.here 中手动编辑房间openfire服务器的房间入口?请帮助,如果你知道任何与此相关的...

            Jid room = new Jid(textBox1.Text + "@conference.myopenfireservername");               
             xmpp.MessageGrabber.Add(room,
                                  new BareJidComparer(),
                                 new MessageCB(MessageCallBack),
                                  null);


            Jid owner = new Jid(u_id+"@myopenfireservername");
            xmpp.SendMyPresence();

            MucManager muc = new MucManager(xmpp);              
            muc.JoinRoom(room,GlobalVar.my_perm_nm);
            muc.AcceptDefaultConfiguration(room);
            xmpp.SendMyPresence();
            muc.GrantAdminPrivileges(room, owner);
            muc.GrantOwnershipPrivileges(room, owner);
            muc.GrantMembership(room, owner);              
            Jid membs;
            for (int i = 0; i < members_id.Count; i++)
            {
                membs =new Jid( members_id[i].ToString() + "@myopenfireservername");
                muc.Invite(membs, room);
                muc.GrantMembership(room, membs);
               // muc.Invite(roomy, room);
            }              


                MessageBox.Show("Your group has been created..", "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information);//displaying this messagebox after creating room and also entry in openfire server,but can't get in mysql database
4

1 回答 1

0

得到了答案!使用配置而不是接受默认配置创建 romm。比创建房间后的其余部分更重要。我发现该链接非常有用, http: //forum.ag-software.net/thread/ 1787-muc-invitation-to-join,希望这对某人有帮助!!!

于 2015-09-07T09:42:43.113 回答