From 2a0990d0886108bb09987bd69be2efd15fe4ac05 Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Mon, 24 Jul 2023 17:11:26 +0300 Subject: [PATCH] siprec: do not require SDP for a 200 OK This should be OK if the SDP was completed on the 183. --- modules/siprec/siprec_logic.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/siprec/siprec_logic.c b/modules/siprec/siprec_logic.c index 4067564ab62..e314316c1d7 100644 --- a/modules/siprec/siprec_logic.c +++ b/modules/siprec/siprec_logic.c @@ -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)) @@ -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 */