Grammer error with choice element

Version 1
    This document was generated from CDN thread

    Created by: Grant Bagdasarian on 24-06-2013 07:24:12 AM
    Hello,

    Using Cisco 3925 - IOSVersion 15.2(3)T. No CVP. VoiceXML applications are registered on incoming dial-peers.

    I'm receiving an error for the following VoiceXML document.
     1<?xml version="1.0" encoding="UTF-8"?>
     2<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml"> 
     3<menu>   
     4<prompt>     
     5<audio src="welcome.wav"/>   
     6</prompt>   
     7<choice dtmf="1" next="/vxml/answer?id=1"/>   
     8<choice dtmf="2" next="/vxml/answer?id=2"/> 
     9</menu>
    10</vxml>

    Jun 24 12:07:19.199: //224522//AFW_:/vapp_asr_define_grammar:
    Jun 24 12:07:19.199: //224522//AFW_:/vapp_asr_define_grammar:  grammar_id=session:choice5@dialog.grammar
    Jun 24 12:07:19.199: //224522//AFW_:/vapp_asr_define_grammar:  encoding_name=UTF-8
    Jun 24 12:07:19.199: //224522//AFW_:/vapp_asr_define_grammar:  remoteupdate=0
    Jun 24 12:07:19.199: //224522//AFW_:/vapp_asr_define_grammar: grammar=<?xml version="1.0" encoding="UTF-8"?><grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar" mode="dtmf" root="root"><rule id="root" scope="public">1</rule></grammar>
    Jun 24 12:07:19.199: //224522/7373C953A866/VXML:/vxml_vapp_asr_define_grammar: 
       CALL_ERROR; [HIDDEN_URL]
       at line 1: fail with vapp error 2


    Subject: RE: Grammer error with choice element
    Replied by: Raghavendra Gutty Veeranagappa on 24-06-2013 08:11:27 AM
    Hi Grant,
     i tested your script i did not see any error, could you please send full logs with below debugs.

    debug voip app.

    Thanks,
    Ragahvendra

    Subject: RE: Grammer error with choice element
    Replied by: Grant Bagdasarian on 24-06-2013 08:24:25 AM
    Hello,

    Is there a way to enable debugging on a single dial-peer or filter the show logging to only include debug output from the associated dial-peer? We are currently running about 40 TCL service instances which are polling for outbound calls to place. This generates a massive amount of logging when I enable the debug voip app command. It's practically unreadable. 

    Does this error have something to do with ASR (Automatic Speech Recognition)? Because I see vapp_asr_define_grammer which is generating the error. We don't have ASR or TTS enabled on this machine. 

    Subject: RE: Grammer error with choice element
    Replied by: Grant Bagdasarian on 25-06-2013 12:50:24 AM
    Hello,

    Why is this piece of VoiceXML markup so dependent on speech recognition? It's just simple DTMF? Shouldn't the machine be able to handle this?

    I usually do DTMF like below, and that works fine.

     1<field name="ChosenDigit">     
     2<prompt>     
     3<audio expr="MediaDirectory + 'welcome.wav'" />     
     4</prompt>     
     5<grammar type="application/grammar+regex">.</grammar>   
     6</field>   
     7<filled>     
     8<assign name="Value" expr="ChosenDigit" />
     9</filled>


    Subject: RE: Grammer error with choice element
    Replied by: Raghavendra Gutty Veeranagappa on 25-06-2013 12:41:56 AM
    Hi Grant,
    yes this error is related ASR server,i am also seeing same error if i remove asr-server.You need to configure below commands in your router.

    ivr asr-server rtsp://<ipaddress>/recognizer
    ivr tts-server rtsp://<ipaddress>/synthesizer

    Thanks,
    Raghavendra

    Subject: RE: Grammer error with choice element
    Replied by: Raghavendra Gutty Veeranagappa on 25-06-2013 01:29:38 AM
    Hi Grant,
     
    To handle DTMF input, Cisco VoiceXML uses either an external media server or the Cisco voice gateway, which is capable of handling all DTMF applications.
    For an external media server to collect DTMF input, use W3C XML grammar. For a Cisco voice gateway to collect DTMF input, use Cisco specific DTMF grammar.
     
    I think in previous case it is W3C XML grammar and in this case it is CIsco DTMF grammar, For user input using W3C XML grammar, an external media server is required.
     
    For More information please refer grammar section in VoiceXML programming Guide in below link.
     
    Thanks,
    Raghavendra

    Subject: RE: Grammer error with choice element
    Replied by: Grant Bagdasarian on 28-06-2013 01:20:21 AM
    Alright, thank you for your help.