I want to show all incoming call in a web page using websocket.
I've followed asterisk official documentation for getting started ari The example provided works fine using connection:
$ wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=hello-world"
But when I try to connect to channels instead I receve an error:
$ wscat -c "ws://localhost:8088/ari/channels?api_key=asterisk:asterisk"
error: Error: unexpected server response (200)
I have also tried to use PHP ARI Channel List and it's works fine. What am I doing wrong?