02-09-2007 08:13 AM - edited 03-13-2019 03:55 PM
Hi..
i don't know what's wrong with my own CallerInfo.java - it's registering onto the CallManager and seems to work, but i never get any event change when receiving a call for example ... i am not THAT new to Java, so i could compile everything, JTAPI and SDK are working ...
*** SNIP ***
import com.cisco.ipphone.sdk.CallerInfo.CallerInfoServer;
public class CallerInfo {
private String callManager = "xxx.xxx.xxx.xxx";
private String jtapiUserId = "user";
private String jtapiPassword = "password";
private String phoneName = "myphonename";
private String[] numbers;
public CallerInfo() {
CallerInfoServer callerInfoServer = CallerInfoServer.getCallerInfoServer(callManager, jtapiUserId, jtapiPassword);
numbers = callerInfoServer.getActiveCallPartyNumbers(phoneName);
if (numbers != null) {
for (int i = 0; i < numbers.length; i++) {
System.out.println(numbers[i]);
}
}
}
public static void main(String[] args) {
new CallerInfo();
}
}
*** SNAP ***
My Consoles out:
Creating the CallerInfoServer ...
Initializing Jtapi
Opening JTAPI provider connection to xxx.xxx.xxx.xxx ...
Provider successfully opened.
CallerInfoServer successfully created and running.
02-12-2007 12:17 AM
No Idea? Anyone?
02-13-2007 12:22 AM
I'd try importing cisco's callerinfo classes into your own project then debug.
That way you'll see if you get any CallEv's or not and we can take it from there.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide