cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
78
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Arvand Owji on 27-10-2009 02:52:25 AM
I have a custom element, and I want to use XML api to dynamically change its configuration. My xml is generated from a JSP page. I came up with a xml for this configuration but its not completely right. Basically it ignores the base configuration (I do check the box to create base configuration in the element general tab).
Here is what I have:
  <?xml version="1.0" encoding="UTF-8" ?> 
 <configuration>
  <setting name="dtmf_keypress">2</setting> 
  <setting name="dtmf_keypress">4</setting>   
 <audio_group bargein="true" count="1" name="initial_audio_group">
  <audio name="audio item 1" src="test7.wav" use_default_path="true" /> 
  </audio_group>
  </configuration> 
 
Any idea what am I missing in my XML code? I tried to put the <!DOCTYPE configuration SYSTEM "../../../../dtds/VoiceElementConfiguration.dtd"> as well but although the directory structure seems to be correct but CVP errors out by saying dtd file couldnt be loaded.
 
Thanks in advance for the help.

Subject: RE: XML Dynamic Configuration
Replied by: Arvand Owji on 27-10-2009 05:56:50 AM
I tried t print the base configuration and it seems its null. Its strange because I do check the box for it and have some settings in my element. All there name, inputs and seatings are posted to my uri correctly with values but no matter what I do "base" is null. What can cause this?

Subject: RE: XML Dynamic Configuration
Replied by: Arvand Owji on 27-10-2009 03:18:28 PM
Here is an update on this. I printed all the parameter names and it seems in contrast to what the programing guide is saying, the base configuration is being posted to the URI, in a variable named "defaults":
 

for(Enumeration e = request.getParameterNames();e.hasMoreElements(); ){
ParameterNames = (String)e.nextElement();
System.out.println(ParameterNames);
}

 
and the result is:
 

inputs
audio_init
name
settings
dtmf_keypress
defaults
star_command

 
out of these params, inputs, name, settings and defaults are being posted by CVP. i printed out the defaults and it seems it holds same values as "base" would have hold. I dont know how is this possible though. Its a pretty big discrepancy between the programing guide and the reality. Maybe it is noted somewhere but I can find it. 
Getting Started

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:

Quick Links