Tags in srgs grammar supported?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

breeve

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

Tags in srgs grammar supported?

PostFri Jan 05, 2018 1:15 pm

So the following grammar doesn't work in plumb. All I get is unrecognized when I press a digit. I had one without tag elements -- this works -- but I would get spaces between the digits when I had grammars with more digits allowed. This grammar runs fine in the Voxeo environment. What am I missing?


Code: Select all
<grammar type="application/srgs+xml" tag-format="semantics/1.0" root="ROOT" mode="dtmf" maxdigits="1">
    <rule id="ROOT" scope="public">
        <tag>out=""</tag>
        <one-of>
            <item repeat="1-1">
                <ruleref uri="#digit"/>
                <tag>out += rules.latest();</tag>
            </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: 3544
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Tags in srgs grammar supported?

PostFri Jan 05, 2018 1:44 pm

Hi,

In order to help we will need a little more information. Can you explain the desired behavior for this grammar? Are you trying to create a grammar that collects either a single digit or the star key, or are you trying to collect multiple digits?

Regards,
Plum Support

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron