-
Notifications
You must be signed in to change notification settings - Fork 12
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
Call disconnects immediately #10
Comments
Hi @assaft, Twilio Developer Educator here. Sometimes I see this error when there's an issue with the AccessToken. I would first decode the AccessToken on jwt.io and make sure that it contains the proper SID for your TwiML App. Also, you may want to check that your ngrok tunnel is working properly. Can you send a POST request to your ngrok.io/voice endpoint and get back TwiML? Can you send a GET request to your ngrok.io/token endpoint and receive a token? Is your TwiML App properly configured with your ngrok.io/voice URL? These are some good places to start with troubleshooting. Let me know if you've verified that your AccessToken and endpoints/ngrok tunnel are working properly. Thank you! |
@assaft I had a similar problem. It only works when I use http://localhost:5000/ but not http://:5000. If I use the ngrok https URL and force Chrome through the certificate failure warning, it works there as well. |
@tommyorndorff When you configure your TwiML App and your Twilio Phone Number with your ngrok URL, are you using the HTTPS ngrok url? |
Sure, my TwiML App is configured like this for the 'Request URL' parameter, just like in the README.md doc: Then in Chrome:
|
I'm running into the same issue. I've tried using a TwiML App as well as routing it directly in the Twilio number's callbacks. Also, in terms of token generation, I have exactly the same as what is described in this repository. I've also tried changing SSL as described previously to no avail. The one thing I have noticed, however, is that in Ngrok the request coming in from Twilio appears to be missing the 'To' parameter as well as any of the custom metadata I'm loading in the 'params' field. |
Hi @jamesktan in your Twilio Console under the Monitor tab in the left navigation pane, do you see any Call Logs (under Logs > Calls) created when you attempt to make a call? If you see a call log created, on the call's Call Details page, do you see anything under Request Inspector? Also, do you see a Child Calls heading or a Parent Call SID under the Properties setting? Do you see any errors under Monitor > Logs > Errors > Error logs? If you can post a screenshot of your ngrok terminal, the request coming from Twilio, and/or any Request Inspector or Error information from the Twilio Console, that may help me figure out what's going on. |
Got HTTP 405 response to https://9869-2001-ee0-4081-3a15-2c94-f145-23f7-70bb.ngrok-free.app. Could you please help me to solve this problem, I can't make outbound call using these code |
Hi,
I'm experimenting with this quickstart tutorial on Chrome (101.0.4951.64) for MacOS (12.3.1).
When I press "Call" it seems like there is an attempt to make a call but it disconnects immediately. There is no ring on the target phone that I try to call. I tried different phones and it behaves the same. I also tried another quickstart tutorial, for programmed voice, and it works well. So I believe my purchased number and the target number that I try to call are both fine.
The event log shows:
Inspecting the JS console shows this:
The text was updated successfully, but these errors were encountered: