连接到 ami 时出错:连接被拒绝

Error connecting to ami: Connection refused

我正在尝试在我的免费 PBX AMI 管理器上进行远程连接,但我总是收到 "Error connecting to ami: Connection refused"

错误

我已经配置好我的 manager.conf

[general]
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 127.0.0.1
displayconnects=no ;only effects 1.6+

[myusername]
secret = mypassword
deny = 0.0.0.0/0.0.0.0
permit= MY_SERVER_IP/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
writetimeout = 5000
bindaddr = 127.0.0.1

表示您的外部 ip 上没有 AMI。

如果您连接到 127.0.0.1 -> 您应该允许 127.0.0.1。如果您连接到外部 ip -> 您已将 ami 绑定到该 ip 或 0.0.0.0