InvalidStateException when trying to transfer call (CallManager 4.02)

Stephan Steiner <[email protected]>
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hi

Here's the scenario I'm trying to work.

1) Incoming call to Terminal A. (call1)
2) Call is answered
3) Terminal A makes call to Terminal B (this puts call from Terminal A on
hold): call2
4) If call2 is picked up, call1 should be transfered to call2.

Everything works fine until 4. When I try to transfer the call (be it
call1.transfer(call2) or call2.transfer(call1)) I get an
InvalidStateException. So I checked the JTAPI documentation which says the
pre-conditions for transfer are:
Provider in service
State of call1 and call2 ACTIVE
CallControlState of the TerminalConnections on Terminal A =
CallControlState.TALKING or CallControlState.HELD

So I check for all those conditions and they are all fullfilled. Since there
are not any more conditions defined I'm stumped. I figured out that the
exception thrown is actually a InvalidStateExceptionImpl, so I cast the
exception, extract error code (0), error description (Unspecified error) and
 error name (CTIERR_UNSPECIFIED). CTIERR_UNSPECIFIED isn't even listed in
the JTAPI developer documentation and the error description really doesn't
tell me anything.

So I think something goes wrong in the Cisco JTAPI, and that error is
incorrectly returned as InvalidStateException.

If anybody has any ideas, please let me know.

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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.