try {
/* Red5SIP integration *******************************************************************************/
Configuration conf = cfgManagement.getConfKey(3L, "red5sip.enable");
if(conf != null && conf.getConf_value().equals("yes")) {
if(room.getSipNumber() != null && !room.getSipNumber().isEmpty()) {
asteriskDbSipClient.createSIPConference(new SIPCreateConferenceRequest(room.getSipNumber()));
} else {
SipCreateConferenceRequestResult requestResult = asteriskDbSipClient.createSIPConference(new SIPCreateConferenceRequest());
if(!requestResult.hasError()) {
room.setSipNumber(requestResult.getConferenceNumber());
room.setConferencePin(requestResult.getConferencePin());
}
}