[ejabberd] Mod_multicast service-unavailable

Badlop badlop at gmail.com
Tue May 3 13:28:07 MSD 2011


When you use the Service Discovery of popular clients, like Psi, Gajim
or Tkabber, does ejabberd advertize the multicast service, chatroom
service, vjud, pubsub..., and their features?

Check the ejabberd log files, maybe they indicate some problem.

Configuration:
  {hosts, ["localhost"]}.
  {modules, [
    ...
    {mod_multicast, []},
    ...
  ]}.


When I send your same request to the proper JID:

<!-- 11:12:19.249 OUT (::xmpp::1, badlop at localhost/work-2) -->
<iq from='badlop at localhost/work-2' id='disco01'
to='multicast.localhost' type='get' xmlns='jabber:client'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>

<!-- 11:12:19.276 IN (::xmpp::1, badlop at localhost/work-2) -->
<iq from='multicast.localhost'
	to='badlop at localhost/work-2'
	id='disco01'
	type='result'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity category='service'
	type='multicast'
	name='Multicast'/>
    <feature var='http://jabber.org/protocol/disco#info'/>
    <feature var='http://jabber.org/protocol/disco#items'/>
    <feature var='vcard-temp'/>
    <feature var='http://jabber.org/protocol/address'/>
  </query>
</iq>


When I send the request to an incorrect JID:

<iq from='badlop at localhost/work-2' id='disco01'
to='multicastuiuiuiui.localhost' type='get' xmlns='jabber:client'>
  <query xmlns='http://jabber.org/protocol/disco#items'/>
</iq>
<!-- 11:14:46.793 IN (::xmpp::1, badlop at localhost/work-2) -->
<iq from='multicastuiuiuiui.localhost'
	to='badlop at localhost/work-2'
	type='error'
	id='disco01'>
  <query xmlns='http://jabber.org/protocol/disco#items'/>
  <error code='503'
	type='cancel'>
    <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  </error>
</iq>


$ ejabberdctl live
...
> ets:tab2list(route).
[{route,"pubsub.localhost",<0.336.0>,undefined},
 {route,"multicast.localhost",<0.311.0>,undefined},
 {route,"proxy.localhost",<0.335.0>,undefined},
 {route,"localhost",<0.262.0>,{apply,ejabberd_local,route}},
 {route,"conference.localhost",<0.304.0>,undefined},
 {route,"vjud.localhost",<0.386.0>,undefined},
 {route,"echo.localhost",<0.296.0>,undefined}]


---
Badlop
ProcessOne


More information about the ejabberd mailing list