[Voiceglue] Grammars not working after install

Brent Russell mailbrent at gmail.com
Wed Jul 14 02:39:40 UTC 2010


I can not seem to get the Grammar to work in the lastest version of both
VoiceGlue and Asterisk. However, everything else does work as expected.

I am trying to determine if a 1 or a 9 was imputed and I have tried the
following ways:

<grammar>1|9</grammar>
<grammar mode="dtmf">1|9</grammar>
<grammar type="application/srgs">1|9</grammar>
<grammar type="application/srgs+xml">1|9</grammar>

I read srgs is supported... is it enabled by default or am I just using it
wrong.
It fails with the grammar and does not fail when I remove the grammar.....

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<property name="inputmodes" value="dtmf"/>
<property name="fetchaudiominimum" value="8s"/>

<var name="optionOne" expr=""/>
<form id="confirmPhone">
    <field name="confirmPhoneVal">
    	   <grammar>1|9</grammar>
        <prompt timeout='4s'>
          You entered
		  <audio src="http://file.com/3.mp3">Three </audio>
          If this is correct press 1 otherwise press 9
        </prompt>

        <filled>
              <if cond="confirmPhoneVal=='1'">
				<assign name="optionOne" expr="1"/>
              </if>
        </filled>

    </field>
</form>

</vxml>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100713/dd74d39f/attachment.html>


More information about the Voiceglue mailing list