The <Section> element permits to group elements in named blocks so that we can jump to them using element GoTo or GetDigits/ReceiveFax/SendFax 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
14
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
	<Section name="main">
		<Speak voice="rms">Welcome.</Speak>
		<GoTo>step1</GoTo>
	</Section>
	<Section name="step1">
		<Speak voice="rms">This is step one.</Speak>
		<GoTo>step2</GoTo>
	</Section>
	<Section name="step2">
		<Speak voice="rms">This is step two. Bye.</Speak>
	</Section>
</Response>

Example 2: handling transferFailure

1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
	<Section name="main">
		<Transfer failureAction="transferFailure">support</Transfer>
	</Section>
	<Section name="transferFailure">
		<Speak voice="rms">Sorry. Transfer to support failed.</Speak>
	</Section>
</Response>