phonertc
phonertc copied to clipboard
TURN server is strictly required or optional?
just to make sure, TURN server is strictly required or optional? And one question more, in wiki i saw explanations how to set TURN server settings, but never for signaling server. Do we need to set somewhere something like: window.ua = new SIP.UA({ traceSip: true, uri: '[email protected]', ws_servers: ['wss://sip-ws.example.com'], mediaHandlerFactory: PhoneRTCMediaHandler }); and window.ua.on('invite', makeCall) ? I have freeswitch as signaling server, will it work without TURN server? P.S. trying to run https://github.com/alongubkin/phonertc/tree/master/demo/client
@NayRia WebRTC using ICE framework for peer-to-peer connection ,80% call connect through STUN ,remain 20% call connect though TURN(because of firewall issue)
So TURN is not optional ,If your not use TURN server 20% call will fails
Note:if you want to use this APP in LAN no need TURN
@murugannode Yes this i understand, the question is, if i omit TURN server settings, would my application still work? And could you give me any example of signaling server configuration in javascript? Thanks
@NayRia yes if you omit TURN it will work Example configuration with TURN
config: {'iceServers': [ { url: 'stun:stun.l.google.com:19302' }, { url: 'turn:[email protected]:80', credential: 'homeo' } ]}
Without TURN: config: {'iceServers': [ { url: 'stun:stun.l.google.com:19302' } ]}
please refer this link http://www.html5rocks.com/en/tutorials/webrtc/basics/
@murugannode, thanks for explanation and link
@murugan-pandian Where exactly would you use that configuration? The library only accepts a turn server as config parameter.
@Jenjen1324 you can see here https://github.com/alongubkin/phonertc/blob/master/src/browser/PhoneRTCProxy.js#L165 they already use STUN server