TP-89230 | websocket url port change
This commit is contained in:
@@ -256,7 +256,7 @@ export function sendHeartbeat() {
|
||||
window.postMessage({ type: MessagingType.ACCEPT_INCOMING_CALL, data: {} });
|
||||
}
|
||||
// sends SIP REGISTER request to login
|
||||
export function sipRegister({domain}: {domain: string}) {
|
||||
export function sipRegister({domain, port}: {domain: string, port : string}) {
|
||||
// catch exception for IE (DOM not ready)
|
||||
try {
|
||||
btnRegister.disabled = true;
|
||||
@@ -296,7 +296,7 @@ export function sipRegister({domain}: {domain: string}) {
|
||||
impu: txtPublicIdentity.value,
|
||||
password: txtPassword.value,
|
||||
display_name: txtDisplayName.value,
|
||||
websocket_proxy_url: `wss://${domain}:9089/ws`,
|
||||
websocket_proxy_url: `wss://${domain}:${port}/ws`,
|
||||
outbound_proxy_url: `udp://${domain}:5061`,
|
||||
ice_servers:
|
||||
`[{ url: 'stun:stun.l.google.com:19302'}, { url:'turn:${domain}:3478', credential:'jrp931', username: 'drishti'}]`,
|
||||
|
||||
@@ -77,10 +77,11 @@ class AmeyoAdapter implements IAdapter {
|
||||
_initializeSipStack = ({accountName, userName, domain, password}: SipAccountInfo) => {
|
||||
console.log('initializing sip stack');
|
||||
const domainOnly = domain.split(':')[0];
|
||||
const port = domain.split(':')[1];
|
||||
//initialize sip stack
|
||||
loadCredentials({accountName, userName, domain, password});
|
||||
loadCallOptions();
|
||||
sipRegister({domain: domainOnly});
|
||||
sipRegister({domain: domainOnly, port});
|
||||
|
||||
}
|
||||
|
||||
@@ -228,4 +229,4 @@ class AmeyoAdapter implements IAdapter {
|
||||
|
||||
}
|
||||
|
||||
export default AmeyoAdapter;
|
||||
export default AmeyoAdapter;
|
||||
|
||||
Reference in New Issue
Block a user