diff --git a/modules/ice/ice.c b/modules/ice/ice.c index 48aafd17c..4f435895e 100644 --- a/modules/ice/ice.c +++ b/modules/ice/ice.c @@ -239,7 +239,8 @@ static int cand_gather_relayed(struct mnat_media *m, struct comp *comp, err = turnc_alloc(&turnc, stun_conf(icem_stun(m->icem)), IPPROTO_UDP, comp->sock, layer, &m->sess->srv, username, password, - 60, turnc_handler, comp); + 60, NULL, + turnc_handler, comp); if (err) return err; diff --git a/modules/turn/turn.c b/modules/turn/turn.c index 5468a6578..fa6fd4d7c 100644 --- a/modules/turn/turn.c +++ b/modules/turn/turn.c @@ -215,7 +215,7 @@ static void turn_handler(int err, uint16_t scode, const char *reason, err = turnc_alloc(&other->turnc, NULL, IPPROTO_UDP, other->sock, LAYER, &m->sess->srv, m->sess->user, m->sess->pass, - TURN_DEFAULT_LIFETIME, + TURN_DEFAULT_LIFETIME, &token, turn_handler, other); } else @@ -250,7 +250,8 @@ static void tcp_estab_handler(void *arg) err = turnc_alloc(&comp->turnc, NULL, IPPROTO_TCP, comp->tc, 0, &m->sess->srv, m->sess->user, m->sess->pass, - TURN_DEFAULT_LIFETIME, turn_handler, comp); + TURN_DEFAULT_LIFETIME, NULL, + turn_handler, comp); if (err) { m->sess->estabh(err, 0, NULL, m->sess->arg); } @@ -284,7 +285,7 @@ static int media_start(struct mnat_sess *sess, struct mnat_media *m) err |= turnc_alloc(&comp->turnc, NULL, IPPROTO_UDP, comp->sock, LAYER, &sess->srv, sess->user, sess->pass, - TURN_DEFAULT_LIFETIME, + TURN_DEFAULT_LIFETIME, NULL, turn_handler, comp); break;