gpt4 book ai didi

ios - XEP - 0055 与 iOS 和 ejabberd?

转载 作者:行者123 更新时间:2023-11-28 21:55:20 26 4
gpt4 key购买 nike

我正在尝试实现由 ejabbed 支持的 XEP-0055,如 supported xeps 中所示

这是我的要求:

XMPPIQ *iq = [[XMPPIQ alloc] init];
[iq addAttributeWithName:@"type" stringValue:@"get"];
[iq addAttributeWithName:@"from" stringValue:@"testuser1@company.com"];
[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="testuser1@company.com/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 description.

最佳答案

在 ejabberd 中,搜索功能委托(delegate)给一个子域,默认情况下使用 vjud 前缀。尝试将搜索请求发送到 vjud.company.com

关于ios - XEP - 0055 与 iOS 和 ejabberd?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26800596/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com