working with route point
Jirka Novak <[email protected]>
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Organization | Net-System Liberec |
| Message-ID | <[email protected]> |
Dear All,
I would like to manage incomming calls to route point. I'm using
Cisco Call Manager.
I'm able to get CTI route point (as terminal), I'm able to get it's
addresses. When I register observers on terminal and/or address, both
are OutOfService.
I'm using this code:
JtapiPeer peer=JtapiPeerFactory.getJtapiPeer(null);
p=(CallCenterProvider)peer.getProvider(providerString);
p.addObserver(this);
conditionInService.waitTrue();
/* Provider is ready */
t=(CiscoTerminal)provider.getTerminal("MY_ROUTE_POINT");
RouteAddress a=p.getRouteableAddresses()[0];
a.addObserver(this);
a.addCallObserver(this);
a.registerRouteCallback(this);
t.addObserver(this);
t.addCallObserver(this);
/* Now I get:
AddrEv: CiscoAddrOutOfServiceEv
TermEv: CiscoTermOutOfServiceEv
and address is not reachable
*/
Does anyone idea what is wrong? Code sample would be good too.
Jirka Novak
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JTAPI-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".