Skip to content

Commit

Permalink
added on call timeout [WTEL-4036]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Nov 20, 2023
1 parent 2bd19e5 commit 05ec73c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/modules/call/store/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -113,9 +113,12 @@ const actions = {
mediaConstraints: { audio: true },
sessionTimersExpires: 300,
};
const session = context.state.userAgent.call('sip:[email protected]', options);
window.session = session;
context.commit('SET_SESSION', session);
// setTimeout(() => {

const session = context.state.userAgent.call('sip:[email protected]', options);
window.session = session;
context.commit('SET_SESSION', session);
// }, 500);
},
HANGUP: (context) => {
context.state.session.terminate();
Expand Down

0 comments on commit 05ec73c

Please sign in to comment.