From 05ec73cd33e7e8bd8bf93352ae8ec41ab62f5d2d Mon Sep 17 00:00:00 2001 From: Daniil Lohvinov Date: Mon, 20 Nov 2023 16:56:20 +0200 Subject: [PATCH] added on call timeout [WTEL-4036] --- src/modules/call/store/call.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/call/store/call.js b/src/modules/call/store/call.js index 211cb31..95e2279 100644 --- a/src/modules/call/store/call.js +++ b/src/modules/call/store/call.js @@ -29,7 +29,7 @@ const getters = { const actions = { START_USER_AGENT: (context) => { const socket = new JsSIP.WebSocketInterface(context.rootState.config.call.url); - // JsSIP.debug.enable('JsSIP:*'); + JsSIP.debug.enable('JsSIP:*'); const { hostname } = new URL(context.rootState.config.call.url); @@ -113,9 +113,12 @@ const actions = { mediaConstraints: { audio: true }, sessionTimersExpires: 300, }; - const session = context.state.userAgent.call('sip:call-from-web@dev.webitel.com', options); - window.session = session; - context.commit('SET_SESSION', session); + // setTimeout(() => { + + const session = context.state.userAgent.call('sip:call-from-web@dev.webitel.com', options); + window.session = session; + context.commit('SET_SESSION', session); + // }, 500); }, HANGUP: (context) => { context.state.session.terminate();