[ejabberd] Pubsub Problem

Paul Kinlan paul.kinlan at gmail.com
Wed Mar 11 14:48:03 MSK 2009


Hi,

I am having a little trouble with mod_pub_sub and I was hoping someone could
offer some advice. I am pretty sure I am using ejabberd 2.0.1

I belive I have it installed correctly.  I am following the samples at
http://www.ejabberd.im/mod_pubsub-usage and I am not getting the responses
that I expect.

My modules are the default.

{mod_pubsub,   [ % requires mod_caps
                  {access_createnode, pubsub_createnode},
                  {plugins, ["default", "pep"]}
                 ]},

I create a pub sub node using the admin account:

<iq type='set' from='admin at somedomain.com' to='somedomain.com' id='create2'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <create/>
    <configure/>
  </pubsub>
</iq>

And it returns a value which I expect.

<iq from='somedomain.com' to='admin at somedomain.com/7482463691236769788380933'
id='create2' type='result'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<create node='/home/somedomain.com/admin/2382497678'/>
</pubsub>
</iq>

I then try to subscribe using the user paul.

<iq type="set" from="paul at somedomain.com" to="somedomain.com" id="sub1">
  <pubsub xmlns="http://jabber.org/protocol/pubsub">
    <subscribe node="/home/somedomain.com/admin/2382497678" jid="
paul at somedomain.com"/>
  </pubsub>
</iq>

but it returns a status that I don't expect and can't work out why.

<iq from='somedomain.com' to='admin at somedomain.com/7482463691236769788380933'
id='sub1' type='error'>
<error code='404' type='cancel'>
<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<subscribe node='/home/somedomain.com/admin/2382497678' jid='
paul at somedomain.com'/>
</pubsub>
</iq>

If anyone has any ideas I would love to hear them.

Kind Regards,
Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20090311/afb672c3/attachment.htm>


More information about the ejabberd mailing list