I'm trying to initiate a DTLS handshake after an ICE negotiation.
My ICE agent has finished its connectivity check, and I have 2 socket made
available by Ice4J using the following code :
LocalCandidate localCandidate = selectedPair.getLocalCandidate();
DatagramSocket localDatagramSocket = localCandidate.getDatagramSocket();
RemoteCandidate remoteCandidate = selectedPair.getRemoteCandidate();
InetSocketAddress remoteSocketAddress = new
Using these candidates, I'm trying to set up a DTLS client using
bouncycastle new DTLS implementation (used for negociating an SRTP
handshake, I'm not using a DTLS transport).
In order to initialize bouncycastle, I need to pass in parameter a bound
and connected socket to the DTLS implementation.
I tried to do the following :
But nothing happen there (my code hang there for several seconds, then my
remote party terminate the call, due to an expiration timer).
How can I connect my local ICE socket to the remote selected candidate ?