Skip to content

Commit

Permalink
Ignore faked replies
Browse files Browse the repository at this point in the history
(cherry picked from commit 31e2f33)
  • Loading branch information
vladpaiu committed Oct 24, 2022
1 parent 217023d commit 8476557
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,11 @@ static int rtp_relay_reinvite_reply(struct sip_msg *msg,
return -1;
}

if (msg == NULL || msg == FAKED_REPLY) {
/* we only care about actual replies */
goto error;
}

switch (tmp->state) {
case RTP_RELAY_TMP_OFFER:
pbody = get_body_part(msg, TYPE_APPLICATION, SUBTYPE_SDP);
Expand Down

0 comments on commit 8476557

Please sign in to comment.