Skip to content

Commit

Permalink
siprec: do not require SDP for a 200 OK
Browse files Browse the repository at this point in the history
This should be OK if the SDP was completed on the 183.
  • Loading branch information
razvancrainea committed Jul 24, 2023
1 parent 1d47e7a commit 2a0990d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/siprec/siprec_logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ static void tm_update_recording(struct cell *t, int type, struct tmcb_params *ps

void tm_start_recording(struct cell *t, int type, struct tmcb_params *ps)
{
str *body;
struct src_sess *ss;

if (!is_invite(t))
Expand All @@ -633,11 +632,6 @@ void tm_start_recording(struct cell *t, int type, struct tmcb_params *ps)
return;
}

/* check if we have a reply with body */
body = get_body_part(ps->rpl, TYPE_APPLICATION, SUBTYPE_SDP);
if (!body || body->len == 0)
return;

/* engage only on successful calls */
SIPREC_LOCK(ss);
/* if session has been started, do not start it again */
Expand Down

0 comments on commit 2a0990d

Please sign in to comment.