Cognigy Voice Gateway - Outbound Calling with Twilio
If you are using the Cognigy Voice Gateway with a Twilio Elastic SIP Trunk, you can easily create outbound calls by following the setup process in this article.
An outbound call is triggered by an http request sent to Twilio. This type of outbound calling places a outward call from Twilio number to the end user. It then immediately redirects the call inbound to the voice gateway.
There are two components required to do this:
TwiML Bin- handles the call by forwarding to the VAIG number
API request- initiates a call to a PTSN number
Twilio Elastic SIP Trunk and number connected to Cognigy Voice Gateway
Twilio console access
1) Create a TwiML Bin
Start in the Twilio console, and open the"TwiML Bins"menu under the"Developer tools"section.
Add a new TwiML bin by clicking the +.
Give your TwiML bin a friendly name and add the following TwiML code: