The <Section/> Element
This element permits to group elements in named blocks so that we can jump to them using element GoTo or GetDigits attribute action or Transfer attribute failureAction.
If the xml contains a Section named 'main', the execution of the processing will start with it.
Element Attributes
| Attribute Name |
Description |
Allowed Values |
Default Value |
| name |
name of the section |
non-empty string |
none |
Example 1: jumping to another section using GoTo
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<IVR>
<Section name="main">
<Speak voice="en-US-Standard-C">Welcome.</Speak>
<GoTo>step1</GoTo>
</Section>
<Section name="step1">
<Speak voice="en-US-Standard-C">This is step one.</Speak>
<GoTo>step2</GoTo>
</Section>
<Section name="step2">
<Speak voice="en-US-Standard-C">This is step two. Bye.</Speak>
</Section>
</IVR>
|
Example 2: handling transferFailure
1
2
3
4
5
6
7
8
|
<IVR>
<Section name="main">
<Transfer failureAction="transferFailure">support</Transfer>
</Section>
<Section name="transferFailure">
<Speak voice="en-US-Standard-C">Sorry. Transfer to support failed.</Speak>
</Section>
</IVR>
|