Grammar with * support deplay issues

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

breeve

  • Posts: 2
  • Joined: Mon Nov 20, 2017 11:38 am

Grammar with * support deplay issues

PostMon Nov 20, 2017 11:53 am

So our dtmf only IVR application was running fine with the build in grammars like

<grammar src='builtin:dtmf/digits?length=1'/>

Our legacy VXML browser even supported the * key with the built in grammars. In plumb and other VXML browser, the built in digit grammar doesn't support the * key which makes sense since it is only 0-9 digits.

We also had a delay issue between pages when the user selected a value which we solved with the
<property name="termmaxdigits" value="true"/>

So everything is peachy but the star key. I decided to create a custom grammar like the below. Now the star key works but the delay is back. Seems the termmaxdigits tag is not working now. Does that tag only apply to build in grammars? The grammar below is specifying only one digit by the repeat attribute.

<grammar type="application/srgs+xml" root="ROOT" mode="dtmf">
<rule id="ROOT" scope="public">
<one-of>
<item repeat="1-1">
<ruleref uri="#digit"/>
</item>
<item>"*"</item>
</one-of>
</rule>
<rule id="digit" scope="public">
<one-of>
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
</one-of>
</rule>
</grammar>
Offline

support

  • Posts: 3368
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Grammar with * support deplay issues

PostTue Nov 21, 2017 12:41 pm

Hi,

We see that you have made another post saying the app is working. Do you need further assistant with this topic or are you all set?

Regards,
Plum Support

Return to Plum DEV Q&A

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron