Programmable Voice | Aug. 22, 2019
HTTP Callbacks (webhooks): Connection Overrides for Voice
Twilio's Programmable Voice platform for HTTP callbacks (webhooks) has been enhanced to allow you to easily override our default connection settings on a per request basis, giving you simple and flexible control of callbacks to your server/applications.
Twilio uses HTTP callbacks (webhooks) to let your application know when events happen, such as receiving an incoming phone call. When the event occurs, Twilio makes an HTTP request (usually a POST or a GET) to the URL you configured for the webhook. Twilio has implemented the override as a URL extension in the form of "fragments" that can be added to the standard HTTP webhook URL on a per request basis.
The Connection Override parameters allow you to specify:
- Longer timeouts to better support intermittent network issues between Twilio and your server/application.
- Shorter timeouts to speed up failover (to fallback URL) in the case of an outage on your server/application.
- HTTP callback connection retries on failures/timeouts.
- The egress Twilio Edge Location for your HTTP callback
- The total timeout limit for all of the retries to complete your request.
- The use of Server Name Indication (SNI), if your server/application requires SNI to ensure a proper TLS handshake for all attempts.
For details please refer to our user documentation.