[ejabberd] Mod_multicast service-unavailable

Jorge Díaz jorgedf at gmail.com
Wed May 4 09:46:38 MSD 2011


Ok.
Looks like for some reason the module is not running properly since it's not
listed here

ets:tab2list(route).
[{route,"rooms.dev.triviapad.com",<0.290.0>,undefined},
 {route,"irc.dev.triviapad.com",<0.283.0>,undefined},
 {route,"proxy.dev.triviapad.com",<0.312.0>,undefined},
 {route,"pubsub.dev.triviapad.com",<0.313.0>,undefined},
 {route,"dev.triviapad.com",<0.251.0>,
        {apply,ejabberd_local,route}},
 {route,"vjud.dev.triviapad.com",<0.361.0>,undefined}]


I have an ejabberd 2.1.5 installed through apt-get debian packages manager.
Let me list the steps i followed attending to this
instructions<https://git.process-one.net/~badlop/ejabberd/badlop-ejabberd/blobs/multicast-2.1.x/README-multicast.txt>
:


   1. Download module source

*wget **
https://git.process-one.net/ejabberd/badlop-ejabberd/archive-tarball/multicast-2.1.x.tar.gz
*<https://git.process-one.net/ejabberd/badlop-ejabberd/archive-tarball/multicast-2.1.x.tar.gz>


2. Ungzip

*tar -zxvf multicast-2.1.x.tar.gz*


3. Compile Erlang module

#src/

*erlc mod_multicast.erl*


4. Copy compiled module to Ejabberd modules ebin dir

*cp mod_multicast.beam /usr/lib/ejabberd/ebin/*

(Valid route for debian/ubuntu package)


5. Add module to Ejabberd config file

*vim /etc/ejabberd/ejabberd.cfg*

(Valid route for debian/ubuntu package)

In modules section add

*{mod_multicast, []}*


6. relaunch ejabberd server

*/etc/init.d/ejabberd restart*


Let me know if you need any other info i'm not giving here.

Thanks,
Jorge


On Tue, May 3, 2011 at 6:28 AM, Badlop <badlop at gmail.com> wrote:

> 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
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>



-- 
*Jorge Díaz*
email: jorgedf at gmail.com
spain: +34 620829213
us: +1 (415) 309-8039
chile: +56 (9) 87038661
skype: xurdedf
about.me/xurde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110504/5ad19ec0/attachment-0001.html>


More information about the ejabberd mailing list