wazo-hackathon-asterisk-stream-module icon indicating copy to clipboard operation
wazo-hackathon-asterisk-stream-module copied to clipboard

Playback using WSS - Query

Open voicecomms opened this issue 1 year ago • 0 comments

Hi,

Tried WSS playback and when hitting the url I am getting invalid headers below is what I am getting from my wss


--- response header --- HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: 4zqLX/Ie7s/hiqzhM0xpwa5G4Sk= Date: Sat, 03 Feb 2024 09:18:35 GMT Server: Python/3.8 websockets/12.0

Invalid subprotocol: ['stream-channel'] Invalid WebSocket Header Invalid WebSocket Header - goodbye error from callback <function on_close at 0x7f2d4c8a24c0>: on_close() takes 1 positional argument but 3 were given on_close() takes 1 positional argument but 3 were given root@ip-10-0-23-108:/usr/src/websocket# ./wsspush.py ab78c341-19a0-4fb3-86d3-b91df2265f7e --- request header --- GET / HTTP/1.1 Upgrade: websocket Host: localhost:1234 Origin: http://localhost:1234 Sec-WebSocket-Key: 5rfDzLm2HaBIX7GWn+Jqgw== Sec-WebSocket-Version: 13 Connection: Upgrade Sec-WebSocket-Protocol: stream-channel Channel-ID:ab78c341-19a0-4fb3-86d3-b91df2265f7e


--- response header --- HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: yigfc3L0/E7g0DbGlPV/qbu4k3I= Date: Sat, 03 Feb 2024 09:18:55 GMT Server: Python/3.8 websockets/12.0

Invalid subprotocol: ['stream-channel'] Invalid WebSocket Header Invalid WebSocket Header - goodbye error from callback <function on_close at 0x7f351af984c0>: on_close() takes 1 positional argument but 3 were given on_close() takes 1 positional argument but 3 were given root@ip-10-0-23-108:/usr/src/websocket# ./wsspush.py ab78c341-19a0-4fb3-86d3-b91df2265f7e --- request header --- GET / HTTP/1.1 Upgrade: websocket Host: localhost:1234 Origin: http://localhost:1234 Sec-WebSocket-Key: 06xYbP4MuhJ8AU7WrcbeBw== Sec-WebSocket-Version: 13 Connection: Upgrade Sec-WebSocket-Protocol: stream-channel Channel-ID:ab78c341-19a0-4fb3-86d3-b91df2265f7e

Thanks in advance

Regards CJ

voicecomms avatar Jan 31 '24 16:01 voicecomms