我正在使用c#.net中的agsxmpp开发聊天应用程序,目前我设法在openfire服务器上创建持久性房间,其条目显示在openfire服务器中。但问题是我无法获得相同的条目房间在openfire mysql数据库,直到,我在openfire.here手动编辑房间,我发布我的代码创建持久性房间,有没有办法在openfire服务器和openfire mysql数据库中获得持久房间的入口,几乎同时,没有手动编辑到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
答案 0 :(得分:0)
得到了答案!!用配置创建romm而不是acepting defult配置。一旦房间创建了,而不是其余的东西。我发现非常有用的链接, http://forum.ag-software.net/thread/1787-muc-invitation-to-join, 希望这有助于某人!!!