Skip to content

Debian 12 安装 OpenSIPS 3.4

Published: at 11:30 AM

截止此文时间 OpenSIPS 3.4 是最新 LTS 版本

1.安装官方 APT 仓库

$ curl https://apt.opensips.org/opensips-org.gpg -o /usr/share/keyrings/opensips-org.gpg
$ echo "deb [signed-by=/usr/share/keyrings/opensips-org.gpg] https://apt.opensips.org bookworm 3.4-releases" >/etc/apt/sources.list.d/opensips.list
$ echo "deb [signed-by=/usr/share/keyrings/opensips-org.gpg] https://apt.opensips.org bookworm cli-nightly" >/etc/apt/sources.list.d/opensips-cli.list

2.安装 OpenSIPS 和 OpenSIPS CLI

$ apt-get update
$ apt install opensips
$ apt install opensips-cli

3.安装其他依赖模块

$ apt install opensips-*

4.启动 OpenSIPS 并检查状态

$ systemctl enable opensips
$ systemctl start opensips
$ systemctl status opensips

检查版本

$ opensips-cli -x mi version

{
    "Server": "OpenSIPS (3.4.5 (x86_64/linux))"
}

创建数据库

$ opensips-cli -x database create

参考