This examples uses an action
URL in the Dial XML element. After the call ends, Plivo reports back the status to this URL. You can control the flow of the call by returning valid Plivo XML from the action
URL and setting the redirect
attribute to true
.
In this example, Plivo POSTs the status of the call to https://<yourdomain>.com/dial_status/ and expects valid XML since the redirect
attribute is set to true
.
<Response>
<Dial action="https://<yourdomain>.com/dial_status/" method="POST" redirect="true">
<Number>12025551111</Number>
</Dial>
</Response>