Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- confirmCall(name).then((yesDoCall) => {
- if (yesDoCall) {
- // Get new TURN server credentials from Xirsys
- // Not Required but it is more reliable than peer-to-peer
- request(turnApiUrl, 'PUT', {
- 'headers': { 'tok': turnToken }
- }).then((response) => {
- rtcConfig.iceServers = [response];
- webRtcPhone.callUser(userToCall, {
- myStream: myAudioVideoStream
- });
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement