summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-06-20 10:37:52 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-06-20 10:37:52 +0200
commitee1e658235812740c2739bd2fe85f220128e4766 (patch)
treea4171457900e42ff54ebcc0acba6df72981186f0 /modules
parentae324c7d064cf6b05194d27e5b1c09fc141c8271 (diff)
dtls_srtp: additional SDP protocols for increased interop
Diffstat (limited to 'modules')
-rw-r--r--modules/dtls_srtp/dtls_srtp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/dtls_srtp/dtls_srtp.c b/modules/dtls_srtp/dtls_srtp.c
index dc73f81..42d5c01 100644
--- a/modules/dtls_srtp/dtls_srtp.c
+++ b/modules/dtls_srtp/dtls_srtp.c
@@ -375,6 +375,15 @@ static int media_alloc(struct menc_media **mp, struct menc_sess *sess,
st->compv[0].is_rtp = true;
st->compv[1].is_rtp = false;
+ err = sdp_media_set_alt_protos(st->sdpm, 4,
+ "RTP/SAVP",
+ "RTP/SAVPF",
+ "UDP/TLS/RTP/SAVP",
+ "UDP/TLS/RTP/SAVPF");
+ if (err)
+ goto out;
+
+ out:
if (err) {
mem_deref(st);
return err;