|
|
|
|
@ -289,7 +289,6 @@ public void processOffer(List<ContentPacketExtension> offer)
|
|
|
|
|
= content.getFirstChildOfType(
|
|
|
|
|
IceUdpTransportPacketExtension.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// stream target
|
|
|
|
|
MediaStreamTarget target
|
|
|
|
|
= JingleUtils.extractDefaultTarget(content);
|
|
|
|
|
@ -347,12 +346,17 @@ public void processOffer(List<ContentPacketExtension> offer)
|
|
|
|
|
|
|
|
|
|
if(helloHash != null && helloHash[1].length() > 0)
|
|
|
|
|
{
|
|
|
|
|
EncryptionPacketExtension encryption = new
|
|
|
|
|
EncryptionPacketExtension();
|
|
|
|
|
ZrtpHashPacketExtension hash
|
|
|
|
|
= new ZrtpHashPacketExtension();
|
|
|
|
|
hash.setVersion(helloHash[0]);
|
|
|
|
|
hash.setValue(helloHash[1]);
|
|
|
|
|
|
|
|
|
|
ourContent.addChildExtension(hash);
|
|
|
|
|
encryption.addChildExtension(hash);
|
|
|
|
|
RtpDescriptionPacketExtension rtpDescription =
|
|
|
|
|
JingleUtils.getRtpDescription(ourContent);
|
|
|
|
|
rtpDescription.setEncryption(encryption);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -550,13 +554,18 @@ private ContentPacketExtension createContent(MediaDevice dev)
|
|
|
|
|
|
|
|
|
|
if(helloHash != null && helloHash[1].length() > 0)
|
|
|
|
|
{
|
|
|
|
|
EncryptionPacketExtension encryption = new
|
|
|
|
|
EncryptionPacketExtension();
|
|
|
|
|
ZrtpHashPacketExtension hash
|
|
|
|
|
= new ZrtpHashPacketExtension();
|
|
|
|
|
|
|
|
|
|
hash.setVersion(helloHash[0]);
|
|
|
|
|
hash.setValue(helloHash[1]);
|
|
|
|
|
|
|
|
|
|
content.addChildExtension(hash);
|
|
|
|
|
encryption.addChildExtension(hash);
|
|
|
|
|
RtpDescriptionPacketExtension description =
|
|
|
|
|
JingleUtils.getRtpDescription(content);
|
|
|
|
|
description.setEncryption(encryption);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -670,12 +679,17 @@ public List<ContentPacketExtension> createContentList()
|
|
|
|
|
|
|
|
|
|
if(helloHash != null && helloHash[1].length() > 0)
|
|
|
|
|
{
|
|
|
|
|
EncryptionPacketExtension encryption = new
|
|
|
|
|
EncryptionPacketExtension();
|
|
|
|
|
ZrtpHashPacketExtension hash
|
|
|
|
|
= new ZrtpHashPacketExtension();
|
|
|
|
|
hash.setVersion(helloHash[0]);
|
|
|
|
|
hash.setValue(helloHash[1]);
|
|
|
|
|
|
|
|
|
|
content.addChildExtension(hash);
|
|
|
|
|
encryption.addChildExtension(hash);
|
|
|
|
|
RtpDescriptionPacketExtension description =
|
|
|
|
|
JingleUtils.getRtpDescription(content);
|
|
|
|
|
description.setEncryption(encryption);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|