PJSIP: ensure it doesn't leak libnice symbols
Summary
PJSIP uses libnice2 and WebRTC libnice3.
Expected behavior
libpjsip does not export any symbol related to libnice2 or does not link visibly to libnice2.
Other comment
- Compile the whole stack gstreamer included with
-fno-semantic-interposition
for release builds? Diminishes the chance of bugs related to this but makes debugging harder - Compile libnice2 et pjsip statically with
-Bsymbolic
-fvisibility=hidden
- Pass a linker version script for the pjsip.so plug-in putting everything in a namespace:
-Wl,--version-script,/path/to/script
Version script example:
SWITCHER_PJSIP_1.0 {
local: *;
};
Edited by Jean-Michaël Celerier