We perform the Dial websocket and the connection is established. Audio is flowing in both directions.
For reliability, we are now testing what happens when the connection between Asterisk and other end of the WebSocket drops. In SIP the SIP OPTIONS and frequency settings come into play. Are there any similar settings for the chan_websocket support?
I’m checking to see if our QA person plugged the cable back in after 5 minutes and 2 seconds and the other side closed the connection?
Or if that’s when Asterisk detected the error and closed it?
[05/13 17:48:50.836] DEBUG[1302][C-00000001] iostream.c: TLS transport or SSL error writing data: error:00000005:lib(0)::reason(5), Underlying BIO error: Connection reset by peer
[05/13 17:48:50.836] DEBUG[1302][C-00000001] res_http_websocket.c: Closing WS with 1011 because we can’t fulfill a write request
[05/13 17:48:50.836] DEBUG[1302][C-00000001] iostream.c: TLS transport or SSL error writing data: error:00000001:lib(0)::reason(1), Internal SSL error
[05/13 17:48:50.836] DEBUG[1301] chan_websocket.c: WebSocket/IS__1/0x7f7134025800: HANGUP by websocket close/error
[IS__1]
type = websocket_client
uri = wss://staging.amtelcoservices.com/mediaSessions/asterisk-audio
protocols = media
username = ourusername
password = ourpassword
connection_type = per_call_config
tls_enabled = yes
connection_timeout = 500
reconnect_attempts = 4
reconnect_interval = 500
verify_server_cert = no
verify_server_hostname = no
Dan