Showing 6 results.
Items per Page 50
of 1

CVP Forum

« Back to General Discussion

Dynamic Menus and Dynamic Exit States

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
I would like to know how to use a Form element (DTMF only) to address the following options using Cisco CVP 4.0 (DTMF Gateway Adapter)

1) Dynamic menus, which will intern use dynamic prompts and
2) Dynamic call tree options, where the exit states are dynamic

Please help me with some sample code / web links where I can find this information.

Also if there are any other alternative, please suggest.

Thanks in advance.

Thanks!
-Sethu

Sethu,

Follow the below steps to build a dynamic configuration for a Form element(using Java API)

1. Set the inputmode to dtmf for the form element.

2. Check both the check boxes "Dynamic Configuration" and "CreateBaseConfiguration" and assign the java class name

3. Add only one DTMF Keypress setting it to 1 in the builder.

4. In the java code, determine the number of options for the form element

5. Use the API VoiceConfig.addSettingValue("dtmf_keypress", 1 [account_balance])
VoiceConfig.addSettingValue("dtmf_keypress", 2 )

VoiceConfig.addSettingValue("dtmf_keypress", "* ");

VoiceConfig.addSettingValue("dtmf_keypress", "# ");

The values in square brackets are optional, jus for better coding, the getelement data of the form element would return string value in square brackets rather than jus 1 or 2 or 3

Attached is the sample java code for the same with decision xml at the end. This is jus a rough extract that I designed for such a exact requirement in my application. I hope this helps you.

regards,
Vijay

with the DTMF only gateway adapter, you'll get a 'error.semantic' exception if you try to use the square brackets to assign a value to the dtmf_keypress setting.

So set the dtmf_keypress to 1 (or 2 or 3), but DON"T set it to "1 "

Also, you don't have to configure the dtmf_keypress to "1" in Studio, you can assign all the keypresses/prompts in the Java code.

But, I do agree that you should click the checkbox for Create a Base Config.

Janine
www.TrainingTheExperts.com

Hello,
 
Did you get this to work? I'm trying to achieve a smilar thing
 
 
with the DTMF only gateway adapter, you'll get a 'error.semantic' exception if you try to use the square brackets to assign a value to the dtmf_keypress setting.

So set the dtmf_keypress to 1 (or 2 or 3), but DON"T set it to "1 "

Also, you don't have to configure the dtmf_keypress to "1" in Studio, you can assign all the keypresses/prompts in the Java code.

But, I do agree that you should click the checkbox for Create a Base Config.

Janine
www.TrainingTheExperts.com