The <Pause> element will pause the call, holding for the number of seconds set by the length attribute.
The attribute below can be used to change <Pause> behavior.
| Attribute | Description |
|---|---|
|
optional
|
The length in seconds the pause should be.
|
In addition to the default <Response> element, the <Pause> element can also be nested within the <Gather> verb.
No other elements may be nested within the <Pause> element.
The InboundXML below will say "hello." and then pause for 5 seconds before saying "Are you still there?".
<Response>
<Say>Hello.</Say>
<Pause length='5'/>
<Say>Are you still there?</Say>
</Response>
Our helper libraries simplify the task of generating InboundXML while programming. The code below will output the above InboundXML example.