Hi All

I am running a basic script and would like to add the facility where the caller can dial the extension if they know it. I have tried increasing the digit length to 2 and adding <option dtmf="31" value="31" /> but the script always picks the 1st digit. I guess this is fairly simple to someone who knows xml )

Is there anyone who can help please? Here is the original script.



<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<noinput count="3">
<audio src="timeover.wav" />
<form id="mainform">
<prompt bargein="true"> <audio src="welcome.wav" /> </prompt>
<goto nextitem="field1"/>
<field name="field1" type="digits?length=1" modal="false">
<prompt timeout="5s">
<audio src="departments.wav" />
<option dtmf="1" value="31" />
<option dtmf="2" value="32" />
<option dtmf="3" value="33" />
<option dtmf="4" value="34" />
<goto nextitem="field2"/>
<object name="field2" classid="connect">
<param name="extension" expr="field1"/>
<prompt> <audio src="timeover.wav" /> </prompt>
<goto nextitem="field1"/>