<menu>
<menu>
Attributes
Name
Data type
Description
String
String
String
Boolean
Notes
Example
<?php
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>\n";
?>
<vxml version="2.0">
<menu id="departments">
<prompt>
News Departments:
Press 1 or say sports to be transfered to Sports.
Press 2 or say weather to be transfered to Weather.
Press 3 or say operator assistance to be transferred to Operator Assistance.
</prompt>
<choice dtmf="1" next="#sports">Sports</choice>
<choice dtmf="2" next="#weather">Weather</choice>
<choice dtmf="3" accept="approximate" next="#operator">Operator Assistance</choice>
<noinput>Sorry, I didn't hear you.</noinput>
<nomatch>Sorry, I didn't understand you.</nomatch>
</menu>
<form id="sports">
<block>
<prompt>
The Rainbow Cubs hit a home run to win the game.
</prompt>
</block>
</form>
<form id="weather">
<block>
<prompt>
It's raining cats and dogs.
</prompt>
</block>
</form>
<form id="operator">
<block>
<prompt>
Sorry, there is no operator assistance available.
</prompt>
</block>
</form>
</vxml>Child Tags
Parent Tags
Last updated