I implemented group chat using mucSub feature given by ejabberd.
As for now the messages that have sent to the muc room are storing in the mnesia database, whenever I restart the server message history is getting lost. I need them to be stored in mysql. I want to be able to retrieve muc room history at any point of time just like whats app.
This is my mod_mam and mod_muc configuration:
mod_mam:
default: always
db_type: sql
mod_muc:
db_type: sql
access:
- allow
access_admin:
- allow: admin
access_create: muc_create
access_persistent: muc_create
default_room_options:
mam: true
persistent: true
Anyone please help me out of this..Thank you