ahh…
the documentation needs updated.
the correct implemenation is this.
PhoneClient client = new PhoneClient(conn);
client.addEventListener(new BasePhoneEventListener() {
// Override the handleRing event to see when we are receiving a call
public void handleRing(RingEvent event) {
log.info("receiving a call from " + event.getCallerID());
}
});
The earlier internal version of the api use onXXX syntax. When I created an OnPhone event i changed the syntax to handleXXX, this I way didn’'t have a method named onOnPhone
I will update the documentation in svn.