try {
AccessLog accessLogInstance = AccessLog.getInstance();
ConfigFactory.instance().activateConfiguration(accessLogInstance);
AccessLog instance = AccessLog.getInstance();
if (instance != null && instance.getSipAccessLogEnabled())
instance.openAccessLog();
} catch (Exception e) {
}
}