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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You might try an array of objects.
Such as setDtmfInline[/i:d7f4e8b385]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
thank you very much edwin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.