pick up call on CTI routepoint

Stephan Steiner <[email protected]>
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <[email protected]>
Hi

For a transfer scenario I have to pick up incoming calls on a routepoint. The
Cisco JTAPI documentation makes me think this is possible, but leaves a lot to
be desired. Here's how I register my routepoint:

CallCenterProvider p = (CallCenterProvider)prov; // prov is a Provider
term = (CiscoRouteTerminal)p.getTerminal(name);
adrs = term.getAddresses();
CiscoMediaCapability [] caps = new CiscoMediaCapability[1];
caps[0] = CiscoMediaCapability.G711_64K_30_MILLISECONDS;
term.register(caps, CiscoRouteTerminal.NO_MEDIA_REGISTRATION); // term is a
CiscoRouteTerminal

then when I get a CallCtlConnAlertingEv event, I do the following:

TerminalConnection[] tconns = term.getTerminalConnections();
CiscoTerminalConnection ctcon = (CiscoTerminalConnection)tconns[0];
ctcon.answer();

I catch all the errors ctcon.answer is supposed to throw, but I get another one:
com.cisco.jtapi.PlatformExceptionImpl, with message "Operation not allowed".
That of course tells me everything I need to know - not.

I figure it may have something to do that I don't register for media termination
(the documentation mentions something about NO_MEDIA_TERMINATION - that variable
is not even available in the CCM 4.01 JTAPI), but if I try to do that (according
to the sequence chart in the Cisco JTAPI documentation), term.register throws a
CiscoRegistrationException containing no message, so I'm once again the wiser.

If you have any ideas, I'd really like to hear them.

Cheers
Stephan

===========================================================================
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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.