惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
B
Blog
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
月光博客
月光博客
H
Help Net Security
V
Visual Studio Blog
量子位
A
About on SuperTechFans
博客园 - Franky
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog

博客园 - PerKins.Zhu

基于 UniMRCP 的 ASR 插件开发详解:架构、API 与代码 unimrcp_plugin_demo_recog_engine.c 源码解析 unimrcp_plugin_demo_synth_engine.c 源码解析 UniMRCP 插件开发指南 freeswitch【解决方案】— 使用ffmpeg时,生成时总是提示找不到外部引用 freeswitch【解决方案】— 使用mod_odbc_cdr记录cdr时获取不到b leg 的call-id问题 freeswitch模块开发—mod_python3编译安装 freeswitch模块开发—mod_unimrcp 编译及加载(VS2019) freeswitch模块开发【问题排查】—已存在XXX.lob 中定义,重复引入依赖 centos 安装 sngrep freeswitch模块开发【问题排查】—mod_soundtouch 模块变声无效,电流音 freeswitch模块开发【问题排查】—load模块时提示 127错误 vs2019 编译加载 mod_soundtouch 进行变声测试 freeswitch 新模块开发三(VS2019) VS2019 开发freeswitch 问题排查汇总 TLS可信任自签名CA证书配置 debian安装kamailio debian 编译安装rtpproxy debian 编译安装 opensips
voip服务监控及运维
PerKins.Zhu · 2023-10-10 · via 博客园 - PerKins.Zhu

配置rtpproxy系统自动启动:

新增 /lib/systemd/system/rtpproxy.service

[Unit]
Description=rtpproxy start
#After=network.target
#控制和opensips的启动顺序。opensips需要在rtpproxy启动后运行
Before=opensips.service

[Service]
Type=forking
Restart=on-failure
User=root
ExecStart=/usr/local/bin/rtpproxy -A 172.21.71.134 -l 172.17.0.6 -s udp:172.17.0.6:12221 -n tcp:172.17.0.6:12221 -F -d DBUG -m 50002 -M 50020
Restart=always
RestartSec=2

[Install]
WantedBy=multi-user.target

新增  /lib/systemd/system/opensips.service

[Unit]
Description=opensips start
After=rtpproxy.service

[Service]
Type=forking
Restart=on-failure
User=root
ExecStart=/usr/local/sbin/opensips
Restart=always
RestartSec=2

[Install]
WantedBy=multi-user.target
1、启动服务 systemctl start 服务名
2、停止服务 systemctl stop 服务名
3、重启服务 systemctl restart 服务名
4、查看服务是否已启动 systemctl is-active 服务名
5、查看服务的状态 systemctl status 服务名
6、启用开机自启动服务
systemctl enable 服务名
7、停用开机自启动服务
systemctl disable 服务名
8、查看服务是否为开机自启动
systemctl is-enabled 服务名
9、只重启正在运行中的服务
systemctl try-restart 服务名
10、显示所有的服务状态---空格翻页 q推出
systemctl list-units --type service --all
11、查看启动成功的服务列表
systemctl list-unit-files|grep enabled
12、查看启动失败的服务列表
systemctl --failed
13、查看所有服务的状态---空格翻页 q推出
systemctl list-unit-files --type service
14、 加载新的unit 配置文件  
systemctl reload-daemon