TwiML™ Voice: <Connect>
This TwiML verb is not currently available when using Twilio Regions Ireland (IE1) or Australia (AU1). This is currently only supported with the default US1 region. A full list of unsupported products and features with Twilio Regions is documented here.
<Connect>
is a TwiML verb that works together with nested TwiML nouns to connect Voice calls (over PSTN or SIP) to other Twilio services or external services.
- <Connect><Room> connects a call to a Programmable Video Room
- <Connect><Siprec> streams a call to a configured SIPREC Connector
- <Connect><Stream> starts a bi-directional MediaStream
- <Connect><VirtualAgent> connects a call to a Dialogflow VirtualAgent
Connect Nouns
The nouns that you can nest inside of <Connect>
are listed in the table below. Click on a TwiML noun to see its docs page and how to use the noun with <Connect>.
Noun | Description |
---|---|
<Room> |
A nested XML element that describes a Programmable Video Room to connect to with some attributes. |
<Siprec> |
Starts a stream on a phone call and sends that stream to one of the available partners via the configured SIPREC Connector (configured in the Twilio Console). |
<Stream> |
Begins a bi-directional MediaStream for the active call. |
<VirtualAgent> |
Connects a Programmable Voice call to a Dialogflow Essentials (ES) agent. |
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.