We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

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

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
tloring
Posts: 22
Joined: Sun Sep 07, 2003 3:51 pm

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

Post 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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Choice error limitation of IVR platform

Post 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:

Post Reply