]> 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:22:00 +0000 (10:22 -0600)
commit313189aae22cf3f662d4b024fa57bec1bf4ddfd1
tree1d0f9cb1645ef7ed105b2a56ed9453c977bea424
parent9688381f05140b8682fd2b7947c71ff1fb7ef9c3
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