Page 1 of 1

errno: 215 message Empty grammar fragment

Posted: Thu Jan 24, 2008 9:22 pm
by ramesh
Hello

This is the grammar file http://print2click.mobi/voice/plum/grammar.grxml . As it has worked on another platform I know it works.

When trying to use here i get the following in the call log file.

errno: 215 message Empty grammar fragment
Cache Miss: http://print2click.mobi/voice/plum/test.grammar.grxml
Attempting to fetch http://print2click.mobi/voice/plum/test.grammar.grxml
Error creating grammar
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------

A serious error of type
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
error.grammar
---------
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
has occurred. Exiting.
---------
VXI::exit_element()


Not able to figure out what could be going wrong. I have gone through available documentation and also the forums. Require help to move ahead.. Thank you .

IVR developers need more details of IVR issue

Posted: Fri Jan 25, 2008 3:41 pm
by support
Hi,

Could you please provide us with more details to help us replicate this IVR issue?

Regards,
Plum Support

More details

Posted: Fri Jan 25, 2008 9:46 pm
by ramesh
The VXML file http://print2click.mobi/voice/plum/index.vxml refers to a js file http://print2click.mobi/voice/plum/common.js and a grammar file
http://print2click.mobi/voice/plum/grammar.grxml.


I believe that should be sufficient for you to be able to replicate the issue. Thank you in advance for you help.

Ramesh

IVR platform will default to the JSGF grammar

Posted: Mon Jan 28, 2008 12:13 pm
by support
Hi,

Looking at your IVR grammar file (http://print2click.mobi/voice/plum/grammar.grxml), you should change this line of IVR code:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
to this line:

Code: Select all

<?xml version="1.0"?>
Also, we used this sample application to test your IVR grammar:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">

<property name="grammarmaxage" value="0s"/>

<form>
<field name="something">
<grammar src="revisedgrammar.grxml" type="application/srgs+xml"/>
<prompt>
	Please say something.
</prompt>
<filled>
	You said <value expr="something"/>.
</filled>
</field>
</form>
</vxml>
So, in your own IVR application, when you refer to your .grxml file, keep in mind that you have to specify the type of the grammar to "application/srgs+xml". Otherwise, the IVR platform will default to the JSGF grammar.

Hope this helps.

Regards,
Plum Support