We have improved the Transfer API so that you can continue to control the call if the transfer is unsuccessful.
Some of you are using the Transfer API end block to transfer an IVR call to a phone number. However, in the event that the line is busy or the recipient does not answer, there is nothing else you can do.
You have told us that you would like to have control of the call after an unsuccessful transfer, such as sending the call to a voicemail. Now we provide you a way to re-wire the call flow to any middle or end block! You can use Record API for voicemail, Gather API to ask for another number, or Transfer API to transfer to another number.. It’s up to you!
How to do that?
There is a new request parameter “on_failure” added to Transfer API. You can specify “hangup” (the default) or “continue”. If you choose to continue, you can issue another Middle or End block eg. Play, Gather.