我无法通过控制台浏览器(lynx,elinks)在ARI中进行身份验证
cat /etc/asterisk/ari.conf:
[general]
enabled = yes
pretty = yes
allowed_origins = *
[sa]
type = user
read_only = no
password = test
password_format = plain
cat /etc/asterisk/httpd.conf
[general]
servername=Asterisk
enabled=yes
bindaddr=0.0.0.0
bindport=8088`
输入时并且身份验证失败:
elinks http://localhost:8088/ari/api-docs/resources.json username:sa passwd:test
我也尝试允许从我的电脑连接: ssh myRealAsteriskIP -L8001:127.0.0.1:8088
但之后我甚至无法连接到网站
请帮帮我。谢谢:))
答案 0 :(得分:0)
我的错误是我将bindaddr = 0.0.0.0替换为bindaddr = 127.0.0.1并且它有效))