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

Error creating grammar

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
bmatichuk
Posts: 4
Joined: Wed Nov 10, 2004 4:13 pm
Location: Edmonton
Contact:

Error creating grammar

Post by bmatichuk »

the file http://209.82.100.37:8080/voicestockagent/lesson5.jsp

validates

but when I try to call, the verbal response is that there is an error in the grammar file.

the following log entry is created.

Wed 10 Nov 2004 05:33:31 PM EST:

New call
Beginning tel session
Beginning prompt session
Beginning rec session
Call Start Event: ANII 7804382323 DNIS 3955 VURL http://hosting.plumgroup.com/plumvp/director.vxml
DocumentParser::FetchDocument()
Previously playing audio (if any) has finished
Previously playing audio (if any) has finished
DocumentParser::FetchDocument(http://hosting.plumgroup.com/plumvp/director.vxml)
Attempting to fetch http://hosting.plumgroup.com/plumvp/director.vxml
VXI::var_element(name="dnis" expr = "session.telephone.dnis")
Previously playing audio (if any) has finished
Previously playing audio (if any) has finished
DocumentParser::FetchDocument(director.php)
Posted form data is URL encoded
Attempting to fetch http://hosting.plumgroup.com/plumvp/director.php
http://209.82.100.37:8080/voicestockagent/lesson5.jsp
Previously playing audio (if any) has finished
Previously playing audio (if any) has finished
DocumentParser::FetchDocument(http://209.82.100.37:8080/voicestockagent/lesson5.jsp)
Attempting to fetch http://209.82.100.37:8080/voicestockagent/lesson5.jsp
GrammarManager::CreateGrammarFromString():
---------

<?xml version='1.0'?>
<grammar mode="voice">
buy | sell | pending | holding | history | quote | status
</grammar>

---------



Wed 10 Nov 2004 05:33:32 PM EST:

GrammarManager::CreateGrammarFromString():
---------

<?xml version='1.0'?>
<grammar mode="dtmf">
buy | sell | pending | holding | history | quote | status
</grammar>

---------

Attempting to fetch http://209.82.100.37:8080/voicestockage ... osr3.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 occured. Exiting.
---------
VXI::exit_element()
Previously playing audio (if any) has finished
Newly queued prompts are now being played


Wed 10 Nov 2004 05:33:37 PM EST:

Previously playing audio (if any) has finished
Call End Event
Ending session
Ending Session On Channel 0


Why doesn't the validator indicate that there is a problem?
What is wrong with this grammar file?
http://209.82.100.37:8080/voicestockage ... osr3.grxml

As far as I can tell, this is perfect VXML 2.0
If there is a grammar problem, why doesn't the grammar engine tell me exactly what is wrong?

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

validator doesn't indicate IVR problem

Post by support »

The IVR grammar file:

http://209.82.100.37:8080/voicestockage ... osr3.grxml

is actually not well-formed XML; you need to close your <grammar> tag at the end of your document.


The reason that the validator doesn't indicate an IVR problem is because there *is* no problem as far as the validator is concerned. It only attempts to validate: http://209.82.100.37:8080/voicestockagent/lesson5.jsp
against the Plum VoiceXML DTD, and this file is properly structure according to the rules of the language. The validator does not perform any "run-time" checking on the integrity externally loaded IVR grammar files.


Plum Support

Post Reply