Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

don
New Member

JTAPI call Routing with CallManager - advice / sample code needed

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

2 REPLIES
Silver
don
New Member

Re: JTAPI call Routing with CallManager - advice / sample code n

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);

278
Views
0
Helpful
2
Replies
CreatePlease login to create content