09-13-2002 07:01 AM - edited 03-12-2019 08:46 PM
We have a functional CallManager 3.1 installation.
I am trying to write a very simple JTAPI call routing application.
I have set up 2 CTI route points in CallManager (Dir# 2395 & 2396).
In the JTAPI code, I obtain the provider just fine -
CallCenterProvider prv = (CallCenterProvider) peer.getProvider ( providerString );
I then get the routeable addresses
RouteAddress[] ra = provider.getRouteableAddresses();
At this point, ra[0] contains address 2396 , ra[1] contains address 2395.
Next, I attempt to register my callback to route calls for the address '2395'
MyRouteCallback myRouteCallback;
ra[1].registerRouteCallback (myRouteCallback);
I get the exception:
".. com.cisco.jtapi.ResourceUnavailableExceptionImpl"
Documentation indicates ---
The registerRouteCallback() method throws this exception if the max number
of registered callbacks on the address (2395) has been exceeded..
BUT - I have no callbacks registered yet...!
Can Someone give some help/advice here?
Can someone possible share a (working) code sample
for setting up a simple JTAPI call routing.?
Thanks in advance,
Don Henderson - don@research.att.com
09-20-2002 11:58 AM
09-20-2002 12:34 PM
This is now solved! Cisco engineer pointed me at the sample code in /Program Files/JTapiTools.
My problem was that I had forgotten to instantiate the RouteCallback object...ie.,
RouteAddress ara = (RouteAddress) provider.getAddress (RoutePointNum);
(RouteAddress.ALL_ROUTE_ADDRESS);
mycallback = new MyRouteCallback();
ara.registerRouteCallback(mycallback);
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide