Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 centos 专用服务器上,
我在不同的绑定 IP 上运行两个星号实例。
当我做
星号 -r
它连接到首先启动的默认星号实例。
我努力了 :
星号 -r -s NEW_IP_OF_SECOND_INSTANCE:5060
它使无法连接。
但是IP和端口都是正确的。netstat 显示监听端口。
如何连接到第二个星号实例?
-s选项用于指定 Asterisk 套接字文件(如/var/run/asterisk/asterisk.ctl)。如果您在一台服务器上运行多个 Asterisk 实例,请将此选项与适当的asterisk.ctl文件一起使用。
-s
/var/run/asterisk/asterisk.ctl
asterisk.ctl
5060 是一个 SIP 端口号,用于发起和接收 VoIP 呼叫,而不是用于管理目的,因此您不能将其与asterisk -r命令一起使用
asterisk -r