Skip to content

Commit d816345

Browse files
committed
rtp_relay: do not run indialog for non-SDP requests
1 parent 9833056 commit d816345

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
@@ -1596,6 +1596,8 @@ static void rtp_relay_indlg(struct dlg_cell* dlg, int type, struct dlg_cb_params
15961596
}
15971597

15981598
body = get_body_part(msg, TYPE_APPLICATION, SUBTYPE_SDP);
1599+
if (!body && msg->REQ_METHOD != METHOD_INVITE && msg->REQ_METHOD != METHOD_ACK)
1600+
return;
15991601
RTP_RELAY_CTX_LOCK(ctx);
16001602
sess = ctx->established;
16011603
ret = (sess && rtp_sess_pending(sess));

0 commit comments

Comments
 (0)