Jitsi Docker - Prosody - mod_turncredentials.lua

Hello

I am trying to activate mod_turncredentials.lua on prosody. I use JITSI Docker (jitsi / prosody: 4101-1).

Without the mod_turncredentials.lua module I have no error message in the logs.

When I activate the module, here is the error message:

mod_bosh error Traceback[bosh]: /usr/lib/prosody/util/stanza.lua:62: invalid attribute value: expected string, got number
stack traceback:
[C]: in function ‘error’
/usr/lib/prosody/util/stanza.lua:62: in function ‘check_text’
/usr/lib/prosody/util/stanza.lua:75: in function ‘check_attr’
/usr/lib/prosody/util/stanza.lua:87: in function ‘new_stanza’
/usr/lib/prosody/util/stanza.lua:109: in function ‘tag’
/usr/lib/prosody/modules/mod_turncredentials.lua:71: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:180: in function ‘core_post_stanza’
/usr/lib/prosody/core/stanza_router.lua:127: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:305: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
/usr/lib/prosody/util/async.lua:211: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:447: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:282: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:133: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
[C]: in function ‘xpcall’
/usr/lib/prosody/net/http/server.lua:108: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:124: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
(…tail calls…)
/usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
[C]: in function ‘xpcall’
/usr/bin/prosody:80: in function ‘loop’
/usr/bin/prosody:90: in main chunk
[C]: in ?

Do you have an idea ?
Thanks

Configuration : prosody.cfg.lua

Preformatted text`modules_enabled = {

“turncredentials”; – TurnServer
}

turncredentials_secret = “xXXXx”;
turncredentials_port = 5349;
turncredentials = {
{ type = “stun”, host = “ABC” },
{ type = “turn”, host = “ABC”, port = 5349 },
{ type = “turn”, host = “ABC”, port = 5349, transport = “tcp” }
}

Configuration : jitsi-meet.cfg.lua

VirtualHost “ABC”
modules_enabled = {
“bosh”;
“pubsub”;
“ping”;
“turncredentials”; – TurnServer
}

If possible use this module for prosody ?

https://raw.githubusercontent.com/prosody-modules/mod_turncredentials/master/mod_turncredentials.lua