Re: Problem with disconnecting a connection from a conference call

Stephan Steiner <[email protected]> Thu, 10 Mar 2005 01:16:10 -0700
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
that's weird. How do you set up the calls? Here's the call setup snippet
from my working app (currently based on monitoring a physical set rather
than a CTI Port), but code wise that shouldn't change anything:

CiscoCall call = (CiscoCall)ev[i].getCall();
TerminalConnection[] tconns =
call.getCalledAddress().getTerminals()[0].getTerminalConnections();
CiscoTerminalConnection ctcon = (CiscoTerminalConnection)tconns[0];
ctcon.answer(); // answer the incoming call
CiscoCall officePhoneCall = makeCall(conf.getCtiLine(), conf.getOfficeLine());
call.conference(officePhoneCall);
CiscoCall cellPhoneCall = makeCall(conf.getCtiLine(), conf.getOutgoingLine());

And makecall does this in a try/catch:

CiscoCall call = (CiscoCall)provider.createCall();
Address sourceDN = provider.getAddress(originatorDN);
Terminal term = sourceDN.getTerminals()[0];
call.connect(term, sourceDN, callDN);
return call;

Just to check.. if you sit in debug mode for a while, CallManager seems to
drop certain calls on its own and I do get some in/out of service messages.
But if you also get the error if you're just running the app without
stepping through, then it's definitely not that.

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