[ejabberd] PEP Help

Holger Weiß holger at zedat.fu-berlin.de
Thu Jun 25 13:11:48 MSK 2015


* Muruga Prabu M <murugaprabum at gmail.com> [2015-06-25 15:16]:
> *REQUIREMENTS*
> 
> 
> 1. Broadcast profile picture and status changes to all users who have
> presence subscription to the publishing contact
> 
> 2. If a subscribed user is offline when an event is published, it should be
> received the next time they come online
> 
> 3. If a subscribed user is online when an event is published, it will be
> delivered immediately
> 
> 4. If an event has been received by the subscriber once, the same event
> shouldn't be sent to the subscriber
> 
> The above functionalities are similar to WhatsApp functionality to notify
> users about profile picture and status changes.
> 
> 1. Is the above possible using PEP in ejabberd ?

Except for requirement #4, yes (out of curiosity: Why is that so
important to you?).

Are any of the other things not working for you?

> 2. What ejabberd configuration should I use.

A configuration such as this one should work:

  access:
    pubsub_createnode:
      local: allow
    # [...]

  modules:
    mod_pubsub:
      access_createnode: pubsub_createnode
      ignore_pep_from_offline: false
      last_item_cache: true
      plugins:
        - "flat"
        - "hometree"
        - "pep" # Requires mod_caps.
    # [...]

Holger


More information about the ejabberd mailing list