I want to change to message id attribute from server before any processing on it. for example if client send this message :
<message xml:lang='en' to='destination' from='source' type='chat' id='purpleff299f0b' xmlns='jabber:client'><active xmlns='http://jabber.org/protocol/chatstates'/><body>Hello World!</body></message>
ejabberd do all processes on :
<message xml:lang='en' to='destination' from='source' type='chat' id='new_id' xmlns='jabber:client'><active xmlns='http://jabber.org/protocol/chatstates'/><body>Hello World!</body></message>
Hello Please read this
Hello
Please read thishttps://stackoverflow.com/questions/1939879/how-to-filter-messages-in-ej...
I hope this will solve your problem.