Get Started

TwiMLTM Voice: <Client>

The <Dial> verb's <Client> noun specifies a client identifier to dial.

You can use up to ten <Client> nouns within a <Dial> verb to simultaneously attempt a connection with many clients at once. The first client to accept the incoming connection is connected to the call and the other connection attempts are canceled. If you want to connect with multiple other clients simultaneously, read about the <Conference> noun.

The client identifier currently may only contain alpha-numeric and underscore characters.

Noun Attributes

The <Client> noun supports the following attributes that modify its behavior:

Attribute Name Allowed Values Default Value
url any url none
method GET, POST POST

url

The 'url' attribute allows you to specify a url for a TwiML document that will run on the called party's end, after she answers, but before the parties are connected. You can use this TwiML to privately play or say information to the called party, or provide a chance to decline the phone call using <Gather> and <Hangup>. The current caller will continue to hear ringing while the TwiML document executes on the other end. TwiML documents executed in this manner are not allowed to contain the <Dial> verb.

method

The 'method' attribute allows you to specify which HTTP method Twilio should use when requesting the URL in the 'url' attribute. The default is POST.

Examples

Example 1: Dialing to a client

In this example, we want to connect the current call to a client named jenny. To connect the call to jenny, use a <Dial> verb with a <Client> noun nested inside.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial>
        <Client>jenny</Client>
    </Dial>
</Response>

Example 2: Simultaneous Dialing

You can use up to ten total <Number> and <Client> nouns within a <Dial> verb to dial multiple phone numbers and clients at the same time. The first person to answer the call will be connected to the caller, while the rest of the call attempts are hung up.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial callerId="+1888XXXXXXX">
        <Number>858-987-6543</Number>
        <Client>jenny</Client>
        <Client>tommy</Client>
    </Dial>
</Response>