Re: Call Conferencing question
Jörg Wiesmann <[email protected]> Wed, 20 Jul 2005 23:48:04 -0600
| Newsgroups | gmane.comp.java.sun.jtapi |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
You may try this
if (observedAddress.getConnections() != null &&
observedAddress.getConnections()[0].getState() == Connection.CONNECTED) {
Connection connection = observedAddress.getConnections()[0];
CiscoCall callMaster = (CiscoCall)
observedAddress.getConnections()[0].getCall();
CiscoCall callCreateNew;
try {
callCreateNew = (CiscoCall) provider.createCall();
try {
callCreateNew.conference(callMaster);
} catch (Exception e) {
System.out.println(observedAddress.getTerminals()
[0].getTerminalConnections()[0]);
TerminalConnection terminalNewCreated =
observedAddress.getTerminals()[0].getTerminalConnections()[0];
if (callMaster.getConferenceController() == null) {
callMaster.setConferenceController
(terminalNewCreated);
callCreateNew.setConferenceEnable(true);
}
callCreateNew.consult(terminalNewCreated,
numberAddingToConference);
callMaster.conference(callCreateNew);
}
} catch (Exception e) {
Logger.getLogger(this.getClass()).warn("Conference could
not be created " + e);
}
} else {
Logger.getLogger(this.getClass()).info("Connection must be
established to create a conference");
}
where observedAddress is your Address, which is actually talking to someone.
That code allows you to add somebody to a conference when there is an
active call available.
greetz Jörg Wiesmann
===========================================================================
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".