Skip to content

Commit 4e18e79

Browse files
committed
rtp_relay: do not run indialog for non-SDP requests
(cherry picked from commit d816345)
1 parent 5993a1f commit 4e18e79

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/rtp_relay/rtp_relay_ctx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,8 @@ static void rtp_relay_indlg(struct dlg_cell* dlg, int type, struct dlg_cb_params
15751575
}
15761576

15771577
body = get_body_part(msg, TYPE_APPLICATION, SUBTYPE_SDP);
1578+
if (!body && msg->REQ_METHOD != METHOD_INVITE && msg->REQ_METHOD != METHOD_ACK)
1579+
return;
15781580
RTP_RELAY_CTX_LOCK(ctx);
15791581
sess = ctx->established;
15801582
ret = (sess && rtp_sess_pending(sess));

0 commit comments

Comments
 (0)