ERROR: rtpproxy [rtpproxy.c:1681]: send_rtpp_command(): can't send command to a RTP proxy

ERROR: rtpproxy [rtpproxy.c:1681]: send_rtpp_command(): can't send command to a RTP proxy

我正在尝试在 debian 上启用 RTPPROXY,但 RTPProxy 似乎忽略了我的论点...

所以,我正在使用命令启动 RTPPROXY:

rtpproxy -l _MY_PUBLIC_IP_ -s udp:127.0.0.1 7722 -p /var/run/rtpproxy.pid -R -a -P -r /tmp/rtppath -S /tmp/rtpspool -u rtpproxy rtpproxy

也试过:

rtpproxy -l _MY_PUBLIC_IP_ -s udp:127.0.0.1 7722 -u rtpproxy rtpproxy

当我尝试启动 Kamailio 服务时出现错误:

0(10562) ERROR: rtpproxy [rtpproxy.c:1681]: send_rtpp_command(): can't send command to a RTP proxy

0(10562) ERROR: rtpproxy [rtpproxy.c:1716]: send_rtpp_command(): proxy does not respond, disable it

0(10562) WARNING: rtpproxy [rtpproxy.c:1573]: rtpp_test(): can't get version of the RTP proxy

0(10562) WARNING: rtpproxy [rtpproxy.c:1610]: rtpp_test(): support for RTP proxy has been disabled temporarily

p.s。我检查了 RTPPROXY,我确定它已启动

ps aux | grep rtpproxy

回复我:

root 2770 0.0 0.0 19392 480 ? Ssl 04:59 0:00 /usr/bin/rtpproxy -l _MY_PUBLIC_IP_ -s udp:127.0.0.1 7722 -p /var/run/rtpproxy.pid -R -a -P -r /tmp/rtppath -S /tmp/rtpspool -u rtpproxy rtpproxy

root 2775 0.0 0.0 11740 932 pts/1 S+ 04:59 0:00 grep --color=auto rtp

这表示一切正常,rtpproxy 是我声明的 运行 个参数

但问题是,当我检查它时:

netstat -tulpn | grep rtpproxy

我收到:

udp 0 0 127.0.0.1:22222 0.0.0.0:* 2853/rtpproxy

如您所见,rtpproxy 正在侦听端口 22222 并完全忽略我声明的参数:(

我哪里做错了什么?

对不起我的英语,提前致谢...

我已经解决了问题...正确的启动方式是:

rtpproxy -l _MY_PUBLIC_IP_ -s udp:127.0.0.1:7722 -u rtpproxy rtpproxy