Commit 8bd341cb authored by Muhammadali's avatar Muhammadali

update-

parent 7768335a
{
"name": "boxdialer",
"version": "4.4.3",
"version": "4.4.4",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -405,13 +405,17 @@ export class BoxDialer {
);
this.callSession = data.session;
// this.callSession?.connection?.onaddstream = (e) => {
// this.strmTrack = e.stream.getAudioTracks();
// if (this.strmTrack[0]) {
// this.remoteAudio.srcObject = new MediaStream([this.strmTrack[0]]);
// this.remoteAudio.play();
// }
// };
if (this.callSession && this.callSession.connection) {
this.callSession.connection.onaddstream = (e) => {
this.strmTrack = e.stream.getAudioTracks();
if (this.strmTrack[0]) {
this.remoteAudio.srcObject = new MediaStream([
this.strmTrack[0],
]);
this.remoteAudio.play();
}
};
}
this.setGuiPhoneState({
funcName: 'modalState',
......@@ -867,6 +871,11 @@ export class BoxDialer {
}
hangupButtonClick() {
this.onSoundType({ type: 'ring', bool: false });
this.onSipStateChange.innerCallerModal({
bool: false,
type: null,
from: '',
});
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