Project

General

Profile

Offline message not archieve

Vinoth Rajendran
Added about 4 years ago

I have Installed Tigase 5.2.3.

In that, there is problem with private chat message storing. This is 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

# To save group chat message. 
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,db, archive, xmpp.impl, xmpp
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent

# To Enabling typing notification
conference/muc-allow-chat-states[B]=true
conference/message-filter-enabled[B]=false

muc/muc-allow-chat-states[B]=true

muc/muc-lock-new-room[B]=false
channel/muc-lock-new-room[B]=false

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

If I comment last line(message-archive/archive-repo-uri=jdbc:mysql://localhost/tigasedb?user=root&password=root) offline messages are stores at msg_history but online messages not storing. If uncomment this online messages are storing at tig_ma_msgs but offline messages are not storing. I want to store both offline and online messages.

Note: Offline messages means if receiving user is in offline.

Online messages means receiving user is online.

How to save both online and online messages.


Replies (9)

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

What version of Tigase Message Archiving are you using?

Are there any exceptions in the logs?

Added by Arseny Yankovski almost 4 years ago

Hello, I'm experiencing the same issue. I'm using 7.0.2 version of message archiving and there's no exceptions in logs. In fact offline messages are being archived after delivery. Maybe packet doesn't reach archiving component because Tigase offline component doesn't let the packet to go through? Any idea how to re-order them if I'm right?

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

Described behavior is correct, as we cannot store offline messages in message archive as this messages may not be delivered to users, ie. due to AMP expire-at feature. If we would store offline messages in message archive and such a message would not be delivered later to user then user would have in message archive message which was never seen by him, which should not take place.

To deal with this issue we would have not only change packet processing by Tigase XMPP Server but would fix issue with removal of expired message from message archive.

We prepared alternative to Tigase Message Archiving which can provide feature you want called Tigase Unified Archive but it is a commercial project.

Added by Arseny Yankovski almost 4 years ago

Where can I find any information on Tigase Unified Archive? Googling gives me nothing. Thanks.

Added by Arseny Yankovski almost 4 years ago

Vinoth Rajendran wrote:

See [this]("https://projects.tigase.org/projects/message-archiving/".) It gives me a lot.

This is a link to a current open-source project, not Tigase Unified Archive.

Added by Arseny Yankovski almost 4 years ago

By the way I managed to fix that issue by setting type "chat" to a message.

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Arseny Yankovski wrote:

Where can I find any information on Tigase Unified Archive? Googling gives me nothing. Thanks.

Currently it's still not published. If you're interested please contact us via http://tigase.net/contact

Arseny Yankovski wrote:

By the way I managed to fix that issue by setting type "chat" to a message.

This is a result of implementation following rules described in http://xmpp.org/rfcs/rfc6121.html#rules-localpart-barejid-resource

Added by David jiang over 3 years ago

hi Vinoth Rajendran

Could you show u config or code ,how to do store online message in the tigase 5.2.3. now i can sote the offline message in the mis_history table.

    (1-9/9)