The <Wait/> Element

This element silently waits for a specified number of seconds. If <Wait/> is the first element in a XML document, Basix will answer the call and wait the specified number of seconds.

Element Attributes

Attribute Name Description Allowed Values Default Value
length interval in seconds to wait integer/float greater than zero (positive number). It can be fractions like 0.5, 0.1 etc 1 second
purpose indicates what this is used for. This is only relevant when this element is inside GetDigits or GetInput (elements with purppose="prompt" are used to compose the GetDigits/GetInput prompt. Elements with purpose="alert" are used to compose the 'input error' prompt 'prompt' or 'alert' 'prompt'

Examples

Example 1: Simple Wait

1
2
3
4
5
<IVR>
  <Speak voice="en-US-Standard-C">I will Wait 7 seconds starting now!</Speak>
  <Wait length="7"/>
  <Speak voice="en-US-Standard-C">I just waited 7 seconds</Speak>
</IVR>

Example 2: Waiting half a second

1
2
3
4
5
<IVR>
  <Speak voice="en-US-Standard-C">Hello.</Speak>
  <Wait length="0.5"/>
  <Speak voice="en-US-Standard-C">I just waited 0.5 seconds</Speak>
</IVR>