[ejabberd] Subscribing to a parent node

Vincent Courcelle vincent.courcelle at gmail.com
Fri Jan 22 21:53:20 MSK 2010

Hi Everybody,

I would like to have (leaf) nodes like :

But I want subscribers to be able to subscribe to an entire vehicule
type/brand and be notified to all items published in the sub-nodes.
For example, subscribing to
or /home/push.oopad.com/server/vehicles/cars/mercedes

The problem:
- If I haven't created the parent node, I got a 404 error when subscribing
- If I've created it, subscription is OK but I'm notified of items published
in child nodes

Here is my subscription iq:
<iq from='
35416690051264182528163365 at push.oopad.com/22811250301264182528701303' to='
pubsub.push.oopad.com' type='set' id='1199:subscribenode'
node='/home/push.oopad.com/server/vehicles/cars' jid='
35416690051264182528163365 at push.oopad.com/22811250301264182528701303'/

Here is my pubsub config:
{mod_pubsub,   [ % requires mod_caps
                  {access_createnode, pubsub_createnode},
                  {last_item_cache, true},
                  {plugins, ["hometree"]}

I've tried http://xmpp.org/extensions/xep-0248.html whithout success (error
Could someone indicate me how to create a collection node or how to
subscribe to it in order to be notified of items published in child nodes?

Vincent Courcelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100122/d8cb4a29/attachment.html>

More information about the ejabberd mailing list