【问题标题】:Unable to load mod_cdr_pg_csv module in Freeswitch无法在 Freeswitch 中加载 mod_cdr_pg_csv 模块
【发布时间】:2018-02-10 09:00:03
【问题描述】:

在 AWS 中新的 Freeswitch 安装 Debian Jessie 8:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.0 (jessie)
Release:    8.0
Codename:   jessie

使用来自here 的安装说明。

wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -

echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list

# you may want to populate /etc/freeswitch at this point.
# if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
apt-get update && apt-get install -y freeswitch-meta-all

按照mod_cdr_pg_csvhere的说明安装:

apt-get install libpq-dev libpq5
apt-get install postgresql-client

但仍然无法加载或找不到模块。

>module_exists mod_cdr_pg_csv
false


>load mod_cdr_pg_csv
+OK Reloading XML
-ERR [module load file routine returned an error]

2018-02-10 08:59:30.427543 [INFO] mod_enum.c:879 ENUM Reloaded
2018-02-10 08:59:30.427543 [INFO] switch_time.c:1423 Timezone reloaded 1750 definitions
2018-02-10 08:59:30.427543 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/lib/freeswitch/mod/mod_cdr_pg_csv.so
**/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so: cannot open shared object file: No such file or directory**

调试freeswitch.log

2018-02-10 07:47:01.012683 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/lib/freeswitch/mod/mod_cdr_pg_csv.so
**/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so: cannot open shared object file: No such file or directory**

modules.conf.xml 已配置完毕。

当我运行 find / -name "mod_cdr_pg_csv.so" 时,我没有得到任何结果。

仍然无法加载模块。 另一个模块如 mod_python 成功加载。

【问题讨论】:

    标签: postgresql freeswitch debian-jessie


    【解决方案1】:

    我最终使用不同的说明重新安装了 Freeswitch。

    1. Install Postgres 依赖项

    2. Building From Source Compiling Release Branch (production) 并使用以下标志运行 Freeswitch 安装:

      ./configure --enable-core-pgsql-support

    【讨论】:

      猜你喜欢
      • 2011-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-11
      • 2015-02-09
      • 1970-01-01
      相关资源
      最近更新 更多