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>
      <User>sip:alice1234@phone.plivo.com</User>
      <Number>15671234567</Number>
      <User>sip:john1234@phone.plivo.com</User>
    </Dial>
</Response>