Add USERNAME and MESSAGE-INTEGRITY in connectivity check's Binding Response.
This commit is contained in:
parent
ed5856810a
commit
a16b8afe12
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user