CallControlCall.transfer(CallControlCall) not working

Paul Yago <[email protected]> Mon, 20 Mar 2006 20:29:24 -0800
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <[email protected]>
Hello, does anyone have any ideas why this fails:

 

I'm using Cisco's implementation of jtapi with their 4.0.3 release.
Jtapi 1.2.

The original call is coming in through a CTI port extension. 

8001 is the extension of a SCCP phone.

 

I'm attempting the following, where call2 is an existing call.

 

CallControlCall consultCall =
(CallControlCall)jtapiProvider.createCall();

consultCall.consult(tc, "8001");

 

Thread.sleep(5000); // calling sleep to give the called party time to
answer.

 

consultCall.transfer(call2);

 

 

I keep getting the following during the transfer() call.

com.cisco.jtapi.InvalidStateExceptionImpl: Did not meet pre-conditions.

 

 

However the following pre-conditions are all met:

 

//                    Check for preconditions

//                    Let tc1 be the transfer controller on this Call

//                    Let tc2 be the transfer controller on otherCall

//                    this != otherCall

//                    (this.getProvider()).getState() ==
Provider.IN_SERVICE

//                    this.getState() == Call.ACTIVE

//                    otherCall.getState() == Call.ACTIVE

//                    tc1.getCallControlState() ==
CallControlTerminalConnection.TALKING or
CallControlTerminalConnection.HELD

//                    tc2.getCallControlState() ==
CallControlTerminalConnection.TALKING or
CallControlTerminalConnection.HELD

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