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

Unanswered Question
Feb 9th, 2007

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
stephan.steiner Tue, 02/13/2007 - 00:22

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.

Actions

This Discussion