You can verify java version by running the command java –version
How to create Java file, class file and jar file
I am writing a simple java program which will accept two integers from UCCX and then add two integers and return the sum to the two numbers and pass to UCCX.
Write the java code in the text file and save it as add .JAVA
public class add
public static int sum(int n, int m)
For Compiling the java file , go the folder where your java file is there and run the command javac add.java.
Note: You can see the add.class file in the same location where java file is there.
For creating jar files , run below command and you can see.jar file in the same folder .
Uploading jar file in UCCX and configuration
In UCCX administration page go to Application-->document management--.>default-->classspath
Click upload Document button, browse the jar file and upload it.
Then go to system—>custom file configuration. Your jar file should be under the “Selected classpath Entries:” if not then put your jar file under that box and click update.
After that restart the UCCX Engine service and Cisco Unified CCX Administration service.
UCCX script to call JAVA application
Open the script Editor
Click new to open the new script.
Note: Now when you create new variable, you can see the type “add” , if not the jar file has not added properly or some issue with jar file.
Create a variable X of type integer and set value 2
Create a variable Y of type integer and set value 3
Create a variable Y of type integer and which will store the sum of X and Y.
Drag the set option and set below value. Where “add” is the class and “sum” is the method in that class and passing X and Y as two arguments.
When you will debug the script you can see the value of z is the sum of the two numbers. X and Y value are passed as argument and SUM method will add the numbers and return the value and assign it to Z.
Hi everyone, We have an on-prem solution for clustered CMS consisting of a few sites. Assuming that half or more of our database nodes are down/inaccessible, but some callbridges are still up, what is the behavior of the callbridges which are st...
Dears:Our company's cucm version is 11, and recently I found cloudOnboarding show error message: "cloudOnboarding.error.HTTP_UNKNOWNHOST_EXCEPTION", I want to confirm what is the possible reason for this error message? I have restarted XCP Router and tomc...
Unable to dial some numbers from CIPC (SCCP) phone, but Desk Phone(SIP) calls are working with Same CSS and Device pool.CUCM Version:220.127.116.1101-3, call flow:CIPC(SCCP)--->CUCM--->Gateway(H.323)--->PSTN(PRI)--->Notworking Desk Phone...
I have configured a hunt pilot to queue calls during my contact center upgrade as a backup. The line group only has 1 dn and if the dn does not answer then I am looping it back to the hunt pilot. However, if the agent doesn't answer then the call gets dis...