Hi,
I am implementing dynamic form element which will play out last 5 open cases, the product and provide an option to customer if they need support on any of the cases open.
To implement this i have added form element as below with my custom class.
Also mentioned DTMF_Keypress in the form element.
I am getting below error message,
at least one grammar setting should be configured for Fr_PlayOpenCalls voice element per language.
at com.audium.server.voiceElement.form.MFoundationForm.addXmlBody(MFoundationForm.java:853)
at com.audium.server.voiceElement.VoiceElementBase.getVoiceElementResult
I have attached class file. Let me know how i can fix this issue.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the code you've attached, you've commented out the dtmf_keypress
setting, so the Form element won't be valid without specifying at least
one keypress. The voice_keyword is only if you are using speech reco -
you can omit that.
//voiceElement.addSettingValue("voice_keyword", "OpenCall");
//voiceElement.addSettingValue("dtmf_keypress", callOpt);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks Janine,
I have updated code but now new error,
The initial_audio_group is required for Fr_PlayOpenCalls.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You should probably delete this line from the code:
voiceElement.setSettingValue("dtmf_grammar",
eAPI.getDefaultAudioPath()+"Grammars/PlayOpenCalls.grxml");
When I execute your code, the line above causes a NullPointerException -
it looks like the getDefaultAudioPath() method isn't returning anything,
even if I set the DefaultAudioPath in the Studio app.
Can you put in a few more println statements (right before and right
after that line above) - to see if that's where you're having trouble?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Once again thank you very much.
I will change the setting and will update you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.