Hi again. I am really sorry to email, but I have been messing around trying to figure this out for a few hours now. Need to call in the big guns
Everything goes well with the code below, but after I press "1" to confirm, I get an error. The VXML being processed is valid - I checked it using your validator. This is the error info (VXML is below it). Any assistance would be great. Like I said, everything else is working, not sure where this error really came from!
Thanks a million.
Dennis
============================================================
<?xml version='1.0'?><speak>For example, if the bill is 40 dollars and 45 cents, enter four<break size="medium" time="100"/> zero<break size="medium" time="100"/> star<break size="medium" time="100"/> four<break size="medium" time="100"/> five<break size="medium" time="100"/> pound sign.</speak>
---------
VXI::field_element - activating grammars for form = 'TotalBillInput' formitem = 'totalbill'
VXI::do_recognition()
PromptManager::Play()
starting playback: bargein=true, inputmodes="dtmf speech"
Newly queued prompts are now being played
Thu 11 Aug 2011 01:04:15 PM EDT:
dtmf input: 12*45#
Found grammar match
hypothesis #0: 12.45 (0.9990)
LOCAL: *** FILLED ***
LOCAL: *** totalbill =12.45***
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Please confirm the total bill before tax and tip is <say-as type="currency"> $ 12.45</say-as> . Press 1 for yes, 2 for no.</speak>
---------
VXI::field_element - activating grammars for form = 'TotalBillInput' formitem = 'totalbillconfirm'
VXI::do_recognition()
PromptManager::Play()
starting playback: bargein=true, inputmodes="dtmf speech"
Newly queued prompts are now being played
Thu 11 Aug 2011 01:04:24 PM EDT:
dtmf input: 1
Found grammar match
hypothesis #0: 1 (0.9990)
LOCAL: *** FILLED ***
LOCAL: *** Total Bill Confirmed ***
VXI::assign_element(name="voucherid" expr = "9")
VXI::assign_element(name="merchantlocationid" expr = "2")
VXI::assign_element(name="generalsitename" expr = "SixSeats")
ReferenceError: SixSeats is not defined line 1
received event: error.semantic.ecmascript:
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
============================================================
This is the VXML:
============================================================
<form id="TotalBillInput">
<field name="totalbill" type="currency">
<property name="interdigittimeout" value="3s"/>
<prompt bargein="true">Finally, using your keypad, please enter the Total Dollar Amount of the Bill before taxes and gratuity.</prompt>
<prompt bargein="true">Please press the star key to enter the decimal point followed by the pound sign.</prompt>
<prompt bargein="true">For example, if the bill is 40 dollars and 45 cents, enter four<break time="100"/>zero<break time="100"/>star<break time="100"/>four<break time="100"/>five<break time="100"/>pound sign.</prompt>
<filled>
<log expr="'*** FILLED ***'"/>
<log expr="'*** totalbill =' + totalbill + '***'"/>
</filled>
</field>
<field name="totalbillconfirm" type="digits?minlength=1;maxlength=1">
<prompt bargein="true">Please confirm the total bill before tax and tip is <say-as type="currency">$<value expr="totalbill"/></say-as>. Press 1 for yes, 2 for no.</prompt>
<filled>
<if cond="totalbillconfirm=='1'">
<log expr="'*** FILLED ***'"/>
<log expr="'*** Total Bill Confirmed ***'"/>
<assign name="voucherid" expr="9"/>
<assign name="merchantlocationid" expr="2"/>
<assign name="generalsitename" expr="SixSeats"/>
<submit next="ss_redeemvoucher.asp" method="post" namelist="voucherid merchantlocationid generalsitename totalbill"/>
<else/>
<log expr="'*** RE PROMPT FOR BILL AMOUNT AGAIN ***'"/>
<goto next="#TotalBillInput"/>
</if>
</filled>
</field>
</form>
============================================================