TwiMLTM Voice: <Client>

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

You can use multiple <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-numberic and underscore characters.

Noun Attributes

The <Client> noun doesn't support any attributes at this time.

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