[asterisk-users] aeap wss connection
marek
cervajs64 at gmail.com
Tue Jan 16 07:55:07 CST 2024
hi,
i'm trying asterisk AEAP through Haproxy
https://docs.asterisk.org/Asterisk_18_Documentation/API_Documentation/Module_Configuration/res_aeap/?h=
backend speech-gateway-dev-wss
mode http
option forwardfor
option http-server-close
server speech localhost:9811
topology
Asterisk - Haproxy - Node.js app - Google STT
Asterisk - Node.js works ok
tests with curl/wsscat are ok
but asterisk as wss client doesnt work
it looks like the issue is because Asterisk sending http upgrade request
to HTTPS 443 port as HTTP (no TLS handshake)
Hypertext Transfer Protocol
[Expert Info (Warning/Security): Unencrypted HTTP protocol detected
over encrypted port, could indicate a dangerous misconfiguration.]
[Unencrypted HTTP protocol detected over encrypted port, could
indicate a dangerous misconfiguration.]
[Severity level: Warning]
[Group: Security]
GET / HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET / HTTP/1.1\r\n]
[GET / HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /
Request Version: HTTP/1.1
Sec-WebSocket-Version: 13\r\n
Upgrade: websocket\r\n
Connection: Upgrade\r\n
Host: speech-gateway-dev.example.com:443\r\n
Sec-WebSocket-Key: MvncKwAAAABJv2J3AAAAAA==\r\n
Sec-WebSocket-Protocol: speech_to_text\r\n
\r\n
[Full request URI: http://speech-gateway-dev.example.com:443/]
[HTTP request 1/1]
what do you think? is it bug?
Marek
More information about the asterisk-users
mailing list