Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Client disconnection on network loss #25170

Merged
merged 11 commits into from
Apr 20, 2022
Merged
8 changes: 8 additions & 0 deletions apps/meteor/app/lib/server/startup/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3209,6 +3209,14 @@ settingsRegistry.addGroup('Call_Center', function () {
value: true,
},
});
this.add('VoIP_Retry_Count', '-1', {
amolghode1981 marked this conversation as resolved.
Show resolved Hide resolved
type: 'string',
public: true,
enableQuery: {
_id: 'VoIP_Enabled',
value: true,
},
});
});

this.section('Management_Server', function () {
Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/client/lib/voip/SimpleVoipUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class SimpleVoipUser {
registrar: string,
webSocketPath: string,
iceServers: Array<object>,
voipRetryCount: number,
callType?: 'audio' | 'video',
mediaStreamRendered?: IMediaStreamRenderer,
): Promise<VoIPUser> {
Expand All @@ -16,9 +17,9 @@ export class SimpleVoipUser {
authPassword: password,
sipRegistrarHostnameOrIP: registrar,
webSocketURI: webSocketPath,

enableVideo: callType === 'video',
iceServers,
connectionRetryCount: voipRetryCount,
};

return VoIPUser.create(config, mediaStreamRendered);
Expand Down
Loading