Add a timestamp and/or ID to message stanzas

I need to add either a guaranteed unique timestamp, or a timestamp plus a guaranteed unique ID to EVERY message stanza passing through an XMPP server. The timestamp will be displayed in customized clients, and the timestamp or ID, will be used to store and retrieve messages from a database.

I've done quite a bit of searching, and so far in the XMPP docs, I've only seen references to message IDs as optional, and timestamps as being used for delayed delivery. So I think I'll be developing a custom extension, in a non-standard namespace.

Questions:
1. Have I overlooked an already existing spec for what I need to do?
2. Can I add this functionality using an external XMPP component(XEP-0114), or will I have to write a mod for a specific XMPP server(ejabberd most likely)?
3. Is it easy/possible to create a guaranteed unique timestamps in an ejabberd component?

Thanks for any enlightenment provided.

As this is a general XMPP

As this is a general XMPP question, maybe you prefer to ask in a general XMPP place where more people will read it.

In http://xmpp.org/about/discuss.shtml I see:

  • Standards@xmpp.org email list -- for general discussion about XMPP protocols
  • JDev@jabber.org email list -- for discussion about software development using Jabber/XMPP technologies

I'd looked at that page

I'd looked at that page before posting here. The JDev list looks a little dead, and I think it would be more off topic at the Standards list then here. But, I guess I'll give JDev a try.

Thanks.

Syndicate content