<div dir="ltr"><div>Hi,<br><br>What is the state of DTLS in OTP?<br><br>I'm interested in using DTLS/SRTP in Erlang for WebRTC.<br><br>I've found two implementations:<br><br>Clean code but I couldn't make it work because it's missing SRTP support.<br><a href="https://github.com/RoadRunnr/otp/tree/new_crypto_dtls" target="_blank">https://github.com/RoadRunnr/otp/tree/new_crypto_dtls</a><br><br>This works quite well. I'm able to connect clients to the server:<br><a href="https://groups.google.com/d/msg/discuss-webrtc/MP-1sCrOljA/qAs4VK-18y4J">https://groups.google.com/d/msg/discuss-webrtc/MP-1sCrOljA/qAs4VK-18y4J</a><br><br>The problem is that some clients can't connect and I'm getting HANDSHAKE packets while in the CIPHER state in the following order:<br>HANDSHAKE, SERVER_HELLO<br>HANDSHAKE, CERTIFICATE<br>HANDSHAKE, SERVER_KEY_EXCHANGE<br>HANDSHAKE, CERTIFICATE_REQUEST<br>HANDSHAKE, SERVER_HELLO_DONE<br><br>I'm assuming that is related to wrong state change or retransmission.<br>The code only implement retransmission for two packet types and have the following comment:<br>%% problem remainning: different strategy should be adopted while state==hello or cipher.<br><br></div><div>Does anyone use DTLS/SRTP in Erlang and help solve this issue or recommend another solution?<br><br>Thanks<br></div><div><br></div></div>