Re: working with route point

Jirka Novak <[email protected]>
Newsgroups gmane.comp.java.sun.jtapi
Organization Net-System Liberec
Message-ID <[email protected]>
Kumkum,

> Do you have the Jtrace sample?  That seems to work for me.
> I then modified the code to meet my need.
>
> Let me know if you need the sample.

I found the mistake.

                                Yours,

                                                Jirka Novak

Correct sequence:

> JtapiPeer peer=JtapiPeerFactory.getJtapiPeer(null);
> p=(CallCenterProvider)peer.getProvider(providerString);
> p.addObserver(this);
> conditionInService.waitTrue();
>
> /* Provider is ready */

/* Only CTI Route point is CiscoRouteTerminal in Cisco JTAPI */
CiscoRouteTerminal
t=(CiscoRouteTerminal)provider.getTerminal("MY_ROUTE_POINT");

/* I was missing this lines */
CiscoMediaCapability [] caps = new CiscoMediaCapability[1];
caps[0] = CiscoMediaCapability.G711_64K_30_MILLISECONDS;
t.register(caps,CiscoRouteTerminal.NO_MEDIA_REGISTRATION);

 > RouteAddress a=p.getRouteableAddresses()[0];
> a.addObserver(this);
> a.addCallObserver(this);
> a.registerRouteCallback(this);

> t.addObserver(this);
> t.addCallObserver(this);

===========================================================================
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.