]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Ignore RTP that we haven't negotiated
authorSean Bright <sean.bright@gmail.com>
Fri, 27 Dec 2019 13:04:42 +0000 (08:04 -0500)
committerSean Bright <sean.bright@gmail.com>
Fri, 17 Jan 2020 13:59:22 +0000 (08:59 -0500)
commitbfc93cc95428532e89ac8ffd72084dc1c811229b
tree1ecd5cfa2e1cc52d766becce5c0ef5b68f74af08
parent9ba3bddd37d995ee073e9e818c6f390aa3c34f00
chan_pjsip: Ignore RTP that we haven't negotiated

If chan_pjsip receives an RTP packet whose payload differs from the
channel's native format, and asymmetric_rtp_codec is disabled (the
default), Asterisk will switch the channel's native format to match
that of the incoming packet without regard to the negotiated payloads.

We now keep track of the formats that have been negotiated and check
before switching payloads which results in these packets being dropped
instead of causing the session to terminate.

ASTERISK-28139 #close
Reported by: Paul Brooks

Change-Id: Icc3b85cee1772026cee5dc1b68459bf9431c14a3
channels/chan_pjsip.c
include/asterisk/res_pjsip_session.h
res/res_pjsip_sdp_rtp.c
res/res_pjsip_session.c