Attributes
The<PreAnswer> element has no attributes.
Nesting rules
NestSpeak, Play, and Wait elements within the PreAnswer element. Other verbs are not allowed inside PreAnswer. Audio played during early media is not billed, since the call is not yet answered.
PreAnswer should be the first element in your <Response>. Once it finishes, place the elements that should run after the call is answered (for example, Gather or Dial) after the PreAnswer block.
Examples
Speak an announcement before answering
Play a custom ringback tone
Play branded audio while the call is still ringing, then continue once it is answered. See Notify callers.Edge cases and tips
- Not universally supported. Early media depends on the carrier and number type. Some PSTN routes and all WebRTC (Browser SDK) calls do not support
PreAnswer- the verbs run only after the call is answered in that case. Always make the flow correct whether or not early media is honored. - No billsec for early media. Audio in
PreAnswerplays before answer, so it does not count toward billed duration. Move anything you want billed (or that needs a fully answered call, likeDialorGather) outsidePreAnswer. - Only
Speak,Play, andWait. Vobiz ignores or errors on other verbs insidePreAnswer.