JSFiddle - React, Tailwind, and code Playground

HTML

<video id="remoteVideo" autoplay></video>

JavaScript

const pc = new RTCPeerConnection();
pc.ontrack = e => document.getElementById("remoteVideo").srcObject = e.streams[0];
pc.onicegatheringstatechange = e => {
  if (pc.iceGatheringState === 'complete') {
    ws.send(JSON.stringify({"jsonrpc":"2.0","method":"verto.invite","params":{"sdp":pc.localDescription.sdp,"dialogParams":{"useVideo":true,"useStereo":true,"screenShare":false,"useCamera":"a560109513e88ef15491e6d38a8911504523476d6b7b766142978c9d4d773e4a","useMic":"default","useSpeak":"default","tag":"webcam","localTag":"local_webcam","login":"1008@cantina.freeswitch.org","videoParams":{"minWidth":1280,"minHeight":720,"maxWidth":1280,"maxHeight":720,"minFrameRate":15},"useStream":null,"destination_number":"stereo_test","caller_id_name":"Philipp","caller_id_number":"youknowitalreadyanthony@something.local","outgoingBandwidth":703,"incomingBandwidth":19692,"dedEnc":false,"mirrorInput":false,"userVariables":{"email":"youknowitalreadyanthony@something.local","avatar":"http://gravatar.com/avatar/e73984ede4bcd0e63265577acdd8fa94.png?s=600"},"callID":"d40fa99b-e88f-89ce-6bb7-3833ada0d045","remote_caller_id_name":"Outbound Call","remote_caller_id_number":"stereo_test"},"sessid":"593cb328-576e-7b70-da24-ca2f6d9ae795"},"id":3}))
  }
};

async function run() {
  ws.send(JSON.stringify({"jsonrpc":"2.0","method":"login","params":{"sessid":"593cb328-576e-7b70-da24-ca2f6d9ae795"},"id":1}));
  ws.send(JSON.stringify({"jsonrpc":"2.0","method":"login","params":{"login":"1008@cantina.freeswitch.org","passwd":"1234","loginParams":{},"userVariables":{},"sessid":"593cb328-576e-7b70-da24-ca2f6d9ae795"},"id":2}));
  const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: true});
  stream.getTracks().forEach(t => pc.addTrack(t, stream));
  const offer = await pc.createOffer();
  offer.sdp = offer.sdp.replace('minptime=10', 'minptime=10;stereo=1; sprop-stereo=1')
  await pc.setLocalDescription(offer);
}

const ws = new...