Muc Service name Discovery

Hello,

How do I discover the name of the muc service of a give xmpp server?

Thanks a lot,

Fabio

Ciao Fabio,

You can use MultiUserChat#getServiceNames(XMPPConnection) for discovering the MUC service address. In MultiUserChatTest#testDiscoverMUCService() you can see a usage example.

Regards,

– Gato

Gato,

thx for your reply. Hower, I’'m getting a “(501) Not Implemented” error trying to discover

muc service name of the jabber.linux.it server (which is conference).

The same test method I wrote (actually, taken from your MultiUserChatTest#testDiscoverMUCService() ) works for jabber.org and jabberes.org, but not for that server.

Does the error refer to the server that lacks the implemetation of service discovery? However, with Psi I can browse available service.

Did anyone already know about this behaviuor?

Gracias,

F

Fabio,

Which server are you using? Have you tried with Jive Messenger? It is possible that the server does not support service discovery but browsing. So maybe Psi is using iq#browse instead of iq#disco to get that information. Try opening an XML traffic window in Psi and check the packets being sent and received. You can also post the XML that Smack is sending and receiving from the server so I can review it.

Regards,

– Gato

Gato,

as the debug content was a bit long, I’'ve sent it by mail.

Thx.

fab