noinput count='3'
Posted: Fri Jun 27, 2008 12:34 pm
Hello,
I have an issue with <noinput count='3'> tag.
It is catching the event noinput. but It is not catching noinput count='3'.
I have a code snippet here.
I have this issue in the customerid part.
The same thing works in the next section.
<property name="sensitivity" value="0.3"/>
<property name="voicegender" value="female" />
<property name="interdigittimeout" value="5s"/>
<property name="timeout" value="10s"/>
<property name="fetchtimeout" value="60s"/>
<property name="recordcall" value="false"/>
<property name="inputmodes" value="dtmf"/>
<var name="customerid" expr='0'/>
<var name="zip" expr='0'/>
<var name="field_value" expr='0'/>
<var name="errorFile" expr="'0'"/>
<var name="groupid" expr="'<%=GroupID%>'"/>
<!-- GETS CUSTOMERID -->
<form id="customerentry">
<!-- DECLARES VARIABLES TO READ BACK THE INPUT -->
<var name="conf_fieldname" expr="'conf_customerid'"/>
<var name="forwardPath" expr="'CustomerEntry.do'"/>
<var name="type" expr="'digits'"/>
<var name="fieldname" expr="'customerid'"/>
<field name="field_value" >
<grammar src="builtin:dtmf/digits"/>
<grammar src="builtin:grammar/digits"/>
<prompt >
<audio expr="'recordings/'+groupid+'prompt_customerid.wav'" ></audio>
</prompt>
</field>
<subdialog name="result" src="ReplayAction.do?method=parseDigits" namelist="field_value fieldname type">
<filled>
<if cond="result.verifyInput==false">
<goto next="#customerentry" />
<else/>
<goto next="#zipentry" />
</if>
</filled>
</subdialog>
<nomatch>
<prompt>
<audio expr="'recordings/'+groupid+'error_customerid.wav'" ></audio>
<audio src="recordings/global/messages/msg_try_again.wav" ></audio>
</prompt>
<clear namelist="field_value" />
<reprompt/>
</nomatch>
<nomatch count='3'>
<goto next="Message.do"/>
</nomatch>
</form>
>
<form id="zipentry">
<field name="field_value" >
<grammar src="builtin:dtmf/digits?length=5"/>
<grammar src="builtin:grammar/digits?length=5"/>
<prompt >
<audio src="recordings/global/prompt_zip.wav" >
</audio>
</prompt>
</field>
<filled>
<prompt>
<audio src="recordings/global/messages/msg_process_wait.wav" >
</audio>
</prompt>
<assign name="zip" expr="field_value" />
<submit next="ProfileAction.do" method="post" namelist="zip" />
</filled>
<nomatch>
<prompt><audio src="recordings/global/errors/invalid_zip.wav" ></audio></prompt>
<clear namelist="zip" />
<reprompt/>
</nomatch>
<noinput>
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio>
</prompt>
<clear namelist="zip" />
<reprompt/>
</noinput>
</form>
<!-- ERROR HANDLERS -->
<catch event="error.badfetch">
<log>An HTTP fetch error occurred. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="error.semantic">
<log>semantic error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="error.semantic.ecmascript">
<log>ecmascript error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="nomatch">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear />
<reprompt/>
</catch>
<catch event="nomatch" count='3'>
<goto next="Message.do"/>
</catch>
<catch event="noinput">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear /> <reprompt/>
</catch>
<catch event="noinput" count='3'>
<goto next="Message.do"/>
</catch>
<catch event=" error.noresource ">
<log>noresource error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="connection.disconnect.hangup">
<submit next="ExitAction.do"/>
</catch>
<catch event="error.connection.baddestination ">
<log> Bad phone number </log>
<goto next="SystemError.do"/>
</catch>
</vxml>
Thanks in advance.
I have an issue with <noinput count='3'> tag.
It is catching the event noinput. but It is not catching noinput count='3'.
I have a code snippet here.
I have this issue in the customerid part.
The same thing works in the next section.
<property name="sensitivity" value="0.3"/>
<property name="voicegender" value="female" />
<property name="interdigittimeout" value="5s"/>
<property name="timeout" value="10s"/>
<property name="fetchtimeout" value="60s"/>
<property name="recordcall" value="false"/>
<property name="inputmodes" value="dtmf"/>
<var name="customerid" expr='0'/>
<var name="zip" expr='0'/>
<var name="field_value" expr='0'/>
<var name="errorFile" expr="'0'"/>
<var name="groupid" expr="'<%=GroupID%>'"/>
<!-- GETS CUSTOMERID -->
<form id="customerentry">
<!-- DECLARES VARIABLES TO READ BACK THE INPUT -->
<var name="conf_fieldname" expr="'conf_customerid'"/>
<var name="forwardPath" expr="'CustomerEntry.do'"/>
<var name="type" expr="'digits'"/>
<var name="fieldname" expr="'customerid'"/>
<field name="field_value" >
<grammar src="builtin:dtmf/digits"/>
<grammar src="builtin:grammar/digits"/>
<prompt >
<audio expr="'recordings/'+groupid+'prompt_customerid.wav'" ></audio>
</prompt>
</field>
<subdialog name="result" src="ReplayAction.do?method=parseDigits" namelist="field_value fieldname type">
<filled>
<if cond="result.verifyInput==false">
<goto next="#customerentry" />
<else/>
<goto next="#zipentry" />
</if>
</filled>
</subdialog>
<nomatch>
<prompt>
<audio expr="'recordings/'+groupid+'error_customerid.wav'" ></audio>
<audio src="recordings/global/messages/msg_try_again.wav" ></audio>
</prompt>
<clear namelist="field_value" />
<reprompt/>
</nomatch>
<nomatch count='3'>
<goto next="Message.do"/>
</nomatch>
</form>
>
<form id="zipentry">
<field name="field_value" >
<grammar src="builtin:dtmf/digits?length=5"/>
<grammar src="builtin:grammar/digits?length=5"/>
<prompt >
<audio src="recordings/global/prompt_zip.wav" >
</audio>
</prompt>
</field>
<filled>
<prompt>
<audio src="recordings/global/messages/msg_process_wait.wav" >
</audio>
</prompt>
<assign name="zip" expr="field_value" />
<submit next="ProfileAction.do" method="post" namelist="zip" />
</filled>
<nomatch>
<prompt><audio src="recordings/global/errors/invalid_zip.wav" ></audio></prompt>
<clear namelist="zip" />
<reprompt/>
</nomatch>
<noinput>
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio>
</prompt>
<clear namelist="zip" />
<reprompt/>
</noinput>
</form>
<!-- ERROR HANDLERS -->
<catch event="error.badfetch">
<log>An HTTP fetch error occurred. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="error.semantic">
<log>semantic error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="error.semantic.ecmascript">
<log>ecmascript error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="nomatch">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear />
<reprompt/>
</catch>
<catch event="nomatch" count='3'>
<goto next="Message.do"/>
</catch>
<catch event="noinput">
<prompt><audio src="recordings/global/verbiage/ver_didn't_get.wav" ></audio></prompt><clear /> <reprompt/>
</catch>
<catch event="noinput" count='3'>
<goto next="Message.do"/>
</catch>
<catch event=" error.noresource ">
<log>noresource error. Terminating...</log>
<goto next="SystemError.do"/>
</catch>
<catch event="connection.disconnect.hangup">
<submit next="ExitAction.do"/>
</catch>
<catch event="error.connection.baddestination ">
<log> Bad phone number </log>
<goto next="SystemError.do"/>
</catch>
</vxml>
Thanks in advance.