无法在 freeswitch 上安装 mod_python3

发布于 2025-01-09 06:00:19 字数 905 浏览 3 评论 0原文

我已经在运行版本 1.10.7 的 freeswitch 盒子上安装了 Freeswitch-mod-python3。然后我取消注释掉 module.conf 文件中的 python3 行。然后做了reloadxml,这次重新加载成功了。当我执行“module_exists mod_python3”时,我得到错误。然后我尝试加载它,得到的错误如下,这很奇怪,因为 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

I have installed Freeswitch-mod-python3 on my freeswitch box running version 1.10.7. I then uncommented out the python3 line in the module.conf file. Then did a reloadxml, this reloaded successfully. When I do a "module_exists mod_python3" I get false. Then I tried to load it and the error I get is below, which is weird cause python3.so is a file in that directory and has the same permissions as every other file in that dir. I have rebooted the box as well as restarted FS and no luck. What else can I try?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叫嚣ゝ 2025-01-16 06:00:19

这对我有用:

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 盒子上运行的。

This worked for me:

apt-get install freeswitch-mod-python3

Then I loaded the module by adding it to the end of my autoload_configs/modules.conf.xml

<configuration name="modules.conf" description="Modules">
  <modules>
    ...
    <load module="mod_python3"/>
  </modules>
</configuration>

Once I restarted I can see the module loaded when I run:

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

This on a vanilla Debian Buster box with the FreeSWITCH repo added.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文