ARI - wscat getting error: Error: connect ECONNREFUSED

My server bind to but while running the below command getting the error

[root@asterisk]# wscat -c “ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=hello-world” error: Error: connect ECONNREFUSED

Please suggest.

Using Asterisk 13.12.2

What is the actual configuration file for http.conf? Have you enabled it there?


enabled = yes

type = user
read_only = no
password = test123

Is that the complete contents? If so then the files are invalid as they do not include a [general] section, thus most would not be considered valid and HTTP and ARI would remain off.

I had the same problem, but seeing this video fixed the problem