« Back to CVP - All Versions

Com.audium cannot be resolved

Combination View Flat View Tree View
Threads [ Previous | Next ]
Showing 1 - 20 of 140 results.
of 7
Hi,
 
I am working on Cisco unified call studio 8.0, I was trying to write a custom java class in the callstudio eclipse.
I am getting errors like Com.audium cannot be resolved in all import methods.
 
Please reply for the soultion asap.
 
Thanks,
Phani.

did you include framework.jar and servlet2.3.jar in the class path? On 3/6/2012 9:44 PM, Cisco Developer Community Forums wrote: Phani Venigalla has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Hi, Â I am working on Cisco unified call studio 8.0, I was trying to write a custom java class in the callstudio eclipse. I am getting errors like Com.audium cannot be resolved in all import methods. Â Please reply for the soultion asap. Â Thanks, Phani. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255393> or simply reply to this email. -- Janine Graves

did you include framework.jar and servlet2.3.jar in the class path? On 3/6/2012 9:44 PM, Cisco Developer Community Forums wrote: Phani Venigalla has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Hi, Â I am working on Cisco unified call studio 8.0, I was trying to write a custom java class in the callstudio eclipse. I am getting errors like Com.audium cannot be resolved in all import methods. Â Please reply for the soultion asap. Â Thanks, Phani. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255393> or simply reply to this email. -- Janine Graves


Hi,
Can you please let me know what would be the CLASSPATH.
I am building Java file in callstudio eclipse and my workinf folder is "C:\Cisco\CallStudio\eclipse\workspace\MyMercy_Java"
 
Thanks,
Phani.

I just love it when I see someone post “please reply with the solution ASAP”.

Please send money. ;-)

Regards,
Geoff

Well I could see those jar files, C:\Cisco\CVP\VXMLServer\lib this folder
Please let me know where should i place this files..

You have to create a java project in order to compile your java in eclipse.



Go to File > New > Java > Java Project, and enter a project name.



Then go to the Libraries tab and click 'Add External Jars' - and then
add the framework.jar and servlet2,3.jar (you can search for these 2
files, they are somewhere in the call studio/eclipse/plugins directory).



Then create a java file within the java project.

When you save the java file, it'll compile into a class file.

Then copy the compiled class file into your studio application, into the appname/deploy/java/application/classes directory.








 
 
 
 
 
Well I could see those jar files, C:\Cisco\CVP\VXMLServer\lib this folder
Please let me know where should i place this files..

Thanks for the reply it resolves some method some are not

i have given these packages in java file.

import com.audium.server.voiceElement.ActionElementBase;
import com.audium.server.voiceElement.ElementInterface;
import com.audium.server.voiceElement.Setting;
import com.audium.server.voiceElement.ElementData;
import com.audium.server.voiceElement.ElementException;
import com.audium.server.session.ActionElementData;

And this is the function i have written

public void doAction(String name, ActionElementData data) throws AudiumException
{
StringBuffer response = new StringBuffer("");
String phonenumber = (String)actionData.getSessionData("mPhonevar");

try {

// Send the request
URL url = new URL("http://lnxvmwas03d.smrcy.com:8080/claritygateway/providers/");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());

//write parameters
writer.write(phonenumber);
writer.flush();

// Get the response

BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
response.append(line);
}
writer.close();
reader.close();

//Output the response

actionData.setSessionData("response", response.toString());

} catch (MalformedURLException ex) {
ex.printStackTrace();
} catch (IOException ex) {
ex.printStackTrace();
}




}

But still it gives these errors below.



AudiumException cannot be resolved to a type

actionData cannot be resolved

Thanks,
Phani

Why don't you start with something simpler and get it to work first.

