Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-Stream end point does not get called. #27

Open
rdhillbb opened this issue Nov 20, 2024 · 4 comments
Open

media-Stream end point does not get called. #27

rdhillbb opened this issue Nov 20, 2024 · 4 comments

Comments

@rdhillbb
Copy link

I am jusing ngrok for my testing. media-stream end point is not called.
I do get the introduction message. However, wss://5.tcp.ngrok.io:20334/media-stream is not called.
Do I need to configure the phone number in a special way?
I created a test program to check the websocket, it does connect.
Any pointers appreicated.

@rdhillbb
Copy link
Author

After the introduction message the call just hangs up. There are no errors in the twilio call log.
With the test program I get
python3 test.py
2024/11/21 05:49:34 Client connected
2024/11/21 05:49:35 Sending session update
2024/11/21 05:49:35 Received event: session.created

So the ngrok is working.

@rdhillbb
Copy link
Author

The following is the error log
Error - 31910
Create alarm
Learn more about this error
Properties
Debug event SID

NO8ecacbf06268c459ae33e793c6e2afa2

Service SID

--

Resource SID

CA16fb67cdc90148f9f06a2b790adf6570

Timestamp

10:59pm UTC 2024-Nov-20

Message

Stream - WebSocket - SSL Protocol Error

Error Description
Possible Solutions
Verify the server has enabled SSL
Verify the port in TwiML URL is actually the one supporting SSL
Verify the certificate is correct and accepted by HTTP clients
Possible Causes
Server doesn’t support SSL
Stream is trying to connect the wrong port
Protocol or SSL handshake has failed

@tahmidh
Copy link

tahmidh commented Nov 21, 2024

check the indentation of your code. make sure the function receive_from_twilio, send_to_twilio are indented properly

@pkamp3
Copy link
Contributor

pkamp3 commented Nov 22, 2024

@rdhillbb in your ngrok console window are there any messages? Can you check that your generated TwiML is using wss and now ws?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants