Skip to content

Commit

Permalink
rtp_relay: sync leg tag on late
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 7, 2024
1 parent 1d38bda commit 2b80f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,8 @@ static int rtp_relay_indlg_get_type(struct sip_msg *msg,
RTP_RELAY_ALL_BRANCHES);
if (!leg)
return -1;
if (!leg->tag.s)
shm_str_sync(&leg->tag, &get_from(msg)->tag_value);
for (ltype = RTP_RELAY_CALLER; ltype <= RTP_RELAY_CALLEE; ltype++)
if (leg == ctx->established->legs[ltype])
return ltype;
Expand Down

0 comments on commit 2b80f1a

Please sign in to comment.