// app can reuse the external meeting id.
long createTime = System.currentTimeMillis();
internalMeetingId = internalMeetingId + '-' + new Long(createTime).toString();
// Create the meeting with all passed in parameters.
Meeting meeting = new Meeting.Builder(externalMeetingId, internalMeetingId, createTime)
.withName(meetingName).withMaxUsers(maxUsers).withModeratorPass(modPass)
.withViewerPass(viewerPass).withRecording(record).withDuration(meetingDuration)
.withLogoutUrl(logoutUrl).withTelVoice(telVoice).withWebVoice(webVoice).withDialNumber(dialNumber)
.withDefaultAvatarURL(defaultAvatarURL)
.withMetadata(meetingInfo).withWelcomeMessage(welcomeMessage).build();
String configXML = getDefaultConfigXML();
meeting.storeConfig(true, configXML);
return meeting;
}