Re: pick up call on CTI routepoint
"Steiner, Stephan" <[email protected]> Wed, 25 May 2005 13:34:50 +0200
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <F6BD21D50FCFD311883700508B5BC3B403EDB695@srklo1008.sdd.alcatel.ch> |
Hi
>>Ports. But I was wondering about the difference in registration. When I
>>register my CTI Port, following the JTAPI tutorial, my
>CiscoMediaCapability
>Which JTAPI Tutorial do you mean? If not the Cisco's JTrace, could you send
>me its link?
I was refering to Cisco's JTAPI developer guide
(http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_r
eference_guide_book09186a00803ef015.html). While not terribly useful on
examples, it usually still gave me an idea of what I could try out.
Below you'll find a snippet that registers a CTI Port that I use on my own
JTAPI programs.
Regards
Stephan
>
> CiscoMediaTerminal term;
> Address[] adrs;
> try
> {
> term = prov.getMediaTerminal(name);
> adrs = term.getAddresses();
> }
> catch (InvalidArgumentException i)
> {
> System.out.println("There is no MediaTerminal with name " + name);
> return false;
> }
> CiscoMediaCapability[] caps = new CiscoMediaCapability [1]; caps[0] =
> CiscoMediaCapability.G711_64K_30_MILLISECONDS;
> term.register (ipAddr, port, caps );
>
> The whole thing is wrapped into another try/catch to catch register
> exceptions. Depending on the JTAPI version you're using, you may or
> may not have to change the caps line to this:
>
> caps[0] = new CiscoG711MediaCapability();
===========================================================================
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".