debian 安装rtpengine脚本
时间: 2023-09-09 12:13:02 浏览: 192
debian11-一键安装zabbix6.0脚本
以下是Debian系统安装rtpengine的步骤:
1. 安装依赖项:
```
apt-get update
apt-get install -y build-essential git pkg-config automake libtool libssl-dev libcurl4-openssl-dev libxml2-dev libpcre3-dev libogg-dev libvorbis-dev libconfig-dev libmariadb-dev-compat libhiredis-dev
```
2. 下载rtpengine源码:
```
git clone https://github.com/sipwise/rtpengine.git
cd rtpengine
```
3. 编译并安装rtpengine:
```
./debian/flavors/no_ngcp
make && make install
```
4. 配置rtpengine:
创建配置文件:
```
mkdir /etc/rtpengine
cp rtpengine.conf.sample /etc/rtpengine/rtpengine.conf
```
编辑配置文件:
```
nano /etc/rtpengine/rtpengine.conf
```
配置文件示例:
```
listen-ng = 127.0.0.1:25061
listen-cli = 127.0.0.1:25060
table = memcache:127.0.0.1:11211
interface = eth0
```
5. 启动rtpengine:
```
rtpengine --config-file=/etc/rtpengine/rtpengine.conf --foreground -p /var/run/rtpengine.pid
```
至此,rtpengine已经安装完成并成功启动。
阅读全文