Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

TwiML™ Voice: <Connect>


(warning)

Warning

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

connect-nouns page anchor

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>.

NounDescription
<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(link takes you to an external page) (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(link takes you to an external page).

Rate this page: