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



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
     https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to