We started using Twilio Programmable Voice for appointment reminders, and we are using AMD with the MachineDetection parameter set to "DetectMessageEnd" so we can leave voicemail messages on the recipients answering machine. We are also using a Gather
tag in our TwiML to get user input (Ex. "Press 1 to confirm your appointment").
However, we noticed that if the call goes to a voicemail box, the Gather
prompts still get triggered. We'd like to be able to prevent this from occurring so the recipient doesn't hear the prompts in their voicemail message.
Is this even possible? Here's an example of our current TwiML:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="Polly.Joanna">
<prosody rate="95%">Hello, you have an appointment tomorrow at 10:30AM</prosody>
</Say>
<Pause length="1" />
<Gather action="https://example.com" timeout="5">
<Say voice="Polly.Joanna">
<prosody rate="95%">Press 1 to confirm your appointment, Press 2 to repeat the message</prosody>
</Say>
</Gather>
</Response>