diff --git a/package.json b/package.json index fe4f78853e29a59be68646004302e41108e38cad..7b00969c74605ba2bee4d634ee25451d1f4f3b70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "boxdialer", - "version": "4.3.3", + "version": "4.3.4", "description": "", "main": "src/boxDialer.js", "scripts": { diff --git a/src/lib/boxDIaler.js b/src/lib/boxDIaler.js index 35601d387b96173ab22fd5b6bd946ce3627c1fba..a19026671248d47704787f055d09dafab01d3076 100644 --- a/src/lib/boxDIaler.js +++ b/src/lib/boxDIaler.js @@ -417,7 +417,8 @@ export class BoxDialer { // this.remoteAudio.play(); // } // }); - this.callSession.connection.onaddstream = (e) => { + + let func = (e) => { let strmTrack = e.stream.getAudioTracks(); if (strmTrack[0]) { let rmMediaStream = new MediaStream([strmTrack[0]]); @@ -425,6 +426,7 @@ export class BoxDialer { this.remoteAudio.play(); } }; + this.callSession.connection.onaddstream = func; this.setGuiPhoneState({ funcName: 'modalState',