Chat History and Monitoring Plugin Openfire

喜夏-厌秋 提交于 2019-12-11 04:35:33

问题


I'm new to openfire. I have a chat application running nodejs. I have a separate Chat server with openfire installed.

  1. I wanted to know how chat history for a chat group is handled?
  2. How to progressively load chat history in the client from openfire server? Should I write a custom routine for the same ? Does Monitoring plugin provide any for the same
  3. What is format is which chats are archived ? Is there a way to retrieve them in any given format ?
  4. Are there any APIs that can be used to access the database ?(I doubt it tho)

I have installed Monitoring Plugin for the same. However I'm not able to find any documentation for openfire or monitoring plugin regarding chat history. Any help would be much appreciated.


回答1:


  1. Please login to your server

  2. Go to Plugins, find plugin "Monitoring Service" install/enable it if you have not enabled

  3. Now go to the "Server" menu, go to "Archiving" then "Archiving Settings"

  4. Check "Archive one-to-one chats" Check "Archive group chats"

  5. Now click on "Update Setting"

And then after most important is you need to click on "Rebuild Index" (last button in this setting screen). Then send a messsage from your app, and check your database table "ofMessageArchive"

You will have magic :)

It's working for me, let's see it is working for you or not!




回答2:


If you have installed the monitoring plugin, you can read in its readme file under the configuration paragraph the following content:

Chat archiving is enabled by default. However, only information about who is communicating and at what time is stored unless chat transcript archiving is enabled. To enable chat transcript archiving or group chat archiving, you will need to log into the admin console and go to:

Server --> Archiving --> Archiving Settings




回答3:


  • To enable group chat archiving, you will need to log into the admin console and go to: Server --> Archiving --> Archiving Settings and 'Message Archiving' is enabled for either 'Archive one-to-one chats' and/or 'Archive group chats'.
  • Then the messages get stored in the external database table 'ofMessageArchive'.
  • The history can be further loaded from the database.

This might help you!




回答4:


Answering to #3: Chats are archived in following format in ofmessage archive table:

conversationID | fromJID | fromJIDResource | toJID | toJIDResource | sentDate | body | 


来源:https://stackoverflow.com/questions/39271281/chat-history-and-monitoring-plugin-openfire

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!