How to retrieve chat history,i am using open fire

Dear All,

How to retrieve chat history,i am using open fire,strophe.js

Please suggest

Thanks in advance

My CLIENT CODE is given below

conn.archive.listCollections(JID,rsm, function (collections, responseRsm) {

//Loop the collections

for (var int = 0; int < collections.length; int++) {

var lastCollection = collections[collections.length - 1];

rsm = new Strophe.RSM({ ‘max’: 10, ‘before’: ‘’ });

lastCollection.retrieveMessages(rsm, function (messages, responseRsm) {

console.log(messages);

//someCallback(fullJID, messages);

});

}

});

My POST DATA is given below

1

AND RESPONSE IS

15

Anyone ?

By default Openfire does not store any chat, you have to use the monitor plugin to provide XEP-0136 support, to my knowledge.

Regards

Andreas

Hi Andi,

Thanx for your response,

Currently Monitoring plugin is already installed and also installed open archive

i was following this linkRe: OpenArchive 1.0.4 ,

Although Open Fire is installed, but dont cannot see in plugin list and also dont know how to proceed.

Please suggest

Hi,

I think querying DB is helpfull

Hi Pankaj

If you have enabled option “Log Room conversation” in Group Chat > Group Chat Settings > Default Room Settings, then you can use ofMucConversationLog table for retrieving group chats