[ejabberd] How to implement Friend Search function on IM client?

wei tsingmei at gmail.com
Tue Oct 6 13:31:04 MSD 2009


Hi all,
I send following stanza to get Friend Search Support info from ejabberd, but
return error:
           <iq type='get' id='search1'>
                <query xmlns='jabber:iq:search'/>
           </iq>

error is:

[017:797]    <iq from='alex' to='alex' type='error' xml:lang='*' id='12'>
[017:797]      <query xmlns='jabber:iq:search'/>
[017:797]      <error code='503' type='cancel'>
[017:797]        <service-unavailable
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
[017:813]      </error>
[017:813]    </iq>

so, how to write the stanza to support user search?

Thanks a million.

alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20091006/a7d7ab10/attachment.html>


More information about the ejabberd mailing list