cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
323
Views
0
Helpful
2
Replies

Simple Example: What's wrong with my own CallerInfo.java?

marvecs-germany
Level 1
Level 1

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.

2 Replies 2

marvecs-germany
Level 1
Level 1

No Idea? Anyone?

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.