apt-get install git build-essential
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:/path/to/depot_tools
mkdir webrtc-checkout
cd webrtc-checkout
fetch --nohooks webrtc
gclient sync
cd src
git checkout master
gn gen out/Default
cd webrtc-checkout/src/examples
git clone https://github.com/jchavanton/rtc_gw.git
patch -p1 < examples/rtc_gw/build.patch
ninja -C out/Default