<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
WhenWait 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
Withsilence="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)
Withbeep="true", Vobiz waits for the answering-machine beep before continuing, so your message records after the tone. See Machine detection.
Edge cases and tips
silenceandbeepare mutually exclusive.beepis only evaluated whensilence(andminSilence) are not active. Do not rely on both behaviors in the sameWait.lengthmust exceedminSilence. Becauselengthis in seconds andminSilenceis in milliseconds, ensurelength * 1000 > minSilence, or the silence early-exit never has room to trigger.- First-element behavior is special. Only a leading
Waitdelays answering. AWaitplaced 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.