]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Ignore RTP that we haven't negotiated
authorSean Bright <sean.bright@gmail.com>
Thu, 23 Jan 2020 15:06:35 +0000 (10:06 -0500)
committerSean Bright <sean.bright@gmail.com>
Thu, 23 Jan 2020 16:21:52 +0000 (10:21 -0600)
commitace97a3786544050899b20d6f022ae09cdf8d526
tree759a88f34c50dfc4f70d94947dc415742f480504
parenta0f44b10522b92e0b684a9cb1f35325047b9f89f
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 check that the received frame is in a format we have negotiated
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