i configured and enabled mod speakerstats and then modified file mod_speakerstats_component.lua to log room creation and destruction, occupant joining and leaving a conference and those events are logged to prosody.log file as expected.
The problem is that I also need to log the dominant speaker time, but that value is always zero.
I tried to log it both on each participant leaving the room and on room destruction, but I always get zero (that is the initialization value)
By adding few more log instructions I saw that on_message function is never executed.
Speaker stats are working fine on the front end both on the web interface and by calling window.APP.conference.getSpeakerStats()
Do you have any suggestions?