* @param invite Original invitation message.
*/
private void sendDirectConnectionDeny(MsnP2PInvitationMessage invite) {
MsnslpMessage msnslpRequest = invite.getSlpMessage();
MsnslpResponse okSlpMessage = new MsnslpResponse();
okSlpMessage.setStatusCode(405);
okSlpMessage.setReasonPhrase("Not supported");
okSlpMessage.setTo(msnslpRequest.getFrom());
okSlpMessage.setFrom(msnslpRequest.getTo());
okSlpMessage.setVia(msnslpRequest.getVia());
okSlpMessage.setCSeq(msnslpRequest.getCSeq() + 1);
okSlpMessage.setCallId(msnslpRequest.getCallId());
okSlpMessage.setMaxForwards(msnslpRequest.getMaxForwards());
okSlpMessage.setContentType(msnslpRequest.getContentType());
StringHolder body = new StringHolder();
body.setProperty("SessionID", transferSessionId);
okSlpMessage.setBody(body.toString() + JmlConstants.LINE_SEPARATOR
+ "\0");
int okSlpMessageLength = Charset.encodeAsByteArray(okSlpMessage
.toString()).length;
MsnP2PSlpMessage okMessage = new MsnP2PSlpMessage();
okMessage.setSlpMessage(okSlpMessage);
okMessage.setIdentifier(getNextIdentifier());