I am using Twilio to make calls to my clients to remind them of certain dates. Since some people dont pick up these calls, I would like to make my Twilio leave a voice message on their answering machines.
Is that possible? If yes how?
Thanks
If you would like to leave a voicemail on an answering machine, specify DetectMessageEnd . In this case, Twilio will return an AnsweredBy immediately when a human is detected but for an answering machine, AnsweredBy is returned only once the end of the greeting is reached, usually indicated by a beep.
With Twilio's suite of tools, it's easy to create a fully functioning voicemail box for Flex. This guide walks you through creating a special voicemail-specific TaskRouter queue with no agents, and a workflow to send tasks to this queue after they've waited for 30 seconds.
Call Status Callbacks There are two ways to tell Twilio which URL to use. You can: Set the StatusCallback parameter on a Call resource for an outgoing phone call that uses the REST API. Set the statusCallback attribute on the <Number> element in TwiML.
Place a voice message to your Twilio numberCall your Twilio number, leave a message, and then hang up. Wait a few seconds for your voice message to be transcribed, and then you should receive an SMS to your phone number of the transcribed message as well as who sent the message!
From the RestAPI docs about the IfMachine
parameter:
If Twilio detects that a machine, not a human, has answered the call, Twilio will make a request to your application URL setting 'AnsweredBy' to 'machine'. The call flow will proceed as normal, and your application can choose to customize the content of the call for a recorded greeting. Twilio will wait until the familiar "BEEP" of an answering machine to begin executing your call flow, so the machine (or voicemail) will capture
<Play>
or<Say>
content. Keep in mind that if a machine answers you'll want to avoid using<Gather>
or<Record>
because they require user input.
Also note:
Answering machine detection is an experimental feature, and support is limited.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With