Fix #337: Duplicate candidates in SDP
commit985c72e7f22b810147a505e6d962cbe7376c2cac
authorStefan Becker <chemobejk@gmail.com>
Sat, 3 Feb 2018 15:57:42 +0000 (3 17:57 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sun, 18 Feb 2018 15:57:54 +0000 (18 17:57 +0200)
tree53e7f64ffe32acb64ec5a769064bba628b67dbca
parentc4be15845327b3266ae1333871286ddaff361945
Fix #337: Duplicate candidates in SDP

This reverts commit 89ee8e8d4fd7b90e38c53c2458853389b0cbd182.

libnice can return a candidate list with duplicates. It is currently
unknown if this is a bug in libnice or a configuration error in Skype
for Business setups.

While this is not a bug in SIPE, by converting the previous debug code
into a filter function that removes these duplicates we can harden SIPE
against such a situation and make sure that it generates a correct SDP
message.

(cherry picked from commit 50f63c7d337f57374d363018c2316449a73c5449)
src/purple/purple-media.c