The WebRTC connection is just this code, plus event handlers for setting up audio playback and handling any events that you want to wire up to your user interface. The web app connects to a server ...
This repo contains a simple example of how to build a WebRTC application usign SIP as signaling layer. The example by no means represents a production-ready application nor presents secure practices.