Skip to content

Commit

Permalink
rtp_relay: do not unsubscribe from terminated sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jul 26, 2023
1 parent 73351da commit 7c618fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,10 @@ int rtp_relay_copy_delete(rtp_ctx _ctx, str *id, str *flags)
LM_ERR("rtp not established!\n");
return -1;
}
if (!rtp_sess_pending(sess)) {
LM_DBG("rtp session already terminated!\n");
return 1;
}
if (!sess->relay->funcs.copy_delete) {
LM_DBG("rtp does not support stop recording!\n");
return 1;
Expand Down

0 comments on commit 7c618fb

Please sign in to comment.