Add USERNAME and MESSAGE-INTEGRITY in connectivity check's Binding Response.

This commit is contained in:
seb 2010-11-26 16:41:29 +00:00
parent ed5856810a
commit a16b8afe12

View File

@ -124,6 +124,17 @@ class ConnectivityCheckServer
Response response = MessageFactory.createBindingResponse(
request, evt.getRemoteAddress());
/* add USERNAME and MESSAGE-INTEGRITY attribute in the response */
Attribute usernameAttribute = AttributeFactory.createUsernameAttribute(
parentAgent.generateLocalUserName());
Attribute messageIntegrityAttribute =
AttributeFactory.createMessageIntegrityAttribute(
parentAgent.generateLocalUserName());
response.addAttribute(usernameAttribute);
response.addAttribute(messageIntegrityAttribute);
try
{
stunStack.sendResponse(evt.getTransactionID().getBytes(),