feat(audio): add settings for audio websocket connection
Default values were kept, but now this can be changed in settings.yml. If not set in settings.yml, the old hardcoded values are used.
This commit is contained in:
parent
e916d24574
commit
1621834239
@ -31,9 +31,9 @@ const IPV4_FALLBACK_DOMAIN = Meteor.settings.public.app.ipv4FallbackDomain;
|
||||
const CALL_CONNECT_TIMEOUT = 20000;
|
||||
const ICE_NEGOTIATION_TIMEOUT = 20000;
|
||||
const AUDIO_SESSION_NUM_KEY = 'AudioSessionNumber';
|
||||
const USER_AGENT_RECONNECTION_ATTEMPTS = 3;
|
||||
const USER_AGENT_RECONNECTION_DELAY_MS = 5000;
|
||||
const USER_AGENT_CONNECTION_TIMEOUT_MS = 5000;
|
||||
const USER_AGENT_RECONNECTION_ATTEMPTS = MEDIA.audioReconnectionAttempts || 3;
|
||||
const USER_AGENT_RECONNECTION_DELAY_MS = MEDIA.audioReconnectionDelay || 5000;
|
||||
const USER_AGENT_CONNECTION_TIMEOUT_MS = MEDIA.audioConnectionTimeout || 5000;
|
||||
const ICE_GATHERING_TIMEOUT = MEDIA.iceGatheringTimeout || 5000;
|
||||
const BRIDGE_NAME = 'sip';
|
||||
const WEBSOCKET_KEEP_ALIVE_INTERVAL = MEDIA.websocketKeepAliveInterval || 0;
|
||||
|
@ -542,6 +542,14 @@ public:
|
||||
#so far. Increasing this value might help avoiding 1004 error when
|
||||
#user activates microphone.
|
||||
iceGatheringTimeout: 5000
|
||||
# Timeout (ms) for connecting to the audio's signaling websocket.
|
||||
audioConnectionTimeout: 5000
|
||||
# Delay (ms) between each reconnection attempt of the audio's signaling
|
||||
# websocket.
|
||||
audioReconnectionDelay: 5000
|
||||
# Number of reconnection attempts of the signaling websocket, before
|
||||
# showing to the user there's an audio error.
|
||||
audioReconnectionAttempts: 3
|
||||
sipjsHackViaWs: false
|
||||
# the fqdn of this host.
|
||||
# If you run a traditional setup of multiple nodes behind scalelite and the users see the hostnames of the
|
||||
|
Loading…
Reference in New Issue
Block a user