private void sendErrorResponse(SipServletRequestImpl request, int statusCode, String msg) throws IOException {
SipServletResponse resp = request.createResponse(statusCode);
if (msg != null) {
resp.setStatus(statusCode, msg);
resp.addHeader("Error-Info", msg);
}
resp.send();
}
public boolean hasResourcePermissions(SipServletRequest request,