This code calls the 2410 extension at sip:john1234@phone.plivo.com. The User element describes the SIP endpoint and gives it the attribute sendDigits. To dial the extension a couple of seconds after the number is dialed, we add a few leading w characters, telling Plivo to wait 0.5 seconds for each w.
Copy
Ask AI
from plivo import plivoxmlresponse = plivoxml.ResponseElement()response.add(plivoxml.DialElement().add( plivoxml.UserElement( 'sip:john1234@phone.plivo.com', send_digits='wwww2410')))print(response.to_string())