Why is the scope of your grammar rule private? Not sure if that is the problem, but have you tried making the scope public?<br><br>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/>:<br>
<br>code --<br><br><rule id="R_1" scope="public"><br> <ruleref uri="#R_2"/><br></rule><br><br><rule id="R_2" scope="private"><br>...<br></rule><br>
<br>-- code<br><br>Hope this helps.<br><br><div class="gmail_quote">2009/4/1 Chris Wilson <span dir="ltr"><<a href="mailto:chris.wilson@mjog.com">chris.wilson@mjog.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-size: 10pt; color: rgb(0, 0, 0); font-family: Tahoma;" vlink="#990000" alink="#00ff00" link="#0000ff" bgcolor="#ffffff"><font color="#000000">
<div><span>Hello,</span></div>
<div><span></span> </div>
<div><span>I have a menu within my VXML that keeps
causing an error, this is the VXML menu segment:</span></div>
<div><span></span> </div>
<div><span><form
id="auth"><br> <field
name="pin"> <br> <grammar mode="dtmf"
version="1.0" root="root2"><br> <rule id="root2"
scope="private"><br> <one-of><br> <item>1951</item><br> </one-of><br> </rule><br> </grammar> <br> <prompt>Please
enter the year you were born, for example if you were born in 1958 you would
enter 1958</prompt> <br> <noinput cond="true"
count="2"><br> <throw
event="connection.disconnect.hangup" /><br> </noinput>
<br> <nomatch cond="true"
count="2"><br> <throw
event="connection.disconnect.hangup"
/><br> </nomatch>
<br> </field> <br> <block> <br> <if
cond="pin == '1951'"><br> <throw
event="connection.disconnect.hangup" /><br>
</if> <br> </block>
<br> </form> </span></div>
<div> </div>
<div> </div>
<div><span>... 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:</span></div>
<div><span></span> </div>
<div><span>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><br>15:37:48:695 DBUG OPEN_VXI testvoic callid=[37]
|-1235850352|37|8000|com.vocalocity.vxi|GrammarManager::InternalRecognize -
VXIrecInterface::Recognize returned 1<br>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=<a href="http://myurl/template.vxml" target="_blank">http://myurl/template.vxml</a></span></div>
<div><span>15:37:48:695 DBUG OPEN_VXI testvoic
callid=[37] snd vg: GetLineStatus<br>15:37:48:695 DBUG VOICEGLU testvoic
callid=[37] rcv ovxi: "DeactivateGrammar 0xa5de1c0\n"<br>15:37:48:695 DBUG
VOICEGLU testvoic callid=[37] DeactivateGrammar 0xa5de1c0 done<br>15:37:48:695
DBUG VOICEGLU testvoic callid=[37] snd 0 to VXML interpreter on
fh="::PERL_VXML_37" at host=localhost callid=[37]<br>15:37:48:695 DBUG VOICEGLU
testvoic snd "0\n" to ::PERL_VXML_37<br>15:37:48:701 DBUG OPEN_VXI testvoic
callid=[37] rcv vg: LineStatus 1<br>15:37:48:721 DBUG OPEN_VXI testvoic
callid=[37] LineStatus is CONNECTED<br>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=<a href="http://myurl/template.vxml" target="_blank">http://myurl/template.vxml</a></span></div>
<div> </div>
<div><span>Is it a bug, or is my VXML not quite
right?</span></div>
<div><span></span> </div>
<div><font color="#990000"><span style="font-size: 10pt; color: rgb(77, 77, 77); font-family: Tahoma;"><font color="#990000"></font></span><span style="color: black; font-family: Tahoma;"></span></font></div></font> </div>
<div><font color="#990000"><font color="#990000"><span style="color: black; font-family: Tahoma;"><span>Thanks,</span></span></font></font></div>
<div><font color="#990000"><font color="#990000"><span style="color: black; font-family: Tahoma;"><span></span></span></font></font> </div><font color="#888888">
<div><font color="#990000"><font color="#990000"><span style="color: black; font-family: Tahoma;"><span>Chris</span></span></font></font></div>
</font><br>_______________________________________________<br>
Voiceglue mailing list<br>
<a href="mailto:Voiceglue@voiceglue.org">Voiceglue@voiceglue.org</a><br>
<a href="http://www.voiceglue.org/mailman/listinfo/voiceglue" target="_blank">http://www.voiceglue.org/mailman/listinfo/voiceglue</a><br>
<br></blockquote></div><br>