Aeap Wss Connection

Home » Asterisk Users » Aeap Wss Connection
Asterisk Users 1 Comment

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

One thought on - Aeap Wss Connection

  • Looking at the code it doesn’t appear as though it was implemented with support for it from what I can tell.