[Voiceglue] Grammar with a rule that causes an error ...

Chris Wilson chris.wilson at mjog.com
Wed Apr 1 12:21:48 EDT 2009


Thanks for your reply, but unfortunately it didn't make a difference in
this instance. I found some more information on the scope however and in
fact for my example it might seem more appropriate for 'private' over
'global', apparently the 'private' is also the default. I got this from
- http://www.w3.org/TR/speech-grammar/#S3.2, but that's if I'm reading
it right ...
 
 
Thanks,
 
Chris

________________________________

From: voiceglue-bounces at voiceglue.org
[mailto:voiceglue-bounces at voiceglue.org] On Behalf Of Mark Headd
Sent: 01 April 2009 17:00
To: General discussion about voiceglue
Subject: Re: [Voiceglue] Grammar with a rule that causes an error ...


Why is the scope of your grammar rule private?  Not sure if that is the
problem, but have you tried making the scope public?

I typically do not scope my grammar rules as private unless it is a sub
rule that I am referencing from the root (public) rule via <ruleref/>:

code --

<rule id="R_1" scope="public">
 <ruleref uri="#R_2"/>
</rule>

<rule id="R_2" scope="private">
...
</rule>

-- code

Hope this helps.


2009/4/1 Chris Wilson <chris.wilson at mjog.com>


	
	Hello,
	 
	I have a menu within my VXML that keeps causing an error, this
is the VXML menu segment:
	 
	<form id="auth">
	  <field name="pin">  
	   <grammar mode="dtmf" version="1.0" root="root2">
	    <rule id="root2" scope="private">
	     <one-of>
	      <item>1951</item>
	     </one-of>
	    </rule>
	   </grammar>  
	   <prompt>Please enter the year you were born, for example if
you were born in 1958 you would enter 1958</prompt> 
	   <noinput cond="true" count="2">
	    <throw event="connection.disconnect.hangup" />
	   </noinput>  
	   <nomatch cond="true" count="2">
	    <throw event="connection.disconnect.hangup" />
	   </nomatch>         
	  </field> 
	  <block> 
	   <if cond="pin == '1951'">
	    <throw event="connection.disconnect.hangup" />
	      </if> 
	  </block>    
	 </form> 
	 
	 
	... now if I listen to the prompt and enter a digit just before
'..for example if..' and hang up then it falls out of the call with a
hangup which is correct, however if I enter a digit a after that text it
hangs up but throws the following error:
	 
	15:37:48:694 DBUG OPEN_VXI testvoic callid=[37] rcv vg:
Recognized 1 <?xml version='1.0'?> <result> <interpretation> <instance/>
<input><noinput/></input> </interpretation> </result>
	15:37:48:695 DBUG OPEN_VXI testvoic callid=[37]
|-1235850352|37|8000|com.vocalocity.vxi|GrammarManager::InternalRecogniz
e - VXIrecInterface::Recognize returned 1
	15:37:48:695 EROR OPEN_VXI testvoic callid=[37]
|-1235850352|37|CRITICAL|com.vocalocity.vxi|420|VXIinterpreterRun: The
VXIrecInterface::Recognize function appears broken. Contact the provider
of the VXIrecInterface.|message=function did not return the expected
VXIrecSUCCESS result|URL=http://myurl/template.vxml
	15:37:48:695 DBUG OPEN_VXI testvoic callid=[37] snd vg:
GetLineStatus
	15:37:48:695 DBUG VOICEGLU testvoic callid=[37] rcv ovxi:
"DeactivateGrammar 0xa5de1c0\n"
	15:37:48:695 DBUG VOICEGLU testvoic callid=[37]
DeactivateGrammar 0xa5de1c0 done
	15:37:48:695 DBUG VOICEGLU testvoic callid=[37] snd 0 to VXML
interpreter on fh="::PERL_VXML_37" at host=localhost callid=[37]
	15:37:48:695 DBUG VOICEGLU testvoic snd "0\n" to ::PERL_VXML_37
	15:37:48:701 DBUG OPEN_VXI testvoic callid=[37] rcv vg:
LineStatus 1
	15:37:48:721 DBUG OPEN_VXI testvoic callid=[37] LineStatus is
CONNECTED
	15:37:48:722 EROR OPEN_VXI testvoic callid=[37]
|-1235850352|37|SEVERE|com.vocalocity.vxi|209|VXIinterpreterRun:
Function aborted due to fatal error. This message should be preceeded by
one or more error messages explaining why this
occurred.|URL=http://myurl/template.vxml
	 
	Is it a bug, or is my VXML not quite right?
	 
	
	 
	Thanks,
	 
	
	Chris

	_______________________________________________
	Voiceglue mailing list
	Voiceglue at voiceglue.org
	http://www.voiceglue.org/mailman/listinfo/voiceglue
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090401/3b2873b6/attachment.html 


More information about the Voiceglue mailing list