Skip to content

Commit

Permalink
rtp_relay: fix flags order for answer
Browse files Browse the repository at this point in the history
(cherry picked from commit 95ecb77)
  • Loading branch information
razvancrainea committed Nov 23, 2021
1 parent 23ba1ee commit fe0da3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/rtp_relay/rtp_relay_ctx.c
Expand Up @@ -42,7 +42,7 @@ static struct list_head *rtp_relay_contexts;
#define RTP_RELAY_PUT_TM_CTX(_t, _p) \
rtp_relay_tmb.t_ctx_put_ptr(_t, rtp_relay_tm_ctx_idx, _p)

#define RTP_RELAY_GET_DLG_CTX(_d) (rtp_relay_dlg.dlg_ctx_get_ptr(_d, rtp_relay_tm_ctx_idx))
#define RTP_RELAY_GET_DLG_CTX(_d) (rtp_relay_dlg.dlg_ctx_get_ptr(_d, rtp_relay_dlg_ctx_idx))
#define RTP_RELAY_PUT_DLG_CTX(_d, _p) \
rtp_relay_dlg.dlg_ctx_put_ptr(_d, rtp_relay_dlg_ctx_idx, _p)

Expand Down Expand Up @@ -492,10 +492,10 @@ static int rtp_relay_answer(struct rtp_relay_session *info,
}
return sess->relay->binds.answer(info, &sess->server,
RTP_RELAY_FLAGS(type, RTP_RELAY_FLAGS_IP),
RTP_RELAY_FLAGS(type, RTP_RELAY_FLAGS_TYPE),
RTP_RELAY_FLAGS(RTP_RELAY_PEER(type), RTP_RELAY_FLAGS_TYPE),
RTP_RELAY_FLAGS(RTP_RELAY_PEER(type), RTP_RELAY_FLAGS_IFACE),
RTP_RELAY_FLAGS(type, RTP_RELAY_FLAGS_IFACE),
RTP_RELAY_FLAGS(RTP_RELAY_PEER(type), RTP_RELAY_FLAGS_SELF),
RTP_RELAY_FLAGS(type, RTP_RELAY_FLAGS_SELF),
RTP_RELAY_FLAGS(type, RTP_RELAY_FLAGS_PEER), body);
}
#undef RTP_RELAY_PEER
Expand Down

0 comments on commit fe0da3e

Please sign in to comment.