Menu

Expand
Rate this page:

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

Rate this page:

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.

Loading Code Sample...
        
        
        

        Thank you for your feedback!

        Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        thanks-feedback-gif