Merge pull request #14055 from mariogasparoni/add-params-for-connecting-and-reconnecting-websocket

feat(audio): add settings for audio websocket connection
This commit is contained in:
Anton Georgiev 2022-01-11 11:14:16 -05:00 committed by GitHub
commit 0c2023827c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

@ -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