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.

Cheers

Andy

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