cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
338
Views
0
Helpful
1
Replies

Usage of VGrammar class in VFC.

sreekanth47
Level 4
Level 4

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.

1 Reply 1

ewindgat
Level 5
Level 5

I believe you mean dtmf?

There is a discussion here that might be useful.

DTMF Keypress optional value not consistent