This example uses three User and Number elements to dial two SIP endpoints and a phone number at the same time. The first of these calls to answer will be connected to the caller, and the rest of the connection attempts will be canceled.

**Note: **In Simultaneous dialing, the maximum number of destinations (Endpoint or number) that can passed is 10

from plivo import plivoxml

response = plivoxml.ResponseElement()
response.add(plivoxml.DialElement().add(
    plivoxml.UserElement('sip:alice1234@phone.plivo.com')).add(
        plivoxml.NumberElement('12025551111')).add(
            plivoxml.UserElement('sip:john1234@phone.plivo.com')))
print(response.to_string())
Response
<Response>
    <Dial timeout="20" action="https://<yourdomain>.com/dial_action/">
        <Number>12025551111</Number>
    </Dial>
    <Dial>
        <Number>12025552222</Number>
    </Dial>
</Response>