Hi experts, I created a menu using VMenuField class, and try to use setGrammar(String ar[]{ }) method . But for some reasons it not working as expected.
This is the code I used for creating Menu through VFC
VField menufield = VBuiltInField.getNew(pref, FIELD_NAME, VBuiltInField.DTMF, 1);
here is the code of using grammar
menufield.setGrammar(getDTMFGrammar(ved, repeatKey, optionDTMF,language));
here is the code for getDTMFGrammar(ved, repeatKey, optionDTMF,language)
VGrammar dtmfGrammar = VGrammar.getNew(sessionAPI.getPreference());
dtmfGrammar.setDtmfInline(new String[] {"1","2","3"});
}
when I run the entire vfc element in debugger, the grammar file is not working as expected. It accepts all dfmf options. Can any one help me to figure out this issue.