Ejabberd STUN 问题:未知模块 mod_stun_disco 无法启动

问题描述

我正在尝试使用我的 ejabberd 服务器进行视频通话,关注 this guide

我的服务器运行最新的 Debian。

进行这些更改后,Ejabberd 无法启动并记录以下错误

@gen_mod:start_module:228 Failed to start unkNown module mod_stun_disco: make sure there is no typo and mod_stun_disco.beam exists inside either /usr/lib/x86_64-linux-gnu/ejabberd-18.12.1-2/ebin or /opt/ejabberd/.ejabberd-modules directory
@gen_mod:maybe_halt_ejabberd:311 ejabberd initialization was aborted because a module start Failed.

如何安装 mod_stun_disco?

解决方法

我的服务器运行最新的 Debian。

您正在运行的“最新 Debian”究竟是什么版本?

另外,你安装的ejabberd版本是什么?

mod_stun_disco.erl 首次包含在 ejabberd 20.04 中 https://github.com/processone/ejabberd/commit/69d1d62add92511acf58f5f71383ad64e4757464#diff-44e2dc2000d1cc7230e63af3a7f9618a7bb9afb64df1aec0cc91bf31c21c91bc

如果您运行的是较旧的 ejabberd 版本,显然该模块不包括在内。