Call Whisper, also commonly referred to as Call Screening, involves playing a message to the callee while the caller continues to hear ringing. It can provide additional information such as the source or purpose of the call to the callee before the call begins and even allow the callee to accept or reject the call based on that information.
The <Dial> verb in TwiML makes it very easy to add a call whisper feature to your Twilio voice application by providing a call screening URL that controls the call once the callee picks up while the caller continues to hear ringing (required answerOnBridge set to true). If the call is being answered by a client created using the Twilio Client SDKs, the
url attribute on the <Client> noun can be used. If the call is being answered using a phone number, the same attribute is available on the <Number>.
This attribute can point to a URL that can return TwiML containing the <Play> and <Say> verbs to play a message to the callee before connecting the call. It can also contain <Gather> and <Hangup> verbs, allowing the callee to accept or reject the call by pressing a key.
Implementing call whisper with Twilio is very easy. Check out this tutorial to see how!