public class MyAction extends ActionElementBase{
public void doAction(String name, ActionElementData data) throws AudiumException
{
String callid=data.getSessionData("callid");
data.addToLog("callid",callid);
|
}

Hi,

I could able to resolve issues except one.

Unhandled exception type AudiumException

Please help why this error is giving at this statemet "data.setSessionData("response", response.toString());"

Thanks,
Phani.

Why don't you start with something simpler and get it to work first.

public class MyAction extends ActionElementBase{
public void doAction(String name, ActionElementData data) throws AudiumException
{
String callid=data.getSessionData("callid");
data.addToLog("callid",callid);
|
}

But AudiumException is giving error as cou;dnot resolve this type.
So i have given ElementException.
 
what need to be done if it should resolve AudiumException
 
Thanks

Just surround it with a try/catch. On 3/6/2012 10:37 PM, Cisco Developer Community Forums wrote: Phani Venigalla has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Hi, I could able to resolve issues except one. Unhandled exception type AudiumException Please help why this error is giving at this statemet "data.setSessionData("response", response.toString());" Thanks, Phani. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255487> or simply reply to this email. -- Janine Graves

Yes I did but still if can see my previous post you could find try/catch.

Thanks,
Phani.

It only accepting ElementException not AudiumException.

what cases they use ...

import com.audium.server.AudiumException; On 3/6/2012 10:42 PM, Cisco Developer Community Forums wrote: Phani Venigalla has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Why don't you start with something simpler and get it to work first. public class MyAction extends ActionElementBase{ public void doAction(String name, ActionElementData data) throws AudiumException { String callid=data.getSessionData("callid"); data.addToLog("callid",callid); | } But AudiumException is giving error as cou;dnot resolve this type. So i have given ElementException.  what need to be done if it should resolve AudiumException  Thanks -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255490> or simply reply to this email. -- Janine Graves

Thanks it resolved thanks for the help.

My mistake, with an action element, use ElementException, not AudiumException. On 3/6/2012 11:02 PM, Cisco Developer Community Forums wrote: Janine Graves has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- import com.audium.server.AudiumException; On 3/6/2012 10:42 PM, Cisco Developer Community Forums wrote: Phani Venigalla has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Why don't you start with something simpler and get it to work first. public class MyAction extends ActionElementBase{ public void doAction(String name, ActionElementData data) throws AudiumException { String callid=data.getSessionData("callid"); data.addToLog("callid",callid); | } But AudiumException is giving error as cou;dnot resolve this type. So i have given ElementException.  what need to be done if it should resolve AudiumException  Thanks -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255490> or simply reply to this email. -- Janine Graves -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5255526> or simply reply to this email. -- Janine Graves

Hi,

I am usign CVP call Studio 8.0(1), I need to read the voiceXML output coming from http url response by using TTS engine.

What are the methods i need to follow , What are the steps to follw.

Thanks,
Phani.

Hi,

I am using CVP Callstudio 8.0(1). I need to read Vxml output coming from URL.

What i have done so far , I wrote custom class file put it in action element i am getting some response from URL and storing in session variable.

How to check whether i am getting correct VXML output. Because i need to read this vxml output from Nuance TTS.

Please let me know where i can find the log to see the output coming out of url response.

Thanks,
Phani.

It should be simple. Once you store that output in session variable, you can log it. It will write to the activity log. For example you could have a element api that writes to the log.
Hemal
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, April 02, 2012 2:58 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Phani Venigalla in Customer Voice Portal (CVP) - CVP - All Versions: RE: Com.audium cannot be resolved

Phani Venigalla has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
Hi,

I am using CVP Callstudio 8.0(1). I need to read Vxml output coming from URL.

What i have done so far , I wrote custom class file put it in action element i am getting some response from URL and storing in session variable.

How to check whether i am getting correct VXML output. Because i need to read this vxml output from Nuance TTS.

Please let me know where i can find the log to see the output coming out of url response.

Thanks,
Phani.
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5393937>

or simply reply to this email.

Hi,

Can you send some example how to log it into activity log.

Thanks,
Phani.

Showing 1 - 20 of 140 results.
of 7