The <GoTo>
element permits to jump to a section in the current XML document.
Element Attributes
The
Example:
Restricted access using password. The company's boss' calling number is 09011112222. If variable 'From' is the same as this number, authentication will be by-passed"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<?xml version="1.0" encoding="UTF-8" ?> <Response> <Section name="main"> <Switch var="From"> <Case val="09011112222"> <GoTo>menu</GoTo> </Case> <Default> <GoTo>authenticate</GoTo> </Default> </Switch> </Section> <Section name="menu"> <GetDigits retries="3" validDigits="12"> <Speak voice="rms">Press 1 to connect to Secret Destination One. Press 2 to connect to Secret Destination Two.</Speak> </GetDigits> <Switch var="Digits"> <Case val="1"> <Transfer>SecretDestination1</Transfer> </Case> <Case val="2"> <Transfer>SecretDestination2</Transfer> </Case> </Switch> </Section> <Section name="authenticate"> <GetDigits retries="3" validDigits="01234567890" numDigits="10"> <Speak voice="rms">Please dial your password</Speak> </GetDigits> <Switch var="Digits"> <Case val="2928034591"> <GoTo>menu</GoTo> </Case> <Default> <GoTo>authenticate</GoTo> </Default> </Switch> </Section> </Response> |