Linux安装free switch
时间: 2023-11-30 18:31:31 浏览: 157
freeswitch免费安装版
安装FreeSWITCH需要以下步骤:
1. 安装依赖项
```
sudo apt-get install -y build-essential autoconf automake libtool-bin zlib1g-dev libjpeg-dev libncurses5-dev libsqlite3-dev libssl-dev libcurl4-openssl-dev libpcre3-dev libspeexdsp-dev libldns-dev libedit-dev libexpat1-dev libyaml-dev liblua5.2-dev libopus-dev libsndfile1-dev libpq-dev libavformat-dev libavcodec-dev libavresample-dev libavutil-dev libavfilter-dev libswscale-dev libavdevice-dev libneon27-dev libx264-dev libvpx-dev libsrtp0-dev libmicrohttpd-dev libmongoc-dev libbson-dev
```
2. 下载FreeSWITCH源代码
```
git clone https://github.com/signalwire/freeswitch.git -b v1.10.stable freeswitch
cd freeswitch
```
3. 配置编译选项
```
./bootstrap.sh -j
./configure --enable-core-pgsql-support
```
4. 编译并安装
```
make -j
sudo make install
```
5. 设置FreeSWITCH开机自启动
```
sudo systemctl enable freeswitch
```
完成以上步骤后,就可以启动FreeSWITCH并开始使用了。
阅读全文