I am trying to create a client which can accept a connection from a webrtc client. The part I am having difficulty with is the DTLS-SRTP portion, I would like to get the raw RTP stream. Currently I am using an openssl s_server with dtls and -use_srtp. I am able to get the SRTP stream, however I cannot decrypt it without the Master Key (can't find a way for openssl to dump the key..). If I am able to get the Master Key exchanged within the dtls, I can decrypt the packets.
Anyone try to do something similar?
Thanks