Page 1 of 1

Error accepting input values from the caller.

Posted: Tue Dec 12, 2006 10:11 am
by awaneeshp
Hi,

I have a case where in i need to get the some user input as digits to here different prompts. But in case if you enetr other than whats not mentioned in the VXML then the call gets hanged. Please let me know how to get rid of this issue. The VXML is as follows.

Code: Select all

<form id="menuresult">
    <block>
      <prompt>
        <voice name="crystal">
          <break size="medium" />Your next payment of <say-as type="currency">$50</say-as>  is scheduled for 12/18/2006
        </voice>
      </prompt>
    </block>
    <field name="myfield" type="digits?length=1">
      <prompt>
        <voice name="crystal">
          <break size="medium" />Press or Say one to hear this again<break size="medium" />Press or Say 2 to go to the Previous Menu.<break size="medium" />Press or Say Star to go to the Main Menu
        </voice>
      </prompt>
      <grammar>1|2|"*"|"star"</grammar>
      <filled>
        <if cond="myfield=='1'">
          <goto next="#menuresult" />
          <elseif cond="myfield=='2'" />
          <goto next="#submenu" />
          <elseif cond="myfield=='star'" />
          <goto next="#mainmenu" />
          <elseif cond="myfield=='*'" />
          <goto next="#mainmenu" />
        </if>
      </filled>
    </field>
  </form>
In the above VXML if we enter other than 1,2,* like 3 or 4 then the call gets hanged becuase the VXML never finds the 3,4.

Please let us know how to handle this situation.

Thanks,
-Awaneesh

IVR grammar issue

Posted: Tue Dec 12, 2006 12:43 pm
by support
That's because you specify the <field> type to be "digits?length=1" while simultaneously specifying an IVR grammar that looks for "1|2|*". BOTH IVR grammars will be active. If you don't want other digits (like 3, 4, 5, 6, 7, 8, 9, or 0) to fill the field, you should not specify a field type of "digits".