ubuntu20.04 安装freeswitch
时间: 2023-07-27 20:08:14 浏览: 193
在 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。您可以根据需要进行进一步的配置和使用。请注意,这只是一个基本的安装过程,根据您的需求可能需要进行更多的配置和定制化。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)