我正在尝试实现 ejabbed 支持的 XEP-0055,如下所示支持的 xep https://www.ejabberd.im/protocols
这是我的要求:
XMPPIQ *iq = [[XMPPIQ alloc] init];
[iq addAttributeWithName:@"type" stringValue:@"get"];
[iq addAttributeWithName:@"from" stringValue:@"[email protected] /cdn-cgi/l/email-protection"];
[iq addAttributeWithName:@"to" stringValue:@"company.com"];
[iq addAttributeWithName:@"id" stringValue:@"search1"];
XMPPElement *query = [XMPPElement elementWithName:@"query"];
[query setXmlns:@"jabber:iq:search"];
[iq addChild:query];
[self.xmppStream sendElement:iq];
我收到这样的回复:
<iq xmlns="jabber:client" from="company.com" to="[email protected] /cdn-cgi/l/email-protection/2834146151141475281662718" type="error" id="search1">
<query xmlns="jabber:iq:search"/>
<error code="501" type="cancel">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
为什么我收到功能未实现的信息?官方XEP链接描述。 http://xmpp.org/extensions/xep-0055.html
在 ejabberd 中,搜索功能被委托给子域,默认情况下使用vjud
字首。尝试将搜索请求发送至vjud.company.com
反而。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)