Thank you for the reply. Can you show an example? I am a bit lost.
I was searching for something in the options['media'] area but was unable to find anything for this.
async setupSip(){
var domain = "xxx";
var user = xxx;
var pass = xxx;
var sip_url = user + '@' + domain;
const options = {
//aor: "sip:" + sip_url,
media: {
remote: {
audio: document.getElementById('remoteAudio')
}
},
reconnectionAttempts: 999,
reconnectionDelay: 1,
userAgentOptions: {
authorizationPassword: pass,
authorizationUsername: user,
}
};
const server = "wss://" + domain;
// this sets up the main object
this.sip_simpleUser = new this.$Sip.SimpleUser(server, options);
// this starts getting us connected
this.sip_simpleUser.connect()
.then(
() => {
if (this.goLiveBtnIsDisabled && this.hangUpBtnIsDisabled){
this.connectionStatus = 'ready';
this.goLiveBtnIsDisabled = false;
this.hangUpBtnIsDisabled = true;
}
}
)
.catch((error) => {
console.log(error);
});
},