Skip to content

Commit

Permalink
fix: call hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Nov 21, 2023
1 parent da30373 commit ea6d9cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/call/store/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ const actions = {
mediaConstraints: { audio: true },
sessionTimersExpires: 300,
};
const session = context.state.userAgent.call('sip:[email protected]', options);
const { hostname } = new URL(context.rootState.config.call.url);
const session = context.state.userAgent.call(`sip:call-from-web@${hostname}`, options);
window.session = session;
context.commit('SET_SESSION', session);
},
Expand Down

0 comments on commit ea6d9cd

Please sign in to comment.