Project

General

Profile

Store stanza for muc_history table

Vinoth Rajendran
Added about 4 years ago

I have using muc_history table for group chat message archive. In that table has body and msg. As default group chat message has been stored in body.

But I need to store stanza for the chat at msg. Is it possible?

Here I have attached my init.properties file :

--comp-class-1 = tigase.muc.MUCComponent

--comp-class-6 = tigase.muc.MUCComponent

--comp-class-5 = tigase.muc.MUCComponent

--virt-hosts = 192.168.1.94

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=root

--user-db = mysql

--admins = admin@192.168.1.94

--comp-name-4 = message-archive

--comp-name-3 = proxy

config-type = --gen-config-all

--comp-name-2 = pubsub

--comp-name-6 = conference

--comp-name-5 = channel

--comp-name-1 = muc

--cluster-mode = true

--sm-plugins = +message-archive-xep-0136

conference/default_room_config/conference#roomconfig_persistentroom=true

muc/default_room_config/muc#roomconfig_persistentroom=true

channel/default_room_config/channel#roomconfig_persistentroom=true

--debug = server, archive

--comp-class-4 = tigase.archive.MessageArchiveComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

--comp-class-2 = tigase.pubsub.PubSubComponent

--tigase.cache=true

muc/room-log-directory[S]=./logs/

message-archive/archive-repo-uri=jdbc:mysql://localhost/tigasedb?user=root&password=root

#message-archive/auto=true

sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body

sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@192.168.1.94


Replies (1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 4 years ago

At first I would like to mention that MUC history is managed by MUC component and questions related to MUC and MUC history should be asked in MUC Component forum.

To enable storage of full message stanza in MUC history you would need to disable filtering of MUC messages, as by default MUC messages are filtered so only body from original message is forwarded to other recipients and due to that we do not store whole message. But if MUC message filtering is disabled then full MUC messages should be stored. You can disable filtering by adding following line to etc/init.properties file:

muc/message-filter-enabled[B]=false

    (1-1/1)