The <GoTo/> Element
This element permits to jump to a section in the current XML document.
Element Attributes
This element has no attributes.
Example:
Restricted access using password. The company's boss' calling number is 09011112222. If variable 'CallingNumber' 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 |
<IVR> <Section name="main"> <Switch expr="CallingNumber"> <Case val="09011112222"> <GoTo>menu</GoTo> </Case> <Default> <GoTo>authenticate</GoTo> </Default> </Switch> </Section> <Section name="menu"> <GetDigits retries="3" validDigits="12" numDigits="1"> <Speak voice="en-US-Standard-C">Press 1 to connect to Secret Destination One. Press 2 to connect to Secret Destination Two.</Speak> </GetDigits> <Switch expr="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="en-US-Standard-C">Please dial your password</Speak> </GetDigits> <Switch expr="Digits"> <Case val="2928034591"> <GoTo>menu</GoTo> </Case> <Default> <GoTo>authenticate</GoTo> </Default> </Switch> </Section> </IVR> |
