Showing 6 results.
Items per Page 50
of 1

CVP Forum

« Back to General Discussion

XML Dynamic Configuration

Combination View Flat View Tree View
Threads [ Previous | Next ]
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.

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?

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.