Reputation: 320
I've done the basic twillio client setup following instructions here - https://www.twilio.com/docs/quickstart/php/client/incoming-calls
Would it be possible to reply the voice call with the digit asked to dial ?
Like, if the automated call asks to press 5, I can respond with pressing digit 5, like that ?
Thanks!
Upvotes: 0
Views: 118
Reputation: 3629
Have your gather code like this:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather action="/process_gather.php" timeout="10" finishOnKey="*">
<Say>Please enter a digit</Say>
</Gather>
</Response>
Then on process_gather.php capture the gathered input and send it back to the user using
<Response>
<Say>You pressed <?php echo $_REQUEST['Digits']; ?></Say>
</Response>
Upvotes: 2