File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -272,19 +272,7 @@ class SIPUAHelper extends EventManager {
272272
273273 var _defaultOptions = {
274274 'eventHandlers' : eventHandlers,
275- 'pcConfig' : {
276- 'iceServers' : [
277- {'url' : 'stun:stun.l.google.com:19302' },
278- /*
279- * turn server configuration example.
280- {
281- 'url': 'turn:123.45.67.89:3478',
282- 'username': 'change_to_real_user',
283- 'credential': 'change_to_real_secret'
284- },
285- */
286- ]
287- },
275+ 'pcConfig' : {'iceServers' : _uaSettings.iceServers},
288276 'mediaConstraints' : {
289277 "audio" : true ,
290278 "video" : voiceonly
@@ -468,4 +456,14 @@ class UaSettings {
468456 String authorizationUser;
469457 String password;
470458 String displayName;
459+
460+ List <Map <String , String >> iceServers = [
461+ {'url' : 'stun:stun.l.google.com:19302' },
462+ // turn server configuration example.
463+ // {
464+ // 'url': 'turn:123.45.67.89:3478',
465+ // 'username': 'change_to_real_user',
466+ // 'credential': 'change_to_real_secret'
467+ // },
468+ ];
471469}
You can’t perform that action at this time.
0 commit comments