]> 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 15:53:07 +0000 (10:53 -0500)
commit1532da300894dccfdc5bb5b5dfeed9c55e42ca25
treedce83e98083c42ee8e1a994c9452f7610a2f2d4a
parent60d4230eec11c4407421f05bf99a5158053cbbd5
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