Asterisk 星号WebSocket ARI事件

Asterisk 星号WebSocket ARI事件,asterisk,asterisk-ari,Asterisk,Asterisk Ari,我可以连接到ws://localhost:8088/ari/events?api_key=user:user&app=hello world,但我无法连接到ws://localhost:8088/ws。为什么? 如何通过ws控制事件?ARI websocket连接是只读的。您不能通过它向Asterisk发送消息。您必须通过http使用rest接口与Asterisk或其其他接口之一(AMI、AGI)通信 /ari/events是建立websocket连接的正确端点/ws不是

我可以连接到
ws://localhost:8088/ari/events?api_key=user:user&app=hello world
,但我无法连接到
ws://localhost:8088/ws
。为什么?
如何通过ws控制事件?

ARI websocket连接是只读的。您不能通过它向Asterisk发送消息。您必须通过http使用rest接口与Asterisk或其其他接口之一(AMI、AGI)通信

/ari/events是建立websocket连接的正确端点/ws不是