error badfetch
Posted: Tue Mar 03, 2009 10:31 am
Please note that the submit in dtmf mode works fine. In the "Repeat Offer" section which is in voice mode, the code senses the voice and prompts are played fine but the submit ( though same as in dtmf section) are erroring with "serious error has occured. error badfetch...Please advice
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<property name="termtimeout" value="8s"/>
<property name="sensitivity" value="0.7"/>
<property name="interdigittimeout" value="30ms"/>
<property name="fetchtimeout" value="40s"/>
<form id="assign">
<field name="accept" type="boolean">
<prompt>
Hello. You are offered a web lead, press 1 to accept, or 2 to decline.
</prompt>
<filled>
<if cond="accept==false">
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
<else/>
<prompt>
You have pressed 1 to accept the lead. Please wait while we retrieve the details on the lead.
</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>
Did not understand response.
<reprompt/>
</nomatch>
<noinput>
<goto next="#RepeatOffer"/>
</noinput>
</field>
</form>
<form id="RepeatOffer">
<property name="inputmodes" value="voice"/>
<field name="Repeat">
<grammar type="application/x-jsgf" mode="voice">( one | two )</grammar>
<prompt>No response. Switching to voice mode. You may now say one to accept or two to decline</prompt>
<filled>
<if cond="Repeat==\'one\'">
<prompt>You have entered 1 to accept the lead.Please wait while we retrieve the details on the lead</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
<elseif cond="Repeat==\'two\'"/>
<prompt>You have entered 2 to decline the lead.Disconnecting</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>Did not understand response<reprompt/>
</nomatch>
<noinput>No response. Disconnecting<disconnect/>
</noinput>
</field>
</form>
</vxml>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<property name="termtimeout" value="8s"/>
<property name="sensitivity" value="0.7"/>
<property name="interdigittimeout" value="30ms"/>
<property name="fetchtimeout" value="40s"/>
<form id="assign">
<field name="accept" type="boolean">
<prompt>
Hello. You are offered a web lead, press 1 to accept, or 2 to decline.
</prompt>
<filled>
<if cond="accept==false">
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
<else/>
<prompt>
You have pressed 1 to accept the lead. Please wait while we retrieve the details on the lead.
</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>
Did not understand response.
<reprompt/>
</nomatch>
<noinput>
<goto next="#RepeatOffer"/>
</noinput>
</field>
</form>
<form id="RepeatOffer">
<property name="inputmodes" value="voice"/>
<field name="Repeat">
<grammar type="application/x-jsgf" mode="voice">( one | two )</grammar>
<prompt>No response. Switching to voice mode. You may now say one to accept or two to decline</prompt>
<filled>
<if cond="Repeat==\'one\'">
<prompt>You have entered 1 to accept the lead.Please wait while we retrieve the details on the lead</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=accept" method="post" namelist="message_reference" fetchtimeout="40s"/>
<elseif cond="Repeat==\'two\'"/>
<prompt>You have entered 2 to decline the lead.Disconnecting</prompt>
<submit next="' + config.get('PlumVoice_StartURL') + '?mode=decline" method="post" namelist="message_reference" fetchtimeout="40s"/>
</if>
</filled>
<nomatch>Did not understand response<reprompt/>
</nomatch>
<noinput>No response. Disconnecting<disconnect/>
</noinput>
</field>
</form>
</vxml>