06-10-2016 02:00 PM
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.
06-16-2016 04:37 PM
You might try an array of objects.
Such as setDtmfInline[/i:d7f4e8b385]
06-17-2016 11:16 AM
thank you very much edwin
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide