Hi everyone!
I’m trying to use phoenix websockets as a Transport for SIP.
For SIP implementation must use the websocket “sip” subprotocol. (Sec-WebSocket-Protocol: sip
header for a handshake)
Quote from RFC:
The SIP WebSocket Client and SIP WebSocket Server negotiate usage of
the WebSocket SIP subprotocol during the WebSocket handshake
procedure as defined in Section 1.3 of [RFC6455]. The client MUST
include the value “sip” in the Sec-WebSocket-Protocol header in its
handshake request. The 101 reply from the server MUST contain “sip”
in its corresponding Sec-WebSocket-Protocol header.
I try to send the Sec-WebSocket-Protocol
header to the handshake request, but the Phoenix answers without it.
How can I resolve this or add a custom header to the handshake response header?