Is there a chance you'll share your Erlang DTLS implementation or challenges in the erlang mailing list? DTLS support for WebRTC and similar use cases is still missing.
https://bugs.erlang.org/browse/ERL-853
http://erlang.org/pipermail/erlang-questions/2018-January/09...