Re: pick up call on CTI routepoint
"Potluri, Mohan" <[email protected]>
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <6677B3346233B94EBB11C0609351012009A39A3D@vtg-um-e2k1.sj21ad.cisco.com> |
This is probably caused by the registration type used in register method. You may want to use DYNAMIC_MEDIA_REGISTRATION type if you want to answer the call. If DYNAMIC_MEDIA_REGISTRATION type is used you should set the RTP when media open logical channel event is received. Regards Mohan -----Original Message----- From: Discussion list for Java Telephony API [mailto:[email protected]] On Behalf Of Stephan Steiner Sent: Wednesday, February 09, 2005 8:04 AM To: [email protected] Subject: [JTAPI] pick up call on CTI routepoint 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". =========================================================================== 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".