powered by Jive Software

Where to enhance the message packet?

Hello everyone!

I want to extend the messages being send between users. As you know there is the message node that contains information about the sender and the retriever of the message and the message body like

<message
    from='northumberland@shakespeare.lit/westminster'
    id='richard2-4.1.247'
    to='kingrichard@royalty.england.lit/throne'>
  <body>My lord, dispatch; read over these articles.</body>
  <request xmlns='urn:xmpp:receipts'></request>
</message>

No I want to add some extra information to the message by adding child nodes to the message node. Where is the right place for doing that? Can I add the feature without modifying the Openfire source code but using a Plugin instead, that modifies all messages?Thanks for your suggestions in advance!

Lars

We recently decided not to extend the “message” packets but to use the “presence” packets instead. That is better for the performance since we only want to exchange information when the user changes some information about himself.