Skip to content

Commit

Permalink
rtp_relay: do not check for pending when late
Browse files Browse the repository at this point in the history
Many thanks to Voxtronic for spotting this issue!
  • Loading branch information
razvancrainea committed Mar 18, 2024
1 parent 0aced6b commit 3669997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ static void rtp_relay_ctx_initial_cb(struct cell* t, int type, struct tmcb_param
/* first check if there's anything setup on this branch */
sess = rtp_relay_get_sess(ctx, rtp_relay_ctx_branch());
if (sess) {
if (!rtp_sess_pending(sess)) {
if (!rtp_sess_pending(sess) && !rtp_sess_late(sess)) {
LM_DBG("no pending session on branch %d\n",
rtp_relay_ctx_branch());
sess = ctx->main;
Expand Down

0 comments on commit 3669997

Please sign in to comment.