]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp: Only accept the first payload for a format in SDP. 94/3894/6
authorJoshua Colp <jcolp@digium.com>
Wed, 14 Sep 2016 11:53:36 +0000 (07:53 -0400)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 15 Sep 2016 19:22:02 +0000 (14:22 -0500)
commit696824df894d4e5ea11edb96390c771bb766c192
tree69be5aaa9cc213c2fc3e0d6c5030e1ed7f9e2763
parent58f41ebf934e3f7eb7d810ea34bb778c68e2861d
rtp: Only accept the first payload for a format in SDP.

When receiving an SDP offer with multiple payloads for
the same format we would generate an answer with the first
payload, but during the payload crossover operation
(to set the payloads for receiving) we would remove all
payloads but the last. This would result in incoming
traffic being matched against the wrong format and outgoing
traffic being sent using the wrong payload.

This change makes it so that once a format has a payload
number put into the mapping all subsequent ones are ignored.
This ensures there is only ever one payload in the mapping
and that it is the payload placed into the answer SDP.

ASTERISK-26365 #close

Change-Id: I1e8150860a3518cab36d00b1fab50f9352b64e60
main/rtp_engine.c