cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
412
Views
1
Helpful
2
Replies

How to setinlineDTMFGrammar() method in VMenuField

sreekanth47
Level 4
Level 4

Hi All, I'm unable to handle VGrammar methods , especially setInlineDTMF() method. In my requirement I need only two dtmf values say 2 or 3 should accept by this grammar, If user press other than this element should throw nomatch event, In my code I'm using inlinegrammar like this

VGrammar dtmfGrammar = VGrammar.getNew(sessionAPI.getPreference());

String arr[]={"2","3"};

dtmfGrammar.setDtmfInline(arr);

but when I call this method, it accepts all dtmf keys [0-9].

I'm testing this element through debugger. Is this get works in debugger? I'm attaching my code. Can any one help  me out.

Thank you.

2 Replies 2

ewindgat
Level 5
Level 5

You might try an array of objects.

Such as setDtmfInline[/i:d7f4e8b385]

thank you very much edwin