AW: JTAPI-INTEREST Digest - 23 Sep 2005 to 27 Sep 2005 (#2005-78)
STEINER Stephan <[email protected]> Wed, 28 Sep 2005 08:43:03 +0200
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <F6BD21D50FCFD311883700508B5BC3B403EDB6C5@srklo1008.sdd.alcatel.ch> |
Hi
>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 error message are you getting? Also, I don't see you setting a
transfercontroller. I've found that it's not always necessary, but I suppose
it's good practice to always do it as sometimes the transfer will not
succeed without you setting it.
Regards
Stephan
===========================================================================
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".