ubuntu18安装freeswitch1.8


1.下载fs代码。

git
 clone https://freeswitch.org/stash/scm/fs/freeswitch.git
我装的是1.8

2.安装依赖

sudo apt-get install -y autoconf git libtool g++ zlib1g-dev  libjpeg-dev libsqlite3-dev  libcurl4-openssl-dev libpcre3-dev libspeex-dev  libspeexdsp-dev  libldns-dev libedit-dev libssl-dev  pkg-config yasm liblua5.2-dev libopus-dev libsndfile-dev libpq-dev pkg-config




3.在fs目录代码目录中,运行


./bootstrap.sh -j    

(1)如果出下如下错误,
bootstrap: libtool not found.
           You need libtool version 1.5.14 or newer to build FreeSWITCH from source.
在ubuntu只有libtoolize,修改bootstrap.sh,
libtool=${LIBTOOL:-`${LIBDIR}/apr/build/PrintPath glibtool libtool libtool22 libtool15 libtool14 libtoolize`}


(2)如果要添加模块,默认部分不添加

如添加mod_av模块,在freeswitch目录下modules.conf中把mod_av前面#去掉.

需添加ffmpeg依赖,sudo apt-get install libswscale*  Libavresample* 等

4.生成makefile

./configure


5.编译 安装

make && make install  (sudo make install)


出现can not find -llua 是因为找不到liblua.so

需创建软链接 ln  liblua50.so  liblua.so



6.声源:可选

make  cd-sounds-install

make  cd-moh-install



Ubuntu 20.04 上安装 FreeSWITCH,您可以按照以下步骤进行操作: 1. 打开终端,以管理员权限运行以下命令,更新软件包列表: ``` sudo apt update ``` 2. 安装 FreeSWITCH 的依赖库: ``` sudo apt install -y build-essential autoconf automake libtool wget python-dev libjpeg-dev libncurses5-dev libsqlite3-dev libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libopus-dev liblua5.3-dev libsndfile1-dev libedit-dev yasm ``` 3. 下载并安装 FreeSWITCH: ``` cd ~ wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.5.tar.gz tar xvfz freeswitch-1.10.5.tar.gz cd freeswitch-1.10.5 ./configure make && sudo make install ``` 4. 设置 FreeSWITCH 为系统服务: ``` sudo cp /usr/local/freeswitch/bin/freeswitch.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable freeswitch ``` 5. 配置 FreeSWITCH: ``` sudo cp /usr/local/freeswitch/conf/vanilla/vars.xml /usr/local/freeswitch/conf/sip_profiles/external/ sudo nano /usr/local/freeswitch/conf/sip_profiles/external/vars.xml ``` 在打开的文件中,找到 `<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>` 这一行,将其改为 `<X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/>`,保存并退出编辑器。 6. 启动 FreeSWITCH 服务: ``` sudo systemctl start freeswitch ``` 7. 检查 FreeSWITCH 服务状态: ``` sudo systemctl status freeswitch ``` 如果状态显示为 active (running),则表示安装成功。 现在,您已成功安装并启动了 FreeSWITCH。您可以根据需要进行进一步的配置和使用。请注意,这只是一个基本的安装过程,根据您的需求可能需要进行更多的配置和定制化。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值