Twilio voicemail - get a call back if the caller hangs up before recording

Question

Implement voicemail in Twilio. How can I get a callback if the caller freezes before recording starts?

More details

After the incoming call <dial>expires, the callback URL responds as follows:

<Response>
    <Say>Please leave a message.</Say>
    <Record playBeep="true" action="http://..." />
</Response>

The problem that I seem to encounter is that if the caller hangs up while the verb is running <Say>, the verb is <Record>never executed and therefore the application never gets a callback.

Can I get a call back in this circumstance? If so, how to do it?

+4
source share
1 answer

.

, TwiML , . Say:

<Response>
    <Say>Please leave a message.</Say>
    <Redirect>http://example.com/record</Redirect>
</Response>

:

<Response>
    <Record playBeep="true" action="http://..." />
</Response>

, StatusCallback . Twilio URL StatusCallback, , , , .

, .

+2

All Articles