无法在 freeswitch 上安装 mod_python3
cant install mod_python3 on freeswitch
我已经在我的 freeswitch 盒子 运行 版本 1.10.7 上安装了 Freeswitch-mod-python3。然后我取消注释 module.conf 文件中的 python3 行。然后做了一个reloadxml,这个重新加载成功了。当我执行“module_exists mod_python3”时,我得到了 false。然后我尝试加载它,我得到的错误如下,这很奇怪,因为 python3.so 是该目录中的一个文件,并且与该目录中的所有其他文件具有相同的权限。我已经重新启动了盒子,也重新启动了 FS,但没有运气。我还能尝试什么?
freeswitch@fusionPBX> load module mod_python3
+OK Reloading XML
-ERR [module load file routine returned an error]
2022-02-21 20:27:34.505352 99.03% [CRIT] switch_loadable_module.c:1750 Error Loading module /usr/lib/freeswitch/mod/module mod_python3.so
**/usr/lib/freeswitch/mod/module mod_python3.so: cannot open shared object file: No such file or directory**
root@fusionPBX:/usr/lib/freeswitch/mod# ls -ltr | grep python
-rw-r--r-- 1 root root 207968 Oct 24 17:26 mod_python.so
-rw-r--r-- 1 root root 207624 Oct 24 17:26 mod_python3.so
root@fusionPBX:/usr/lib/freeswitch/mod# pwd
/usr/lib/freeswitch/mod
这对我有用:
apt-get install freeswitch-mod-python3
然后我通过将模块添加到 autoload_configs/modules.conf.xml
的末尾来加载模块
<configuration name="modules.conf" description="Modules">
<modules>
...
<load module="mod_python3"/>
</modules>
</configuration>
重新启动后,当我 运行:
时,我可以看到加载的模块
freeswitch@dc01-sip01> show modules
...
api,pyrun,mod_python3,/usr/lib/freeswitch/mod/mod_python3.so
api,python,mod_python3,/usr/lib/freeswitch/mod/mod_python3.s
这在添加了 FreeSWITCH 存储库的普通 Debian Buster 盒子上。
我已经在我的 freeswitch 盒子 运行 版本 1.10.7 上安装了 Freeswitch-mod-python3。然后我取消注释 module.conf 文件中的 python3 行。然后做了一个reloadxml,这个重新加载成功了。当我执行“module_exists mod_python3”时,我得到了 false。然后我尝试加载它,我得到的错误如下,这很奇怪,因为 python3.so 是该目录中的一个文件,并且与该目录中的所有其他文件具有相同的权限。我已经重新启动了盒子,也重新启动了 FS,但没有运气。我还能尝试什么?
freeswitch@fusionPBX> load module mod_python3
+OK Reloading XML
-ERR [module load file routine returned an error]
2022-02-21 20:27:34.505352 99.03% [CRIT] switch_loadable_module.c:1750 Error Loading module /usr/lib/freeswitch/mod/module mod_python3.so
**/usr/lib/freeswitch/mod/module mod_python3.so: cannot open shared object file: No such file or directory**
root@fusionPBX:/usr/lib/freeswitch/mod# ls -ltr | grep python
-rw-r--r-- 1 root root 207968 Oct 24 17:26 mod_python.so
-rw-r--r-- 1 root root 207624 Oct 24 17:26 mod_python3.so
root@fusionPBX:/usr/lib/freeswitch/mod# pwd
/usr/lib/freeswitch/mod
这对我有用:
apt-get install freeswitch-mod-python3
然后我通过将模块添加到 autoload_configs/modules.conf.xml
的末尾来加载模块<configuration name="modules.conf" description="Modules">
<modules>
...
<load module="mod_python3"/>
</modules>
</configuration>
重新启动后,当我 运行:
时,我可以看到加载的模块freeswitch@dc01-sip01> show modules
...
api,pyrun,mod_python3,/usr/lib/freeswitch/mod/mod_python3.so
api,python,mod_python3,/usr/lib/freeswitch/mod/mod_python3.s
这在添加了 FreeSWITCH 存储库的普通 Debian Buster 盒子上。