Hi all,

This vxml, i m running. But problem is <nomatch> is not working properly. I have given grammar to check entered value should be either 1 or 2 except these values(like 3,4,5, so on) nomatch should be executed. But on entering except 1 or 2, it doesn't go in nomatch it goes in <filled> block.

Code:
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
	<form>		
		<block>
			<assign name="nErrorCount" expr="0"/>
                        <prompt bargein="false">
				<voice name = "lauren">
					Welcome 
				</voice>
			</prompt>

		</block>

		<!--Extension -->
		<field name="sExtension" type="digits">
			<property name="confidencelevel" value="0.60"/>
			<property name="inputmodes" value="dtmf"/>

                       <prompt bargein="true">
				<voice>
					please enter the extension 
				</voice>
			</prompt>
                        
			<nomatch>
				<assign name="nErrorCount" expr="nErrorCount+1"/>
				<if cond="nErrorCount==10">
					<prompt bargein="true">
						<voice>
				I was unable to understand after ten attempts.  
				Goodbye.  
						</voice>
					</prompt>
					<disconnect/>
				<else/>
					<prompt bargein="true">
						<voice>
							I did not understand. 
						</voice>
					</prompt>
					</if>
			</nomatch>
			<noinput>
				<assign name="nErrorCount" expr="nErrorCount+1"/>
				<if cond="nErrorCount==10">
					<prompt bargein="true">
						<voice>
			After ten attempts, I was unable to understand the extension you requested.  				
							Goodbye.  
						</voice>
					</prompt>
					<disconnect/>
				<else/>
					<prompt bargein="true">
						<voice>
							I did not hear you.
						</voice>
					</prompt>
					<reprompt/>
				</if>
			</noinput>
                        <filled>
                                 <prompt bargein="true">
						<voice>
							You entered one or two
						</voice>
				</prompt>
                       </filled>   
                       <grammar>  ( yes | 1 | no | 2 ) </grammar>     
		</field>
</form>
</vxml>
Please guide to figure out what wrong is going on.

Thanking you.