-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.xml
46 lines (41 loc) · 1.33 KB
/
main.xml
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
40
41
42
43
44
45
46
<?xml version="1.0"?>
<vxml version="2.1">
<script src="trips.js" />
<script src="functions.js" />
<link next="#bye">
<grammar type="text/gsl"> [(?good bye)~0.02] </grammar>
</link>
<link next="#main_menu">
<grammar type="text/gsl"> [[(main ?menu) begin]~0.05] </grammar>
</link>
<menu id="main_menu">
<prompt><break time="1500" /></prompt>
<prompt>Welcome to GUC train reservation system.</prompt>
<prompt>For reservations, say "reservation", or press 1.</prompt>
<prompt>To find a trip, say "find", or press 2.</prompt>
<choice dtmf="1" next="reservation.xml">reservation</choice>
<choice dtmf="2" next="#find">find</choice>
<!-- <subdialog name="tsearch" src="search.xml">-->
<!-- <filled>-->
<!-- <if cond="tsearch.trip != null">-->
<!-- <prompt>Trip is not null.</prompt>-->
<!-- <var name="say" expr="sayTrip(tsearch.trip)" />-->
<!-- <log expr="say" />-->
<!-- <prompt><value expr="say" /></prompt>-->
<!-- </if>-->
<!-- </filled>-->
<!-- </subdialog>-->
</menu>
<form id="find">
<subdialog src="search.xml">
<filled>
<goto next="#bye" />
</filled>
</subdialog>
</form>
<form id="bye">
<block>
<prompt>Thank you for calling. Good bye! </prompt>
</block>
</form>
</vxml>