cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
861
Views
0
Helpful
5
Replies

How to read URI value from Voice Element using Java

yu9i
Level 1
Level 1

I would like to read the value of URI property in Cisco CVP Voice Element. This URI property is where we define the media file to play from the media server. Is there anyway I can read this value using Java. 

5 Replies 5

I might be missing something but what exactly are you trying to do?

If you use an audio element to play whatever is stored in {Data.Session.Blah}.wav for instance, isn't that your value you want?

I would like to read the value of URI using Java code.

 

image.png

Right, but in what manner?

In other words, you want to use Java to sift through an existing project to output it for you?

Or are you looking for Java to somehow make it easier for you to write Studio projects?

The example you gave, you have static file names. If you're looking to do something dynamic, you could use Session data to populate it so that the URI would be {Data.Session.WelcomeFileName} for instance.

Sorry if I'm not following what you want.

So, are you asking how to use Java code to find out what's in the URI field of an element?

@janinegraves : yes I would like to use Java code to find out what's in the URI field of an element and thank you all for a quick response.