fix(sip-invite) do not send query params on sip invite request

This commit is contained in:
Tudor-Ovidiu Avram 2021-04-13 12:09:19 +03:00
parent 067ff0729e
commit 529b182666
1 changed files with 4 additions and 1 deletions

View File

@ -827,7 +827,10 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
return Promise.resolve();
}
const baseUrl = locationURL.href.toLowerCase().replace(`/${roomName}`, '');
const baseUrl = Object.assign(new URL(locationURL.toString()), {
pathname: locationURL.pathname.replace(`/${roomName}`, ''),
search: ''
});
return fetch(
sipInviteUrl,