Error: 31910 - "Stream - WebSocket - SSL Protocol Error"

Hi,
When I try to call the twilio number, it receives the call and response with the sentence in <Say>. But <Stream> is not working. In call logs I found the below error:
Error: 31910 - "Stream - WebSocket - SSL Protocol Error"
In the twilio account I have selected the 'Disabled' for 'SSL certificate validate' option. Why does it gives SSL protocol error after disabling this option?
my code (nodejs) is as follows:
res.send(`
<Response>
<Start>
<Stream url="wss://${req.headers.host}/"/>
</Start>
<Say>I will stream the next 60 seconds of audio through your websocket</Say>
<Pause length="60" />
</Response>
`);
This code worked when I'm using ngrok, but now I want to replace it with a server url.
I'm new to twilio programming and appreciate your help.
Thank you.
Imesha.
Answers
-
Hi @Imesha , I have passed your information to our support team in hopes of getting you some help. Please keep an eye out from support. ✨
-
Update! Per https://wiki.hq.twilio.com/display/MS/Streams+-+Security+Considerations
Stream: WSS (Websocket over SSL) is the only protocol supported and mandatory to relay media out of Twilio and into Customer's infrastructure