public void initiateConference ( String connId , String destination , String location , String outboundCallerId , KeyValueCollection userData , KeyValueCollection reasons , KeyValueCollection extensions ) throws WorkspaceApiException { try { VoicecallsidinitiateconferenceData initData = new VoicecallsidinitiateconferenceData ( ) ; initData . setDestination ( destination ) ; initData . setLocation ( location ) ; initData . setOutboundCallerId ( outboundCallerId ) ; initData . setUserData ( Util . toKVList ( userData ) ) ; initData . setReasons ( Util . toKVList ( reasons ) ) ; initData . setExtensions ( Util . toKVList ( extensions ) ) ; InitiateConferenceData data = new InitiateConferenceData ( ) ; data . data ( initData ) ; ApiSuccessResponse response = this . voiceApi . initiateConference ( connId , data ) ; throwIfNotOk ( "initiateConference" , response ) ; } catch ( ApiException e ) { throw new WorkspaceApiException ( "initiateConference failed." , e ) ; } }
Initiate a two - step conference to the specified destination . This places the existing call on hold and creates a new call in the dialing state . After initiating the conference you can use completeConference to complete the conference and bring all parties into the same call .