Skip to main content
The Wait element waits silently for a specified number of seconds. If <Wait> is the first element in a XML document, Vobiz will wait the specified number of seconds before picking up the call.

Attributes

Nesting rules

Wait takes no child elements and no text content; it is a self-closing element (<Wait/>). It can appear as a top-level child of <Response> or nested inside PreAnswer. Wait posts no parameters of its own to any URL.

Examples

Pause before speaking

Delay answering an inbound call

When Wait is the first element, Vobiz holds the call ringing for length seconds before answering. This avoids billing the first few seconds and can deter auto-diallers.

Exit early on silence

With silence="true", Vobiz ends the wait as soon as it detects minSilence milliseconds of quiet, up to a maximum of length seconds. Useful for waiting out a greeting before proceeding.

Leave a voicemail after the beep (AMD)

With beep="true", Vobiz waits for the answering-machine beep before continuing, so your message records after the tone. See Machine detection.

Edge cases and tips

  • silence and beep are mutually exclusive. beep is only evaluated when silence (and minSilence) are not active. Do not rely on both behaviors in the same Wait.
  • length must exceed minSilence. Because length is in seconds and minSilence is in milliseconds, ensure length * 1000 > minSilence, or the silence early-exit never has room to trigger.
  • First-element behavior is special. Only a leading Wait delays answering. A Wait placed after another element pauses an already-answered call.
  • Detection is best-effort. Beep and silence detection depend on audio quality and carrier behavior; always pair them with a fallback flow.