cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3606
Views
0
Helpful
6
Replies

Record Elements Clarifications

Roy_11
Spotlight
Spotlight

Hi Guys,

 

Need one information, we have requirement like in Record the customer information. 

for this we are using record element . its working fine but our concern is like per calls have two recorder wav files generated to given destination FTP Server. then Inside FTP Server we can able to see the two recorded files. we want to be single files instead of two files. so how we can achieve this could you please anyone give some idea about to create the custom function/element.

i think first we need to differentiate the calls by using call id correct???

 

Please give me some example guys.....

Really appreciate your responses!!!!!!!!!!

 

Like parent child folder also fine

Thanks!
 

1 Accepted Solution

Accepted Solutions

There's nothing that comes with CVP to merge the files. You can either let the caller record both their first and last name in one record element, or you can have someone write you a custom element for Studio to do this using java. The CVP Programmers Guide tells you how to create custom elements for Studio.

View solution in original post

6 Replies 6

janinegraves
Spotlight
Spotlight

You can name the files in the Settings tab of the Record elements using  variables - perhaps include the GUID: 

{Data.Session.callid}-audio1 and {Data.Session.callid}-audio2. That way they'll display together.

If you need to combine 2 different wav files, you'll need to create a custom java element to do that. You can find examples of combining wav files in java in Google by entering "Java 7 combine wav files"

janinegraves
Spotlight
Spotlight

Not sure what the wav files represent, but you might save the file name, date-time created, and other identifying info to a database using the Database element. Then you can have an app that can find all the wav file names associated with a specific caller in another app.

Our requirements like below ,

For example customer frist name is recorded press# to complete the record . Then It will go to the wav file in media server///FTP server.
Right after this element we have another record element to capture the last name of customer...for this also separate file go to the media server/FTP location.

At this point how we can merge the two wav file into single wav file



Thanks!!

Really appreciate your response!!!!!

There's nothing that comes with CVP to merge the files. You can either let the caller record both their first and last name in one record element, or you can have someone write you a custom element for Studio to do this using java. The CVP Programmers Guide tells you how to create custom elements for Studio.

Hi janinegraves,

Thank you so much for your responses.

And also may i know how to debug the Call studio project, could you help me on this. Now i set up in local and also am using 30 days trail version of Call studio.

i want to debug full application, could you please share steps to perform this .

Below are the error i am getting. could you please help me get fix it.
====================================================================================
Listening for transport dt_socket at address: 8899
Dec 13, 2019 3:19:16 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-57889"]
Dec 13, 2019 3:19:16 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Dec 13, 2019 3:19:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1263 ms
Dec 13, 2019 3:19:16 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 13, 2019 3:19:16 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.33
Dec 13, 2019 3:19:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\jvelusam\Desktop\Call_Studio\eclipse\plugins\com.audiumcorp.studio.debug.runtime\CATALINA_HOME\webapps\CVP
Dec 13, 2019 3:19:26 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Starting Cisco Unified CVP VXML Server...
*** No valid log4j config file was found in config directory C:\Users\jvelusam\Desktop\Call_Studio\eclipse\plugins\com.audiumcorp.studio.debug.runtime\AUDIUM_HOME\conf
*** while looking for C:\Users\jvelusam\Desktop\Call_Studio\eclipse\plugins\com.audiumcorp.studio.debug.runtime\AUDIUM_HOME\conf\log4j.xml
*** Default logging setup will be used
Feature to raise alert for port utilization is disabled. MaxPorts:1; Thresholds:0,0
Context service path C:\Users\jvelusam\Desktop\Call_Studio\eclipse\plugins\com.audiumcorp.studio.debug.runtime\CATALINA_HOME\connector.property
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/jvelusam/Desktop/Call_Studio/eclipse/plugins/com.audiumcorp.studio.debug.runtime/CATALINA_HOME/webapps/CVP/WEB-INF/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/jvelusam/Desktop/Call_Studio/eclipse/plugins/com.audiumcorp.studio.debug.runtime/CATALINA_HOME/webapps/CVP/WEB-INF/lib/slf4j-nop.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Loading Gateway Adapters ...
Cisco Unified Call Studio Voice Application Debugger

Loading application 'RecordPrompt'...

*** An error occurred while loading application 'RecordPrompt'. The error was: There was a problem loading classes local to the application RecordPrompt. Please see the global error log in CVP_HOME\VXMLServer/logs for more details about this error. This application will be unavailable until the problem is fixed. Note that this does not affect any other voice applications. ***



Dec 13, 2019 3:19:37 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
com.audium.server.debugger.api
com.audium.server.debugger.api.impl
com.audium.server.debugger.api.model
com.audium.server.debugger.api.util
Dec 13, 2019 3:19:37 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class com.audium.server.debugger.api.impl.BreakpointRuntimeCommandImpl
Dec 13, 2019 3:19:37 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Dec 13, 2019 3:19:38 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 03:28 PM'
Dec 13, 2019 3:19:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\jvelusam\Desktop\Call_Studio\eclipse\plugins\com.audiumcorp.studio.debug.runtime\CATALINA_HOME\webapps\CVP has finished in 23,308 ms
Dec 13, 2019 3:19:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-57889"]
Dec 13, 2019 3:19:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 23403 ms

Thanks!
Roy...

1. Note that you won't be able to test the part about taking a recording with the Studio Debugger.
2. Looks like you started the Debugger ok. In the Debugger's console (bottom left) ignore everything before the line that displays this:
Loading application 'RecordPrompt'...

3. This error message means that you have an invalid java class file within the Studio application's appname/deploy/java/application/classes or lib folder.

*** An error occurred while loading application 'RecordPrompt'. The error was: There was a problem loading classes local to the application RecordPrompt. Please see the global error log in CVP_HOME\VXMLServer/logs for more details about this error.

4. The Debugger runs from this directory:  Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime.AUDIUM_HOME

 That's where you'll be able to find the applications/appname/logs/ and logs/globalErrorLogger,

 

5. You probably either have a class file that's not compiled correctly, or you're missing the package directory structure, or something similar.

 

Example, if your code were in a package named com.mycompany

and if it were named MyRecord.java

 

Then you must copy the folder structure com/mycompany/MyRecord.class into the Studio app's appname/deploy/java/application/classes/com/mycompany/MyRecord.class 

 

During development I find it easier to troubleshoot by using the class files, don't create a jar until you've totally completed all your troubleshooting.