Add somebody to a conference February 19, 2015 joerg_wiesmann Post in Java,JTAPI If you ever wanted to know how you can add anybody to a conference…you may take a look at the next lines. Written by Jörg Wiesmann Saturday, 05 August 2006 /** * @param connectionMaster * @param numberAddingToConference * @param observedAddress * @param terminalName */ public void addToConference(CallControlConnection connectionMaster, String numberAddingToConference, Address observedAddress, String terminalName) { if (observedAddress.getConnections() != null && connectionMaster.getState() == Connection.CONNECTED) { CiscoCall callMaster = (CiscoCall) connectionMaster.getCall(); CiscoCall callCreateNew; try { callCreateNew = (CiscoCall) provider.createCall(); try { callCreateNew.conference(callMaster); } catch (Exception e) { Terminal terminal[] = observedAddress.getTerminals(); TerminalConnection terminalNewCreated = null; for (int i = 0; i < terminal.length; i++) { if (terminal[i].getName().equals(terminalName)) { terminalNewCreated = terminal[i].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”); } }