transfer call from cti port to an terminal

Ana Soares <[email protected]> Tue, 27 Sep 2005 03:08:20 -0600
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hi, I am having a problem with cti port.

I have an incoming call on a cti port and i want to make a pickupfromgroup
of that call to an other address.
But I have saw that this method is not suported by jtapi.
How can I do a tranfer of that call to that address?
What objects I have to use?

It works

TerminalConnection tc = term.getTerminalConnections()[0];
Connection con = tc.getConnection();
CallControlCall callControlCall = (CallControlCall)con.getCall();

CiscoTerminalConnection incomingTC = (CiscoTerminalConnection)tc;
incomingTC.answer();

callControlCall.setTransferEnable(true);
if(callControlCall.getState() == CallControlCall.ACTIVE){
  if(tc.getState() == TerminalConnection.ACTIVE){
    callControlCall.transfer(user.getExtension());
  }
}
What I am doing wrong?
Can you help me?

Thank you
Ana

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