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

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support