extracted libsrtp functions to RAII class SrtpSession