When multiple calls are fired, the first person to answer gets connected and the rest of the calls are dropped. To make sure that the call is answered by a person and not by voice mail, use the confirmKey and confirmSound attributes.
The example XML here requires the call recipient to input the digit 5 after answering the call to connect.
Plivo requests the confirmSound URL using the POST HTTP method for a valid Play, Speak, or a Wait XML element. To play a message asking the recipient to input a DTMF tone to connect the call, return the second XML example.
Copy
Ask AI
from plivo import plivoxmlresponse = plivoxml.ResponseElement()response.add( plivoxml.DialElement( confirm_key='5', confirm_sound='https://<yourdomain>.com/confirm_sound/').add( plivoxml.NumberElement('12025551111')).add( plivoxml.NumberElement('12025552222')).add( plivoxml.NumberElement('12025553333')))print(response.to_string())# XML to play the messageplay_message_response = plivoxml.ResponseElement()play_message_response.add( plivoxml.SpeakElement('Enter the digit 5 to connect the call'))print(play_message_response.to_string())