Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,7 @@ class SIPUAHelper extends EventManager {

var _defaultOptions = {
'eventHandlers': eventHandlers,
'pcConfig': {
'iceServers': [
{'url': 'stun:stun.l.google.com:19302'},
/*
* turn server configuration example.
{
'url': 'turn:123.45.67.89:3478',
'username': 'change_to_real_user',
'credential': 'change_to_real_secret'
},
*/
]
},
'pcConfig': {'iceServers': _uaSettings.iceServers},
'mediaConstraints': {
"audio": true,
"video": voiceonly
Expand Down Expand Up @@ -468,4 +456,14 @@ class UaSettings {
String authorizationUser;
String password;
String displayName;

List<Map<String, String>> iceServers = [
{'url': 'stun:stun.l.google.com:19302'},
// turn server configuration example.
// {
// 'url': 'turn:123.45.67.89:3478',
// 'username': 'change_to_real_user',
// 'credential': 'change_to_real_secret'
// },
];
}