Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: null on 12-03-2007 05:17:56 PM I have a form that I'm configuring Dynamically starting w/ a base config. The config compiles and loads and I can enter and exit the form fine w/in the application. The problem I am having is that the 'value' that is assigned to the element data of the form is '8' and not the value I want which will be something like 'VA'. It's a dtmf only form. Here is the code I'm using to add the dtmf_keypress setting....
Basically the form is built on values that are returned from a DB. The variable count refers to the number of records returned in from the DB and where we are in the loop. Product refers to the value that should be associated w/ that count (eg. 'VA'). So I cannot use '8' and evaluate that to a 'VA' after-the-fact, because on the next call menu option '8' can associate to a completely differen't value.
Thanx in advance for any help!
Ryan.
Subject: RE: Form 'value' Dynamic Config Replied by: null on 14-03-2007 06:09:33 PM Hello Ryan,
You mentioned, [code:1:b6a1bf8471] I'm configuring Dynamically starting w/ a base config. The config compiles and loads and I can enter and exit the form fine w/in the application. The problem I am having is that the 'value' that is assigned to the element data of the form is '8' and not the value I want [/code:1:b6a1bf8471]
May we suggest printing to the console to help debug whether your settings are set correctly? Use the VoiceElementConfig's method [i:b6a1bf8471]getSettingValues(String settingName, ElementAPI elementAPI)[/i:b6a1bf8471] to return all values assigned to a setting in the element configuration. Note: the method [i:b6a1bf8471]getSettingValue(String settingName, ElementAPI elementAPI)[/i:b6a1bf8471] will return â¿¿the first value assigned to a setting in the element configuration as a String. For settings that have a single value, that value is returned. For those that have multiple values, only the first value is returned. If the setting does not exist, this method returns nullâ¿¿ (see the Audium javadoc in your AUDIUM_HOME/docs/javadocs directory). The "dtmf_keypress" setting you are adding in a loop potentially would have multiple values.
Does your starting base configuration (that you are adding to) also contain a â¿¿dtmf_keypressâ¿¿ setting with just the value of the count (for example â¿¿8â¿¿)? If so, the order of the â¿¿dtmf_keypressâ¿¿ determines which have precedence. For example
DTMF Keypress 8 DTMF Keypress 8
The first dtmf_keypress setting will have precedence over the second. When the caller enters dtmf-8 with the above configuration, the interpretation return from the browser will be 8 and the value set as the element data named â¿¿valueâ¿¿ will be 8.
Hope this helps, Tam
Subject: RE: Form 'value' Dynamic Config Replied by: null on 14-03-2007 10:14:59 PM Tam, Thanx for your reply. I did what you said. I added the following code into my custom config to write the setting to the activity log....
[code:1:60b0edee11] String dtmf = defaults.getSettingValue("dtmf_keypress", elementAPI); elementAPI.addToLog("**** Here is the dtmf value: ****", dtmf + " what ya think!!!"); [/code:1:60b0edee11]
Here is what shows up in the Log...
[code:1:60b0edee11] menu_options,custom,**** Here is the dtmf value: ****,1 [A] what ya think!!! [/code:1:60b0edee11]
[i:60b0edee11]I removed the ip/date tags[/i:60b0edee11]
So, it looks like it's creating the setting correctly. Unfortunetly, I'm still getting a [b:60b0edee11]'1'[/b:60b0edee11] as the value in the [b:60b0edee11][i:60b0edee11]{Data.Element.menu_options.value}[/i:60b0edee11][/b:60b0edee11] variable instead of the[b:60b0edee11] 'A' [/b:60b0edee11]which I am expecting.
Also, to answer some of your other questions...
No dtmf_keypress setting configured in the base config
There are multiple dtmf_keypress settings created (took the first 1)
Any other thoughts would be appreciated.
Ryan.
Subject: RE: Form 'value' Dynamic Config Replied by: null on 16-03-2007 11:32:53 PM Hello Ryan,
Please post the vxml page that is generated for the element you configured. You can obtain the vxml page that is generated by either calling into your application in a web browser or from the Vxml debug log if your application is configured with the detailed VoiceXML debug log.
For information on the Vxml debug log, see in Audium Knowledge Base, the article How to enable VoiceXML debug mode on Audium Call Services 3.6. To configure your test application in Studio 5.1 with the detailed VoiceXML debug log, see the Audium User Guide in Studio (for Studio 5.1.3, Help > Help Contents > Audium User Guide > Audium Studio > Audium Builder > Audium Projects > Project Properties > General Settings).
To configure your test application in Studio with the detailed VoiceXML debug log, do the following in your projectâ¿¿s properties- general setting:
1) click the ⿿Add⿦⿿ button in the Loggers section 2) enter the name you wish to call your debug log 3) enter the name of the debug logger class: com.audium.logger.application.debug.ApplicationDebugLogger 4) click ⿿OK⿿ to the Logger Instance dialog box. 5) click ⿿OK⿿ to the Properties for your application dialog box.
After you call-into your test applications, check the vxml that is produced, and see how the inline grammar for your dtmf_keypress settings is rendered.
The inline dtmf-grammar that is generated for the following dtmf_keypress is as follow: [code:1:ef3668ff63] dtmf_keypress 1 [news] dtmf_keypress 2 [weather] dtmf_keypress 2 [/code:1:ef3668ff63]
(The inline grammar that is generated by Audium software is targeted for a specific browser/ASR engine. The inline grammar shown below is generated utilizing the Cisco WVS Gateway Adapter. The format of your grammar may be different depending on the targeted browser/ASR engine.):
With call-in test, the element data for dtmf-2 input is logged as: Form_in_dtmf,data,value,weather
What does the inline grammar generated for your dtmf_keypress setting looks like?
Regards, Tam
Subject: RE: Form 'value' Dynamic Config Replied by: null on 21-03-2007 08:53:45 PM In version 3.4.1 a FORM element used with a Cisco dtmf only gateway adapter will not return the bracketed keyword value regardless of how you configure it. The issue that dtmf ga uses a regex grammar instead of an xml grammar. As such, the voice browser doesn't do the interpretation of keypress to logical value.
The reported at the time we were told that it was a gateway voice browser issue and Audium would not be modified to accomodate.
Our solution was to extend the base FORM element class and, in a dtmf only context, perform the mapping within the element extensions. I've attached a copy of our source so you can see how we did it.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: