TP-89230 | softcode sip credentials
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() {
|
||||
export function sipRegister({domain}: {domain: string}) {
|
||||
// catch exception for IE (DOM not ready)
|
||||
try {
|
||||
btnRegister.disabled = true;
|
||||
@@ -296,10 +296,10 @@ export function sipRegister() {
|
||||
impu: txtPublicIdentity.value,
|
||||
password: txtPassword.value,
|
||||
display_name: txtDisplayName.value,
|
||||
websocket_proxy_url: 'wss://naviindore.ameyo.net:9089/ws',
|
||||
outbound_proxy_url: 'udp://naviindore.ameyo.net:5061',
|
||||
websocket_proxy_url: `wss://${domain}:9089/ws`, //'turn:naviblr.ameyo.net:3478?transport=udp', credential: 'jrp931', username: 'drishti'
|
||||
outbound_proxy_url: `udp://${domain}:5061`,
|
||||
ice_servers:
|
||||
"[{ url: 'stun:stun.l.google.com:19302'}, { url:'turn:naviindore.ameyo.net:3478', credential:'jrp931', username: 'drishti'}]",
|
||||
`[{ url: 'stun:stun.l.google.com:19302'}, { url:'turn:${domain}:3478', credential:'jrp931', username: 'drishti'}]`,
|
||||
enable_rtcweb_breaker: window.localStorage
|
||||
? window.localStorage.getItem('org.doubango.expert.enable_rtcweb_breaker') == 'true'
|
||||
: false,
|
||||
|
||||
@@ -67,15 +67,16 @@ class AmeyoAdapter implements IAdapter {
|
||||
|
||||
_initializeSipStack = ({accountName, userName, domain, password}: SipAccountInfo) => {
|
||||
console.log('initializing sip stack');
|
||||
const domainOnly = domain.split(':')[0];
|
||||
//initialize sip stack
|
||||
loadCredentials({accountName, userName, domain, password});
|
||||
loadCallOptions();
|
||||
sipRegister();
|
||||
sipRegister({domain: domainOnly});
|
||||
|
||||
}
|
||||
|
||||
_initializeAmeyo = () => {
|
||||
loginInAmeyo(this.userName, this.password);
|
||||
loginInAmeyo(this.userName?.toLowerCase(), this.password);
|
||||
}
|
||||
|
||||
_onListenForCorsBypassResponse = (payload: GenericObject) => {
|
||||
|
||||
Reference in New Issue
Block a user