summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-12-01 11:29:52 +0100
committerAlfred E. Heggestad <aeh@db.org>2015-12-01 11:29:52 +0100
commitbed2241da3261e472f09b21958f0cc1324a94f27 (patch)
tree15eb57fe15dd8022f4ac8c3d1406553deb527dd6
parent2cf7b334058a926ea9b20d8dd8d9eb9c6dbc191e (diff)
zrtp: fix ZRTP over TURN
-rw-r--r--modules/zrtp/zrtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/zrtp/zrtp.c b/modules/zrtp/zrtp.c
index 3a6cd9e..eddb364 100644
--- a/modules/zrtp/zrtp.c
+++ b/modules/zrtp/zrtp.c
@@ -166,6 +166,7 @@ static int media_alloc(struct menc_media **stp, struct menc_sess *sess,
{
struct menc_media *st;
zrtp_status_t s;
+ int layer = 10; /* above zero */
int err = 0;
(void)rtcpsock;
@@ -183,7 +184,7 @@ static int media_alloc(struct menc_media **stp, struct menc_sess *sess,
st->sess = sess;
st->rtpsock = mem_ref(rtpsock);
- err = udp_register_helper(&st->uh, rtpsock, 0,
+ err = udp_register_helper(&st->uh, rtpsock, layer,
udp_helper_send, udp_helper_recv, st);
if (err)
goto out;