天道酬勤,学无止境

muc

ejabberd MAM does not work for MUC

xep-0313 works for rosters, but does not work for room chat. I can get archive message for the rosters, but I can not get archive message for the room, why? <iq type='set' id='juliet1'> <query xmlns='urn:xmpp:mam:0'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:0</value> </field> <field var='with'> <value>roomJid@conference.host</value> </field> </x> </query> </iq> The receive message is: <message xmlns="jabber:client" from="test3@192.168.1.67" to="test3@192.168.1.67/iPhone" id="dHS0oejBDWHp”> <fin xmlns="urn:xmpp:mam:0" complete="true”>

2021-06-24 02:29:55    分类:问答    xmpp   ejabberd   muc

Join an existing XMPP MUC Room with Owner Privileges using iOS Openfire and Robbie Hanson library

I am joining an existing MUC room using the next code: XMPPRoomMemoryStorage *roomStorage = [[XMPPRoomMemoryStorage alloc] init]; XMPPJID *roomJID = [XMPPJID jidWithString:@"newRoom5@conference.administrator"]; xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[self appDelegate].xmppStream]; [xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()]; [xmppRoom joinRoomUsingNickname:[self appDelegate].xmppStream.myJID.user history:nil password:nil]; XMPPMUC * xmppMUC = [[XMPPMUC alloc]

2021-06-10 17:38:44    分类:问答    ios   xmpp   openfire   xmppframework   muc

持久XMPP MUC(XEP-45),例如WhatsApp小组讨论(Persistent XMPP MUC (XEP-45), like WhatsApp groupchats)

问题 根据规格- 7.14退出房间为了退出多用户聊天室,占用者会将类型“不可用”的在线状态节发送到当前在该房间中使用的<room @ service / nick>。 例子80.乘员离开房间 <presence from='hag66@shakespeare.lit/pda' to='coven@chat.shakespeare.lit/thirdwitch' type='unavailable'/> 这意味着,一旦用户与XMPP服务器断开连接,他就会从服务器端的组中删除。 问题很简单-我不想要这种行为; 我想要的行为类似于Whatsapp的行为,即即使用户脱机,他仍然是MUC机房的一部分(配置为在服务器端是永久性的),并将接收来自其他占用者的消息。 鉴于针对XEP-0045和iOS的XMPPFramework的规范和文档,我不知道如何完成此操作,或者不知道是否可以在传统的ejabberd服务器中完成此操作。 回答1 XEP-45的设计早于10年前。 那时,设计师想到的是类似IRC渠道的产品。 XEP-45的所有设计都是基于这样的假设,即用户在启动/终止其客户时进入和离开房间。 WhatsApp群组聊天是不同的:用户加入群组聊天可以查看该聊天的(完整)历史记录。 即使用户客户端处于脱机状态/不可用,他仍被视为群聊的一部分。 XMPP社区当前正在使用提供此类功能的新XEP。

2021-05-06 22:38:17    分类:技术分享    xmpp   muc   groupchat

Persistent XMPP MUC (XEP-45), like WhatsApp groupchats

From the spec — 7.14 Exiting a Room In order to exit a multi-user chat room, an occupant sends a presence stanza of type "unavailable" to the <room@service/nick> it is currently using in the room. Example 80. Occupant Exits a Room <presence from='hag66@shakespeare.lit/pda' to='coven@chat.shakespeare.lit/thirdwitch' type='unavailable'/> This implies that as soon as the user disconnects from the XMPP server, he is removed from the group on the server side. The issue is simple — I don't want this behavior; I want a behavior that is similar to what Whatsapp does, i.e. even if the user goes offline

2021-04-14 18:55:56    分类:问答    xmpp   muc   groupchat