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

errno: 215 message Empty grammar fragment

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ramesh
Posts: 2
Joined: Thu Jan 24, 2008 9:15 pm

errno: 215 message Empty grammar fragment

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

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

IVR developers need more details of IVR issue

Post by support »

Hi,

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

Regards,
Plum Support
Last edited by support on Mon Dec 28, 2009 2:08 pm, edited 1 time in total.

ramesh
Posts: 2
Joined: Thu Jan 24, 2008 9:15 pm

More details

Post 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

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

IVR platform will default to the JSGF grammar

Post 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

Post Reply