Page 1 of 1

How do use a dtmf * in a menu? I keep getting error.grammar

Posted: Thu Oct 02, 2003 5:46 pm
by tloring
Hello, I'm having trouble with something that seems should not be a problem, which is provided in example code, and which validates.

I simply want to make a choice on dtmf * in a menu, however, when I specify *, I receive the following error:

"A serious error of error.grammar.choice has occurred".

The error log doesn't flag this in red, but the error is actually in there.

Is this in conflict with some setting? Or what am I missing here?

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

<menu id="replay">
  <prompt> some prompt
 </prompt>
 <choice dtmf="6" next="#jump-ahead">Jump Ahead</choice>
 <choice dtmf="4" next="#jump-back">Jump Back</choice>
 <choice dtmf="*" next="#record-menu">Menu</choice>
</menu>

<form id="jump-back">
  <block> 
  <prompt>Ok</prompt>
  </block> 
</form>

<form id="jump-ahead">
  <block>
  <prompt>Ok</prompt>
  </block>
</form>

<form id="record-menu">
  <block>
  <prompt>Ok</prompt>
  </block>
</form>

</vxml>

Re: Choice error limitation of IVR platform

Posted: Mon Oct 06, 2003 9:26 am
by support
Unfortunately, that is a limitation of the IVR platform. You cannot specify non numeric characters as dtmf <choice> objects (so # and * are out).

There is still an alternative, however. You can accomplish the same functionality using a <link>


Code: Select all

<?xml version="1.0"?> 
<vxml version="2.0"> 

<link expr="'#record-menu'">
  <grammar type="application/x-jsgf">^"*"$</grammar>
</link>

<menu id="replay"> 
  <prompt> 
  some prompt 
  </prompt> 
<choice dtmf="6" next="#jump-ahead">Jump Ahead</choice> 
<choice dtmf="4" next="#jump-back">Jump Back</choice> 
</menu> 

<form id="jump-back"> 
  <block> 
  <prompt>Arrived at jump back</prompt> 
  </block> 
</form> 

<form id="jump-ahead"> 
  <block> 
  <prompt>Arrived at jump ahead</prompt> 
  </block> 
</form> 

<form id="record-menu"> 
  <block> 
  <prompt>Arrived at record menu</prompt> 
  </block> 
</form> 
</vxml> 
Hope this helps :shock: