Skip to content

Commit

Permalink
rtp_relay: suppress warning if session is established
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 4, 2023
1 parent b1f3aa5 commit b417951
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,11 @@ static int rtp_relay_ctx_leg_reply(struct rtp_relay_ctx *ctx, struct sip_msg *ms
* mark it as established */
rtp_relay_sess_success(ctx, sess, t, msg);
return 1;
} else {
} else if (!rtp_sess_success(sess)) {
LM_WARN("final reply without SDP - cannot complete negotiation!\n");
return -1;
} else {
return 1;
}
}
info.branch = sess->index;
Expand Down

0 comments on commit b417951

Please sign in to comment.