Commit 8bd341cb authored by Muhammadali's avatar Muhammadali

update-

parent 7768335a
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.4.3", "version": "4.4.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -405,13 +405,17 @@ export class BoxDialer { ...@@ -405,13 +405,17 @@ export class BoxDialer {
); );
this.callSession = data.session; this.callSession = data.session;
// this.callSession?.connection?.onaddstream = (e) => { if (this.callSession && this.callSession.connection) {
// this.strmTrack = e.stream.getAudioTracks(); this.callSession.connection.onaddstream = (e) => {
// if (this.strmTrack[0]) { this.strmTrack = e.stream.getAudioTracks();
// this.remoteAudio.srcObject = new MediaStream([this.strmTrack[0]]); if (this.strmTrack[0]) {
// this.remoteAudio.play(); this.remoteAudio.srcObject = new MediaStream([
// } this.strmTrack[0],
// }; ]);
this.remoteAudio.play();
}
};
}
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
...@@ -867,6 +871,11 @@ export class BoxDialer { ...@@ -867,6 +871,11 @@ export class BoxDialer {
} }
hangupButtonClick() { hangupButtonClick() {
this.onSoundType({ type: 'ring', bool: false }); this.onSoundType({ type: 'ring', bool: false });
this.onSipStateChange.innerCallerModal({
bool: false,
type: null,
from: '',
});
if (this.callSession) this.callSession.terminate(); if (this.callSession) this.callSession.terminate();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment